Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- echo 1 > /proc/sys/net/ipv4/ip_forward
- iptables -F
- iptables -t nat -F
- iptables -X
- iptables -t nat -A PREROUTING -p tcp --dport 25566 -j DNAT --to-destination 10.8.0.3:25565
- iptables -t nat -A POSTROUTING -p tcp -d 10.8.0.3 --dport 25566 -j SNAT --to-source 10.0.0.11
- #iptables -A INPUT -i eth0 -j ACCEPT
- #iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
- #iptables -A OUTPUT -j ACCEPT
- #iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement