SHARE
TWEET

Untitled

a guest May 18th, 2014 1,425 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top