Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- iptables -A INPUT -p TCP -m multiport --dports 22 -m state --state NEW -i eth0 -j ACCEPT
- iptables -t mangle -A OUTPUT -p tcp -m multiport --dports 22 -j MARK --set-mark 0x1
- iptables -t nat -A POSTROUTING -o eth0 -p tcp -m multiport --dports 22 -j SNAT --to 192.168.1.2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement