Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. iptables -t filter -L
  2. -----------------------------
  3. Chain INPUT (policy ACCEPT)
  4. target prot opt source destination
  5. ACCEPT all -- anywhere anywhere
  6. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  7. ACCEPT tcp -- anywhere anywhere tcp dpt:222
  8. ACCEPT tcp -- anywhere anywhere tcp dpt:35071
  9. DROP all -- anywhere anywhere
  10. ACCEPT udp -- anywhere anywhere udp dpt:isakmp
  11. ACCEPT tcp -- anywhere anywhere tcp dpt:4500
  12. ACCEPT udp -- anywhere anywhere udp dpt:ipsec-nat-t
  13. ACCEPT udp -- anywhere anywhere udp dpt:sip
  14. ACCEPT udp -- anywhere anywhere udp dpt:sip-tls
  15. ACCEPT udp -- anywhere anywhere udp dpts:10000:20000
  16. ACCEPT udp -- anywhere anywhere udp dpt:iax
  17. ACCEPT tcp -- anywhere anywhere tcp dpt:5038
  18.  
  19. Chain FORWARD (policy ACCEPT)
  20. target prot opt source destination
  21. ACCEPT tcp -- anywhere anywhere tcp dpt:50000 state NEW
  22. ACCEPT tcp -- anywhere anywhere tcp dpt:35071 state NEW
  23. ACCEPT all -- 192.168.200.0/24 192.168.0.0/16 policy match dir out pol ipsec proto esp
  24. ACCEPT all -- 192.168.0.0/16 192.168.200.0/24 policy match dir in pol ipsec proto esp
  25.  
  26. iptables -t nat -L
  27. -----------------------------
  28. Chain PREROUTING (policy ACCEPT)
  29. target prot opt source destination
  30.  
  31. Chain INPUT (policy ACCEPT)
  32. target prot opt source destination
  33.  
  34. Chain OUTPUT (policy ACCEPT)
  35. target prot opt source destination
  36.  
  37. Chain POSTROUTING (policy ACCEPT)
  38. target prot opt source destination
  39. RETURN all -- anywhere 192.168.0.0/16
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement