Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #FORWARD ON
- sysctl -w net.ipv4.ip_forward=1
- #SNAT
- iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
- #DNAT
- iptables -t nat -A PREROUTING -i eth0 -p tcp -dport 22 -j DNAT --to-destination 192.168.25.3
- #SAVE FOREVER
- iptables-save > /etc/sysconfig/iptables
- echo "net.ipv4.ip_forward = 1" > /etc/sysctl.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement