Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. # allow ESP
  2. iptables -A INPUT -p 50 -j ACCEPT
  3. # allow IKE
  4. iptables -A INPUT -p udp --dport 500 -j ACCEPT
  5. # allow NAT-T (IKE and ESP-in-UDP)
  6. iptables -A INPUT -p udp --dport 4500 -j ACCEPT
  7. # allow SSH and other protocols
  8. iptables -A INPUT -p tcp --dport 22 -j ACCEPT
  9. ...
  10. # drop packets by default
  11. iptables -P INPUT DROP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement