Skip to content

Instantly share code, notes, and snippets.

@yingshaoxo
Last active February 12, 2023 03:52
Show Gist options
  • Save yingshaoxo/327d7ae3f12a8b0bd493bb2f5ee25606 to your computer and use it in GitHub Desktop.
Save yingshaoxo/327d7ae3f12a8b0bd493bb2f5ee25606 to your computer and use it in GitHub Desktop.
How to Set DNS tunnel

0. basic knowledge

https://qiuri.org/806.html https://www.rawidn.com/posts/how-to-use-dns-tunnel.html https://github.com/yarrick/iodine#server-side

1. set domain record

2. run iodine at server

iodined -f -p 5353 -P password 192.168.100.1 t1.yingshaoxo.xyz

3. forward 53 port to 5353

use ifconfig to check if your interface is also eth0

iptables -t nat -A PREROUTING -i eth0 -p udp --dport 53 -j DNAT --to :5353

4. give it a test

go to http://code.kryo.se/iodine/check-it/

5. run local program

sudo iodine -f -P password 45.76.7.184 t1.yingshaoxo.xyz

6. set up ssr and connect it through local ip 192.168.100.1

have fun!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment