Advertisement
Guest User

iptables rules

a guest
Nov 9th, 2014
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. Chain INPUT (policy DROP)
  2. target prot opt source destination
  3. ACCEPT all -- anywhere anywhere
  4. ACCEPT all -- anywhere anywhere ctstate ESTABLISHED
  5. ACCEPT icmp -- anywhere anywhere ctstate RELATED
  6. input_ext all -- anywhere anywhere
  7. LOG all -- anywhere anywhere limit: avg 3/min burst 5 LOG level warning tcp-options ip-options prefix "SFW2-IN-ILL-TARGET "
  8. DROP all -- anywhere anywhere
  9.  
  10. Chain FORWARD (policy DROP)
  11. target prot opt source destination
  12. LOG all -- anywhere anywhere limit: avg 3/min burst 5 LOG level warning tcp-options ip-options prefix "SFW2-FWD-ILL-ROUTING "
  13.  
  14. Chain OUTPUT (policy ACCEPT)
  15. target prot opt source destination
  16. ACCEPT all -- anywhere anywhere
  17.  
  18. Chain forward_ext (0 references)
  19. target prot opt source destination
  20.  
  21. Chain input_ext (1 references)
  22. target prot opt source destination
  23. DROP all -- anywhere anywhere PKTTYPE = broadcast
  24. ACCEPT icmp -- anywhere anywhere icmp source-quench
  25. ACCEPT icmp -- anywhere anywhere icmp echo-request
  26. DROP all -- anywhere anywhere PKTTYPE = multicast
  27. DROP all -- anywhere anywhere PKTTYPE = broadcast
  28. LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix "SFW2-INext-DROP-DEFLT "
  29. LOG icmp -- anywhere anywhere limit: avg 3/min burst 5 LOG level warning tcp-options ip-options prefix "SFW2-INext-DROP-DEFLT "
  30. LOG udp -- anywhere anywhere limit: avg 3/min burst 5 ctstate NEW LOG level warning tcp-options ip-options prefix "SFW2-INext-DROP-DEFLT "
  31. DROP all -- anywhere anywhere
  32.  
  33. Chain reject_func (0 references)
  34. target prot opt source destination
  35. REJECT tcp -- anywhere anywhere reject-with tcp-reset
  36. REJECT udp -- anywhere anywhere reject-with icmp-port-unreachable
  37. REJECT all -- anywhere anywhere reject-with icmp-proto-unreachable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement