Advertisement
Guest User

Untitled

a guest
May 18th, 2014
1,566
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.26 KB | None | 0 0
  1. iptables -A INPUT -p TCP -m multiport --dports 22 -m state --state NEW  -i eth0 -j ACCEPT
  2. iptables -t mangle -A OUTPUT -p tcp -m multiport --dports 22 -j MARK --set-mark 0x1
  3. 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