Though most administrators will be able to accomplish all their firewall needs using the standard ClearOS web interface, it may be necessary to add custom firewall rules in some scenarios. The Custom Firewall Tool provides a way to create advanced firewall rules. Please use with caution!
If you did not select this module to be included during the installation process, you must first install the module.
You can find this feature in the menu system at the following location:
The following entries would restrict remote SSH (port 22) an Webconfig (port 81) access to specific IP address that you define (i.e. allow remote login from office, home, datacenter etc.).
<code> # Deny all SSH connections iptables -I INPUT -p tcp –dport 22 -j DROP # All connections from address xyz iptables -I INPUT -p tcp –source 188.8.131.52 –dport 22 -j ACCEPT iptables -I INPUT -p tcp –source 184.108.40.206 –dport 22 -j ACCEPT
# Deny all webconfig connections iptables -I INPUT -p tcp –dport 81 -j DROP # All connections from address xyz iptables -I INPUT -p tcp –source 220.127.116.11 –dport 81 -j ACCEPT iptables -I INPUT -p tcp –source 18.104.22.168 –dport 81 -j ACCEPT search?q=clearos%2C%20clearos%20content%2C%20Custom%20Firewall%2C%20app-firewall_custom%2C%20clearos5%2C%20userguide%2C%20categorynetwork%2C%20subcategoryfirewall%2C%20maintainer_dloper&btnI=lucky