a guest Mar 24th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- echo 1 > cat /proc/sys/net/ipv4/ip_forward
- # 100.100.100.100:1337 -> 220.127.116.11:1337
- # replace "-A" with "-D" to delete rule
- iptables -t nat -A PREROUTING -p tcp --dport 1337 -j DNAT --to-destination 100.100.100.100:1337
- iptables -t nat -A POSTROUTING -p tcp -d 100.100.100.100 --dport 1337 -j SNAT --to-source 18.104.22.168
RAW Paste Data