Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

DNScrypt proxy for Android install

OP Draygon

22nd October 2014, 09:35 AM   |  #21  
Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Oct 2014
installed but can only resolve when the apps has root permmission
Sorry, after i checked again, it's not only can resolve when has root permission. The real problem is, addresses can only be resolved using nslookup command from terminal, when i ping the address, the ping command can not get the address resolved, the same with all other application unable to resolve either. Any idea what happened? Thanks.
Last edited by m4ttrix; 23rd October 2014 at 04:46 AM. Reason: correction
3rd November 2014, 08:44 PM   |  #22  
Member
Thanks Meter: 5
 
52 posts
Join Date:Joined: Jun 2008
More
Quote:
Originally Posted by grodius

How do you set your phones global DNS setting for any dynamic IPs on any network? I cannot figure out how to point my phone to 127.0.0.1

The flashable .zip file contains a init.d script that, via iptables, does a transparent redirect of DNS requests

---------- Post added at 08:44 PM ---------- Previous post was at 08:39 PM ----------

Quote:
Originally Posted by m4ttrix

Sorry, after i checked again, it's not only can resolve when has root permission. The real problem is, addresses can only be resolved using nslookup command from terminal, when i ping the address, the ping command can not get the address resolved, the same with all other application unable to resolve either. Any idea what happened? Thanks.

Try to install busybox
10th November 2014, 03:49 AM   |  #23  
Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Oct 2014
Smile DNS Crypt only works on WIFI Connection
Quote:
Originally Posted by lamero1

The flashable .zip file contains a init.d script that, via iptables, does a transparent redirect of DNS requests

---------- Post added at 08:44 PM ---------- Previous post was at 08:39 PM ----------


Try to install busybox

I already installed busybox. Dnscrypt only works on WIFI connection. On 3G Connection dnscrypt only works on terminal nslookup command, and flashfox browser, other than that it shows DNS lookup failed error message. Seems like localhost port 53 inaccessible on 3G connection. Any idea what's missing? Thanks.

I'm using Note3 SM-N900 4.4.2 XXUENG1 , Busybox 1.22.1, Xposed framework 2.6.1
10th November 2014, 12:52 PM   |  #24  
Member
Thanks Meter: 5
 
52 posts
Join Date:Joined: Jun 2008
More
Please connect in 3G your phone. Via adb shell give this commands:
Code:
su
iptables -t nat -L
iptables -L
Paste the result (use nopaste service)
11th November 2014, 03:19 AM   |  #25  
Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Oct 2014
Quote:
Originally Posted by lamero1

Please connect in 3G your phone. Via adb shell give this commands:

Code:
su
iptables -t nat -L
iptables -L
Paste the result (use nopaste service)

Here's the result, a litte bit long: using no paste service "fd8c9bd52d.html" (sorry haven't reach 10post, can not post link)
Strange thing is that ONLY my flashfox browser works on this 3G connection, or maybe it has something to do with permission?
11th November 2014, 09:31 AM   |  #26  
Member
Thanks Meter: 5
 
52 posts
Join Date:Joined: Jun 2008
More
Lightbulb
I'm sorry I don't know, but you can try to:
  • Delete iptables -t nat -A OUTPUT -p udp --dport 53 -j DNAT --to-destination 127.0.0.1 from /system/etc/init.d/dnscrypt
  • Delete iptables -t nat -A OUTPUT -p udp --dport 53 -j DNAT --to-destination 127.0.0.1 from /system/xbin/dnscrypt
  • Install afwall
  • Read the FAQ
  • Build a custom script to redirect all DNS request to 127.0.0.1.
The Following User Says Thank You to lamero1 For This Useful Post: [ View ]
11th November 2014, 09:48 AM   |  #27  
Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Oct 2014
Thumbs up
Seems like a good idea, thanks you very much Bro~ , I'll try it.
25th November 2014, 09:08 PM   |  #28  
wrsg's Avatar
Senior Member
Flag in a cage
Thanks Meter: 91
 
826 posts
Join Date:Joined: Apr 2008
More
Got it working
The zip by @qwerty12 still doesn't flash for me but the contents of it do work when copied to the right directories (/system so you need root explorer or something similar) and set with permissions. Then set DNS to 127.0.0.1 and it should work after a reboot.

edit: compiled the new libsodium, just drop it in and it should work (/system/lib)
Attached Files
File Type: zip libsodium-1.0.1.zip - [Click for QR Code] (109.1 KB, 12 views)
Last edited by wrsg; 30th November 2014 at 02:54 PM.
The Following User Says Thank You to wrsg For This Useful Post: [ View ]
6th December 2014, 01:39 AM   |  #29  
wrsg's Avatar
Senior Member
Flag in a cage
Thanks Meter: 91
 
826 posts
Join Date:Joined: Apr 2008
More
New dnscrypt out, I'll compile it later if someone else doesn't beat me to it
Yesterday, 08:16 AM   |  #30  
Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Dec 2014
In order to get the dnscrypt-proxy command to run under android 5.0 I had to edit android-armv7.sh in dnscrypt to include flags for PIE.

#!/bin/sh
export CFLAGS="-Os -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -marm -march=armv7-a -fPIE"
export LDFLAGS="-fPIE -pie"
TARGET_ARCH=arm HOST_COMPILER=arm-linux-androideabi "$(dirname "$0")/android-build.sh"
Last edited by alihassani; Yesterday at 09:54 AM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes