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
prp2
DD-WRT Novice


Joined: 18 Oct 2009
Posts: 14

PostPosted: Mon Jul 09, 2012 9:41    Post subject: Reply with quote
Got it working now. Smile Just have to add it to my DNSMasq settings and such on page 1.
Sponsor
slobodan
DD-WRT Guru


Joined: 03 Nov 2011
Posts: 1557
Location: Zwolle

PostPosted: Mon Jul 16, 2012 15:29    Post subject: Reply with quote
Tried dnscrypt-proxy from lancethepants.com/files with the following result:

version compiled with DD-WRT toolchain: segmentation fault;

standard version (i.e. Tomato K26): works fine on my routers.

_________________
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: Thu Jul 19, 2012 17:23    Post subject: new version Reply with quote
I see that opendns released two revisions in the last week or so, the latest being 0.12
Lancethepants has several different variants including 5 different ddwrt versions. Does anyone know what is different between the versions? He just mentions ddwrt toolchains.

rearden
lancethepants
DD-WRT Novice


Joined: 24 Feb 2011
Posts: 34

PostPosted: Fri Jul 20, 2012 15:25    Post subject: Reply with quote
here's the toolchains I used. I downloaded from DD-WRT site and tried any that would work.

toolchain-mipsel_3.3.6_BRCM24 #1

toolchain-mipsel_4.1.1_BRCM24 #2

toolchain-mipsel_gcc4.1.2 #3

toolchain-mipsel_gcc-linaro_uClibc-0.9.32 #4

toolchain-mips_r2_gcc-linaro_uClibc-0.9.32 #5
wasiqcheema
DD-WRT Novice


Joined: 08 May 2009
Posts: 2

PostPosted: Sat Jul 21, 2012 14:14    Post subject: confused! Reply with quote
I just need some guidance before I mess around with my router in regards to DNScrypt

I have Linksys E2000 with v24-sp2 (04/13/11) big (16785) ddwrt firmware.

If I enable jffs2, I only get the following space:
Total : 384.00 KB
Free Size : 152.00 KB


Now, I am unclear which files to put where and what scripts to run where.

There are five DD-WRT 0.12 version binaries which are available here : http://lancethepants.com/files/index.php?dir=Binaries%20%28DNSCrypt%29/DNSCrypt-Proxy/0.12%20DD-WRT/

How do I actually set this up?

I am also skeptical about which firmware builder to choose. Eko or Brainslayer?
ryzhov_al
DD-WRT Novice


Joined: 17 Jul 2012
Posts: 48
Location: Smolensk, Russia

PostPosted: Sat Jul 21, 2012 15:00    Post subject: Re: confused! Reply with quote
wasiqcheema wrote:
If I enable jffs2, I only get the following space:
Total : 384.00 KB
Free Size : 152.00 KB

I'm afraid that is not enough:
Code:
$ du -h ./ipkg-entware/dnscrypt-proxy/opt/sbin/dnscrypt-proxy
432K    ./ipkg-entware/dnscrypt-proxy/opt/sbin/dnscrypt-proxy

_________________
Entware team
wasiqcheema
DD-WRT Novice


Joined: 08 May 2009
Posts: 2

PostPosted: Sat Jul 21, 2012 15:37    Post subject: Re: confused! Reply with quote
ryzhov_al wrote:
wasiqcheema wrote:
If I enable jffs2, I only get the following space:
Total : 384.00 KB
Free Size : 152.00 KB

I'm afraid that is not enough:
Code:
$ du -h ./ipkg-entware/dnscrypt-proxy/opt/sbin/dnscrypt-proxy
432K    ./ipkg-entware/dnscrypt-proxy/opt/sbin/dnscrypt-proxy


So which firmware can I use to increase my jffs? I'm not many of router's services (e.g. hotspot, vpn, etc). I'm just planning to run OTRW and DNScrypt.

According to my research,
For OTRW, one need a USB enabled router. So, E2000 is out of option.
For DNScrypt, one need a jffs space of around 1MB. E2000 has 8MB flash... and is already DDWRT'd. So,. I can use nv60k builds, but which one? Eko or Brainslayer? I've read somewhere that Brainslayer builds give more jffs2 space than EKO's. Any pro advice?
lancethepants
DD-WRT Novice


Joined: 24 Feb 2011
Posts: 34

PostPosted: Sun Jul 22, 2012 7:35    Post subject: Reply with quote
Generally you micro or mini builds should allow for more jffs space. The binaries I uploaded for DD-WRT right now are a little bigger, I can compile them to be aproximatley 1/2 their current size. For this round of binaries I decided to not add a few addition flags (LDFLAGS) just to make sure they're not messing anything up, but this also resulted in bigger binaries.

See if you can acquire a firmware that will allow around .5 megabytes space. If you would like to test the binaries for me, you can also load them to /tmp (ram) for testing purposes.

Some routers simply may not simply have the space for sufficient jffs, though I would imagine that the e2000/e3000 with their 8MB could.
ryzhov_al
DD-WRT Novice


Joined: 17 Jul 2012
Posts: 48
Location: Smolensk, Russia

PostPosted: Sun Jul 22, 2012 9:06    Post subject: Reply with quote
lancethepants wrote:
Generally you micro or mini builds should allow for more jffs space. The binaries I uploaded for DD-WRT right now are a little bigger, I can compile them to be aproximatley 1/2 their current size. For this round of binaries I decided to not add a few addition flags (LDFLAGS) just to make sure they're not messing anything up, but this also resulted in bigger binaries.

Also, by throwing off some linker flags from original configure.ac we'll able to pack it with $ upx --ultra-brute.

_________________
Entware team
ryzhov_al
DD-WRT Novice


Joined: 17 Jul 2012
Posts: 48
Location: Smolensk, Russia

PostPosted: Sun Jul 22, 2012 18:20    Post subject: Reply with quote
lancethepants wrote:
I can compile them to be aproximatley 1/2 their current size. For this round of binaries I decided to not add a few addition flags (LDFLAGS) just to make sure they're not messing anything up, but this also resulted in bigger binaries.

Another way to make the dnscrypt-proxy smaller is excluding code sections from binary which not really used.

Code:
TARGET_LDFLAGS += -Wl,--gc-sections
TARGET_CFLAGS += -fdata-sections -ffunction-sections
...
after compilation
...
$ du -h ./dnscrypt-proxy
256K    ./dnscrypt-proxy

Which means ~40% of original binary code is not used.

_________________
Entware team
slobodan
DD-WRT Guru


Joined: 03 Nov 2011
Posts: 1557
Location: Zwolle

PostPosted: Sun Jul 22, 2012 19:13    Post subject: Reply with quote
lancethepants wrote:
here's the toolchains I used. I downloaded from DD-WRT site and tried any that would work.

toolchain-mipsel_3.3.6_BRCM24 #1

toolchain-mipsel_4.1.1_BRCM24 #2

toolchain-mipsel_gcc4.1.2 #3

toolchain-mipsel_gcc-linaro_uClibc-0.9.32 #4

toolchain-mips_r2_gcc-linaro_uClibc-0.9.32 #5


All work for me, except #5. I used the Tomato build most, but I have switched to #4 since I had some very short periods of the router being unresponsive. I don't think they have gone for good, but it seems to have helped a bit. I don't use hostip, since I want no unencrypted DNS requests. Time is synchronized from an IP number and the router checks the time before starting dnscrypt (i.e. if the year is 1970 it loops back to checking the time).

_________________
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)


Luniz2k1
DD-WRT Guru


Joined: 04 Oct 2007
Posts: 1258
Location: Ohio USA

PostPosted: Mon Jul 23, 2012 15:12    Post subject: Reply with quote
lancethepants wrote:
Generally you micro or mini builds should allow for more jffs space.


Micro does not have JFFS. Please refer to the File Versions table to see which builds include JFFS.

_________________
(05/02/17) std - 31924
Linksys WRT400N
Buffalo WHR-G300N

Got OpenDNS?
lancethepants
DD-WRT Novice


Joined: 24 Feb 2011
Posts: 34

PostPosted: Mon Jul 23, 2012 22:33    Post subject: Reply with quote
ryzhov_al wrote:
lancethepants wrote:
I can compile them to be aproximatley 1/2 their current size. For this round of binaries I decided to not add a few addition flags (LDFLAGS) just to make sure they're not messing anything up, but this also resulted in bigger binaries.

Another way to make the dnscrypt-proxy smaller is excluding code sections from binary which not really used.

Code:
TARGET_LDFLAGS += -Wl,--gc-sections
TARGET_CFLAGS += -fdata-sections -ffunction-sections
...
after compilation
...
$ du -h ./dnscrypt-proxy
256K    ./dnscrypt-proxy

Which means ~40% of original binary code is not used.


Thanks for the insight ryzhov_al. Will give that a shot.
apedance
DD-WRT Novice


Joined: 04 Dec 2012
Posts: 9

PostPosted: Tue May 14, 2013 6:31    Post subject: Reply with quote
any updates on this?

i use wndr3700v1 atheros -> no mipsel

can i use it?
d3rutat
DD-WRT Novice


Joined: 15 Dec 2009
Posts: 24

PostPosted: Thu Jun 19, 2014 8:39    Post subject: Reply with quote
Hello. Is there a version available for K3 ARM routers, such as the Netgear R7000?
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next Display posts from previous:    Page 3 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