This is a short guide on how to use 4MLinux Firewall (based on iptables), which is available in 4MLinux Server Edition, 4MLinux Allinone Edition, and TheSSS.
1) Open your terminal and execute the 'firewall' command:
2) Let's start the firewall ('firewall start') and check if it really runs ('firewall test'). After you execute these two commands, iptables status will be displayed:
3) Firewall configuration files (/etc/firewall/config and /etc/firewall/black.list) may look as follows:
Note: IP addresses listed in the black.list file will not be able to access your server.
4) By default, none of 4MLinux servers is started automatically during the boot, but you can change this by setting 'firewall' to 'yes' in the /etc/server/autostart.conf file:
FTP - HTTP - SSH - TELNET - FIREWALL - PROXY - MONITORING