Dnscrypt on dd-wrt

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Author Message
volitation
DD-WRT User


Joined: 30 Dec 2011
Posts: 91

PostPosted: Sun Jun 24, 2012 20:37    Post subject: Reply with quote
ptruman wrote:
Been done.
I found this earlier :

http://lancethepants.com/files/

It's a binary which runs happily on my WRT54GS V1.1


Works on E4200.
Sponsor
prp2
DD-WRT Novice


Joined: 18 Oct 2009
Posts: 14

PostPosted: Wed Jun 27, 2012 3:03    Post subject: Reply with quote
Attempted this on my WRT610N running Kong's 19277M and I get a segmentation fault.

Perhaps I didn't upload the binary correctly? I downloaded it from http://lancethepants.com/files/index.php?dir=Binaries%20%28DNSCrypt%29/DNSCrypt-Proxy/0.10.1/, uploaded it to my web server and used wget to get it to my router.

Would really love to get this working, so any advice would be appreciated. Smile
lancethepants
DD-WRT Novice


Joined: 24 Feb 2011
Posts: 34

PostPosted: Wed Jun 27, 2012 17:42    Post subject: Reply with quote
prp2 wrote:
Attempted this on my WRT610N running Kong's 19277M and I get a segmentation fault.

Perhaps I didn't upload the binary correctly? I downloaded it from http://lancethepants.com/files/index.php?dir=Binaries (DNSCrypt)/DNSCrypt-Proxy/0.10.1/, uploaded it to my web server and used wget to get it to my router.

Would really love to get this working, so any advice would be appreciated. Smile


Try the (K2.4 toolchain) version if you're running K2.4 kernel. Do you have V1 or V2?
prp2
DD-WRT Novice


Joined: 18 Oct 2009
Posts: 14

PostPosted: Thu Jun 28, 2012 6:54    Post subject: Reply with quote
I'm running K2.6, and I've got the WRT610Nv1.
lancethepants
DD-WRT Novice


Joined: 24 Feb 2011
Posts: 34

PostPosted: Thu Jun 28, 2012 17:44    Post subject: Reply with quote
prp2 wrote:
I'm running K2.6, and I've got the WRT610Nv1.


I've uploaded some binaries made specifically with the DD-WRT toolchains, give them a shot and let me know.
volitation
DD-WRT User


Joined: 30 Dec 2011
Posts: 91

PostPosted: Sat Jun 30, 2012 9:44    Post subject: Reply with quote
prp2 wrote:
Attempted this on my WRT610N running Kong's 19277M and I get a segmentation fault.


Are you running it with -p or --pidfile? That option gives me a segfault too but it works fine if I don't use that.
slobodan
DD-WRT Guru


Joined: 03 Nov 2011
Posts: 1555
Location: Zwolle

PostPosted: Sun Jul 01, 2012 22:29    Post subject: Reply with quote
Here are my new settings, in .rc_startup:

/opt/script/dnscrypt-proxy -a 192.168.1.1 -P 40 -d

In the DNSMasq options:

bogus-priv
no-resolv
server=192.168.1.1#40
domain-needed
local=/lan/
expand-hosts
dhcp-option=43,01:04:00:00:00:02
user=root
addn-hosts=/opt/etc/pixelserv/blacks

The difference was that dnscrypt-proxy version 0.9.3 could daemonize on port 53, even if it is used by DNSMasq, but version 0.10.1 cannot do it, so it has to have its own port.

_________________
2 times APU2 Opnsense 21.1 with Sensei

2 times RT-AC56U running DD-WRT 45493 (one as Gateway, the other as AP, both bridged with LAN cable)

3 times Asus RT-N16 shelved

E4200 V1 running freshtomato 2020.8 (bridged with LAN cable)

3 times Linksys WRT610N V2 converted to E3000 and 1 original E3000 running freshtomato 2020.8 (bridged with LAN cable)


prp2
DD-WRT Novice


Joined: 18 Oct 2009
Posts: 14

PostPosted: Mon Jul 02, 2012 9:58    Post subject: Reply with quote
volitation wrote:
prp2 wrote:
Attempted this on my WRT610N running Kong's 19277M and I get a segmentation fault.


Are you running it with -p or --pidfile? That option gives me a segfault too but it works fine if I don't use that.


Happens for me either way. And this is with using the new 0.10.1 DD-WRT Toolchain version:

root@nevermore:/opt/script# ./dnscrypt-proxy -a 172.17.50.1 -P 40 -d
Segmentation fault
root@nevermore:/opt/script# ./dnscrypt-proxy -a 172.17.50.1
Segmentation fault
root@nevermore:/opt/script# ./dnscrypt-proxy
Segmentation fault
slobodan
DD-WRT Guru


Joined: 03 Nov 2011
Posts: 1555
Location: Zwolle

PostPosted: Mon Jul 02, 2012 15:12    Post subject: Reply with quote
prp2 wrote:
Happens for me either way. And this is with using the new 0.10.1 DD-WRT Toolchain version:

root@nevermore:/opt/script# ./dnscrypt-proxy -a 172.17.50.1 -P 40 -d
Segmentation fault
root@nevermore:/opt/script# ./dnscrypt-proxy -a 172.17.50.1
Segmentation fault
root@nevermore:/opt/script# ./dnscrypt-proxy
Segmentation fault

I have the same version of Kong firmware. For me, it works without problem. But I also have OTRW installed according to the Basmaf's OTRW take2. So, maybe it is missing some library, maybe your /jffs has some libraries which mess with the libraries loaded by dnscrypt-proxy.

Use your router's (gateway) IP instead of 172.17.50.1. dnscrypt-proxy cannot run on any IP, but only on IPs which are already available, like private networking IPs. Ok, 172.17.50.1 is private, but it has to belong to your router (br0).

_________________
2 times APU2 Opnsense 21.1 with Sensei

2 times RT-AC56U running DD-WRT 45493 (one as Gateway, the other as AP, both bridged with LAN cable)

3 times Asus RT-N16 shelved

E4200 V1 running freshtomato 2020.8 (bridged with LAN cable)

3 times Linksys WRT610N V2 converted to E3000 and 1 original E3000 running freshtomato 2020.8 (bridged with LAN cable)


rearden
DD-WRT Novice


Joined: 12 Jun 2006
Posts: 46

PostPosted: Mon Jul 02, 2012 20:15    Post subject: working on wrt350n Reply with quote
I have it running on a 15k era build on a wrt350n. I am running OTRWtake2 and dnscrypt-proxy. It appears to Just Work.

I have been unable to get it to work on an Eko 18946 (17990 also) Mega VINT on a WRT54GS v1. The problem is not dnscrypt-proxy but jffs. As I understand it, this is a 32MB router so I would think it should have enough space but, jffs is acting all wonky: chmod doesn't work, only partial file copies, etc.

rearden
slobodan
DD-WRT Guru


Joined: 03 Nov 2011
Posts: 1555
Location: Zwolle

PostPosted: Mon Jul 02, 2012 22:00    Post subject: Re: working on wrt350n Reply with quote
rearden wrote:
I have it running on a 15k era build on a wrt350n. I am running OTRWtake2 and dnscrypt-proxy. It appears to Just Work.

I have been unable to get it to work on an Eko 18946 (17990 also) Mega VINT on a WRT54GS v1. The problem is not dnscrypt-proxy but jffs. As I understand it, this is a 32MB router so I would think it should have enough space but, jffs is acting all wonky: chmod doesn't work, only partial file copies, etc.

rearden

According to http://en.wikipedia.org/wiki/Linksys_WRT54G_series#WRT54GS , it has 32 MB RAM and 8 MB flash. Jffs is stored in the flash memory, not in the RAM. This means that on a Mega build there is almost no space left for jffs.

_________________
2 times APU2 Opnsense 21.1 with Sensei

2 times RT-AC56U running DD-WRT 45493 (one as Gateway, the other as AP, both bridged with LAN cable)

3 times Asus RT-N16 shelved

E4200 V1 running freshtomato 2020.8 (bridged with LAN cable)

3 times Linksys WRT610N V2 converted to E3000 and 1 original E3000 running freshtomato 2020.8 (bridged with LAN cable)


rearden
DD-WRT Novice


Joined: 12 Jun 2006
Posts: 46

PostPosted: Tue Jul 03, 2012 12:38    Post subject: Reply with quote
ok, thanks.

I also found in the jffs wiki (about the 4th time through it) that a BS build has 640k /jffs but an Eko build has 1640k.

What is confusing is that when I first enable and clean jffs, it reports 6,400.00kb as total. Later it reports 768 or 640kb. I think I need a bit under 1mb to fit dnscrypt-proxy and filesystem.

rearden
prp2
DD-WRT Novice


Joined: 18 Oct 2009
Posts: 14

PostPosted: Wed Jul 04, 2012 5:38    Post subject: Reply with quote
slobodan wrote:

I have the same version of Kong firmware. For me, it works without problem. But I also have OTRW installed according to the Basmaf's OTRW take2. So, maybe it is missing some library, maybe your /jffs has some libraries which mess with the libraries loaded by dnscrypt-proxy.

Use your router's (gateway) IP instead of 172.17.50.1. dnscrypt-proxy cannot run on any IP, but only on IPs which are already available, like private networking IPs. Ok, 172.17.50.1 is private, but it has to belong to your router (br0).


172.17.50.1 is my router's IP. I don't use the standard 192.168.x.x addresses.

I installed OTRW take2 tonight as well, and enabled jffs (which I hadn't been using before, as I'm running Optware off my USB drive connected to the router) and am getting the same result. Segmentation fault.
volitation
DD-WRT User


Joined: 30 Dec 2011
Posts: 91

PostPosted: Wed Jul 04, 2012 12:25    Post subject: Reply with quote
Can you try running it like this?

Code:

LD_LIBRARY_PATH="" ./dnscrypt-proxy -a 127.0.0.1 -P 40
prp2
DD-WRT Novice


Joined: 18 Oct 2009
Posts: 14

PostPosted: Fri Jul 06, 2012 19:54    Post subject: Reply with quote
volitation wrote:
Can you try running it like this?

Code:

LD_LIBRARY_PATH="" ./dnscrypt-proxy -a 127.0.0.1 -P 40


Same result, unfortunately. Sad
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next Display posts from previous:    Page 2 of 8
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum