server: cargo build sudo ./target/debug/dns-client --tunnel-server client: cargo build sudo ./target/debug/dns-client --tunnel-client --tun nw: # clean the iptables rules sudo iptables -F sudo iptables -t nat -F echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward sudo iptables -A FORWARD -i tun1 -o wlp4s0 -j ACCEPT #sudo iptables -t nat -A POSTROUTING -s 10.0.0.1/24 -o wlp4s0 -j SNAT --to-source 192.168.2.78 sudo iptables -t nat -A POSTROUTING -s 10.0.0.1/24 -o wlp4s0 -j MASQUERADE