Nessuna descrizione
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

etc_ferm_ferm.conf 924B

123456789101112131415161718192021222324252627282930313233343536
  1. # Firewall configuration for a web and SMTP server.
  2. # See http://ferm.foo-projects.org/
  3. table filter {
  4. chain INPUT {
  5. policy DROP;
  6. # connection tracking
  7. mod state state INVALID DROP;
  8. mod state state (ESTABLISHED RELATED) ACCEPT;
  9. # allow local connections
  10. interface lo ACCEPT;
  11. # respond to ping
  12. proto icmp icmp-type echo-request ACCEPT;
  13. # expose our services to the world:
  14. # web, ssh, imap + ssl, smtp + ssl, jabber/xmpp, dns, znc
  15. proto tcp dport (53 http https ssh smtp 993 465 5222 5223 5269 6697) ACCEPT;
  16. # openvpn
  17. proto udp dport 1194 ACCEPT;
  18. # mosh port range
  19. proto udp dport 60000:61000 ACCEPT;
  20. # the rest is dropped by the above policy
  21. }
  22. # outgoing connections are not limited
  23. chain OUTPUT policy ACCEPT;
  24. # this is not a router
  25. chain FORWARD policy DROP;
  26. }