summaryrefslogtreecommitdiff
path: root/ipmasq/rules/A80firewall.def
blob: 80045dbfabc1eb45f3554bc80d35ad7c04d0275d (plain)
  1. # You should not edit this file. Instead, create a file with the same
  2. # name as this one, but with a .rul extension instead of .def. The
  3. # .rul file will override this one.
  4. #
  5. # However, any changes you make to this file will be preserved.
  6. # Packet filter firewall script for ipmasq (GPL)
  7. # By Osamu Aoki <osamu@aokiconsulting.com>
  8. #
  9. # Firewall are set for external network connection ports listed in $EXTERNAL
  10. # Little consideration taken for shared port, eth0:0, etc. (Deny=Drop)
  11. #
  12. ###############################################################################
  13. #
  14. # CONFIGURE FIREWALL RULES
  15. #
  16. ## QADDR: deny(in)/reject(out) foreign hosts by address of forein host
  17. # w/o log
  18. # List all all annoying sites
  19. # Default = none
  20. QADDR=""
  21. # ATT@HOME nntp port scan daemon: 24.0.94.130 24.0.0.203
  22. # pop-up ad sites:
  23. # ads.x10.com 64.85.92.20
  24. # ad.doubleclick.net 206.65.183.125
  25. # network status check:
  26. # pnap.com 216.52.223.0/24 ICMP
  27. #QADDR="24.0.94.130/32 24.0.0.203/32 64.85.92.20/32 206.65.183.125/32 216.52.223.0/24"
  28. ## ATCPSVR: allow foreign host by port of this PC for TCP
  29. # List open port server services (Both in and out)
  30. # Default = All open.
  31. ATCPSVR="1:1023"
  32. # Very open (No netbios nor sunrpc)
  33. #ATCPSVR="ftp ftp-data ssh telnet smtp nameserver whois domain finger www kerberos pop2 pop3 auth imap2 irc imap3 ldap https who talk uucp ldaps imaps pop3s"
  34. # Normal
  35. #ATCPSVR="ssh auth smtp telnet www pop3 https"
  36. # My choice
  37. #ATCPSVR="ssh auth smtp"
  38. ## AUDPSVR: allow foreign host by port of this PC for UDP
  39. # List open port server services (Both in and out)
  40. # Default = All open.
  41. ATCPSVR="1:1023"
  42. # Normal = just accept dhcp server <-> dhcp client
  43. #AUDPSVR="bootpc"
  44. ## QTCPSVR: deny foreign host by port of this PC w/o log for TCP
  45. # do not service these to outside but useful inside
  46. QTCPSVR="137:139 80 111"
  47. ## QUDPSVR: deny foreign host by port of this PC w/o log for UDP
  48. # do not service these to outside but useful inside
  49. QUDPSVR="137:139"
  50. ## DTCPSVR: deny foreign host by port of this PC with log for TCP
  51. # server port range (LOG)
  52. DTCPSVR="1:1023"
  53. ## DUDPSVR: deny foreign host by port of this PC with log for UDP
  54. # server port range (LOG)
  55. DUDPSVR="1:1023"