-
-
Save skinzor/88761209b20d32fa5fd1c2a676fecc54 to your computer and use it in GitHub Desktop.
OpenDNS VPN leakage problem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Needs: | |
| - root | |
| - OpenDNS | |
| - OpenDNS as DNs provider | |
| - Tasker (optional) if you want to automatically apply this tweak | |
| 1. openvpn –config shopper.ovpn –daemon | |
| 2. iptables -t nat -F OUTPUT | |
| 3. iptables -t nat -A OUTPUT -p udp –dport 53 -j DNAT –to-desired destination 192.168.1.1 | |
| # 192.168.1.1 is the internal IP handle of my router that has DNS server managing and intercepting all packets sent to UDP port fifty three | |
| 4. pkill netd | |
| 5. Established the DNS via terminal emulator or adb: | |
| ndc resolver flushif tun0 | |
| ndc resolver flushdefaultif | |
| ndc resolver setifdns tun0 208.67.222.222 208.67.220.220 | |
| ndc resolver setdefaultif tun0 | |
| Listed here is the disconnection sequence: | |
| 1. pkill openvpn | |
| 2. iptables -t nat -F OUTPUT | |
| 3. pkill netd | |
| 4. Set DNS: | |
| ndc resolver flushif wlan0 | |
| ndc resolver flushdefaultif | |
| ndc resolver setifdns wlan0 208.67.222.222 208.67.220.220 | |
| ndc resolver setdefaultif wlan0 | |
| Notice: wlan0 interface is my Wi-Fi. If I’m on 4G, then I use quotrmnet_data0 (or rmnet0) as a substitute. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment