iptables.rules 631 B

12345678910111213141516171819202122232425262728
  1. *filter
  2. # default policy is DROP
  3. -P INPUT DROP
  4. -P OUTPUT DROP
  5. -P FORWARD DROP
  6. # open loopback interface
  7. -A INPUT -i lo -j ACCEPT
  8. -A OUTPUT -o lo -j ACCEPT
  9. # allow PT-TLS
  10. -A INPUT -i eth0 -p tcp --dport 271 -j ACCEPT
  11. -A OUTPUT -o eth0 -p tcp --sport 271 -j ACCEPT
  12. # allow inbound ssh
  13. -A INPUT -p tcp --dport 22 -j ACCEPT
  14. -A OUTPUT -p tcp --sport 22 -j ACCEPT
  15. # allow outbound ssh
  16. -A OUTPUT -p tcp --dport 22 -j ACCEPT
  17. -A INPUT -p tcp --sport 22 -j ACCEPT
  18. # allow crl fetch from winnetou
  19. -A INPUT -i eth0 -p tcp --sport 80 -s 192.168.0.150 -j ACCEPT
  20. -A OUTPUT -o eth0 -p tcp --dport 80 -d 192.168.0.150 -j ACCEPT
  21. COMMIT