part (1) of my settings.
Copyright 2006, Way to the Web Limited
# URL:
http://www.waytotheweb.com
# Email:
[email protected]
###############################################################################
TESTING = 0
TESTING_INTERVAL = 1
AUTO_UPDATES = 0
ETH_DEVICE =
# Unfiltered ethernet devices in a comma separated list (e.g "eth1,eth2")
ETH_DEVICE_SKIP =
# Lists of ports in the following comma separated lists can be added using a
# colon (e.g. 30000:35000).
# Allow incoming TCP ports
TCP_IN = 20,21,22,25,53,80,110,143,443,465,953,993,995,2082,2083,2086,2087,2095,2096
# Allow outgoing TCP ports
TCP_OUT = 20,21,22,25,37,43,53,80,110,113,443,587,873,953,2087,2089,2703
UDP_IN = 20,21,53,953
UDP_OUT = 20,21,53,113,123,873,953,6277
ICMP this settings will alow ping to enter and answer to retern, but will still provent my server
to participte in a dos attck, cos the server may not start the ping (I did this cos the data center is monitoring my server with pings.)
# Allow incoming PING
ICMP_IN = 1
# Allow outgoing PING
ICMP_OUT = 0
SMTP_BLOCK = 1
SMTP_ALLOWLOCAL = 1
this for VPS servers only
MONOLITHIC_KERNEL = 0
DROP_LOGGING = 1
DROP_IP_LOGGING = 1
DROP_ONLYRES = 1
DROP_NOLOG = 67,68,111,113,135:139,445,513,520,1026,1027,1234,1433,1434,1524,3127
PACKET_FILTER = 1
VERBOSE = 1
DYNDNS = 0
ALLOW_RES_PORTS = 0
DENY_IP_LIMIT = 250
GLOBAL_ALLOW =
GLOBAL_DENY =
LF_GLOBAL =
LF_DAEMON = 1
This is vey important, cos my options was to stop script brutu force, but not lock myself out or my users,,,, if you use my settings below, then if you are cought by logfile Demon,, then your only blocked from that port. I think this is best, as I usaly go an inspect the bloked IP's, and then add them MANUALY to my perminent deny list!!
from here,, down ,
LF_TRIGGER = 0
LF_SELECT = 1
LF_SSHD = 7
LF_FTPD = 20
LF_POP3D = 20
LF_IMAPD = 20
LF_HTACCESS = 1
LF_MODSEC = 1
LF_CPANEL = 20
LF_CSF = 1
LF_SSH_EMAIL_ALERT = 1
LF_SU_EMAIL_ALERT = 1
To here,,,, all the above very important,