lfirewall.conf 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. ###############################################################################
  2. # Do not edit the lfirewall.conf directly #
  3. # Instead copy it first and edit the lfirewall.conf.local #
  4. # #
  5. # cp /etc/lfirewall/lfirewall.conf /etc/lfirewall/lfirewall.conf.local #
  6. ###############################################################################
  7. # Firewall configuration file
  8. # Uncomment the services you need there
  9. #The network interface to use (uncomment and change value if needed)
  10. #NETWORK_IF=eth0
  11. #################################
  12. # Logging #
  13. #################################
  14. # Set ACTIVATE_LOGGING to 1
  15. # will activate logs
  16. # Set ACTIVATE_LOGGING to 0
  17. # will disable logs
  18. #ACTIVATE_LOGGING=0
  19. #################################
  20. # Additional network tweaks #
  21. #################################
  22. # Set ALLOW_IP_FORWARDING to 1
  23. # if IP forwarding is needed
  24. # Set ALLOW_IP_FORWARDING to 0
  25. # will write 0 into /proc/sys/net/ipv4/ip_forward
  26. #ALLOW_IP_FORWARDING=0
  27. # Set NETWORK_PROTECTION to 1
  28. # to block additional network features from the kernel
  29. # Set NETWORK_PROTECTION to 0
  30. # will do nothing
  31. #NETWORK_PROTECTION=1
  32. #################################
  33. # Services that the system will #
  34. # offer to the network #
  35. #################################
  36. # SSH
  37. SSH_PORT="22"
  38. TCP_SERVICES="22"
  39. # Web server
  40. #TCP_SERVICES="http https $TCP_SERVICES"
  41. # SAMBA
  42. #SAMBA_PORTS="137 138 139"
  43. #TCP_SERVICES="$TCP_SERVICES $SAMBA_PORTS"
  44. # SAMBA: if you are using Active Directory
  45. #TCP_SERVICES="$TCP_SERVICES 445"
  46. #TCP_SERVICES=$TCP_SERVICES" 10021 10023:10999" # vsFTP
  47. UDP_SERVICES=""
  48. #################################
  49. # Services the system will use #
  50. # from the network #
  51. #################################
  52. # These services will not be accessible from the current
  53. # server until they are allowed
  54. REMOTE_TCP_SERVICES="80 443" # Web browsing
  55. REMOTE_TCP_SERVICES="22 $REMOTE_TCP_SERVICES" # SSH
  56. REMOTE_TCP_SERVICES="20 $REMOTE_TCP_SERVICES" # FTP
  57. REMOTE_TCP_SERVICES="$REMOTE_TCP_SERVICES $SAMBA_PORTS"
  58. REMOTE_UDP_SERVICES="53" # DNS