ipv4-iptables.txt 1.4 KB

1234567891011121314151617181920212223242526
  1. *filter
  2. :INPUT DROP [0:0]
  3. :FORWARD DROP [0:0]
  4. :OUTPUT ACCEPT [0:0]
  5. :TCP - [0:0]
  6. :UDP - [0:0]
  7. -A INPUT -p udp -m udp --dport 5060 -j ACCEPT -m comment --comment "allow twinkle to work hopefully"
  8. -A INPUT -p tcp -m tcp --dport 9050 -j ACCEPT -m comment --comment "allow tor to work hopefully"
  9. -A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT -m comment --comment "allow iptables to access www.norm.com"
  10. -A INPUT -p tcp -m tcp --dport 8081 -j ACCEPT -m comment --comment "allow iptables to access guile.web.server.com"
  11. -A INPUT -p tcp -m tcp --dport 6697 -j ACCEPT -m comment --comment "allow irc communication"
  12. -A INPUT -p udp -m udp --dport 6697 -j ACCEPT -m comment --comment "allow irc communication"
  13. # -A INPUT -p udp -m udp --dport 123 -j ACCEPT -m comment --comment "allow ntpd time service to work. http://www.ntp.org/"
  14. # Feb 5 14:39:57 localhost ntpd[333]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
  15. -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
  16. -A INPUT -i lo -j ACCEPT
  17. -A INPUT -m conntrack --ctstate INVALID -j DROP
  18. -A INPUT -p icmp -m icmp --icmp-type 8 -m conntrack --ctstate NEW -j ACCEPT
  19. -A INPUT -p udp -m conntrack --ctstate NEW -j UDP
  20. -A INPUT -p tcp --tcp-flags FIN,SYN,RST,ACK SYN -m conntrack --ctstate NEW -j TCP
  21. -A INPUT -p udp -j REJECT --reject-with icmp-port-unreachable
  22. -A INPUT -p tcp -j REJECT --reject-with tcp-reset
  23. -A INPUT -j REJECT --reject-with icmp-proto-unreachable
  24. COMMIT
  25. # completed