Developers Documentation



301 error for file:

User Tools

Site Tools

Custom Firewall

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:



An invalid custom rule can block remote access to webconfig.


Limit SSH/Webconfig Access to Specific IP Addresses

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.).

# Deny all SSH connections iptables -I INPUT -p tcp –dport 22 -j DROP # All connections from address xyz iptables -I INPUT -p tcp –source –dport 22 -j ACCEPT iptables -I INPUT -p tcp –source –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 –dport 81 -j ACCEPT iptables -I INPUT -p tcp –source –dport 81 -j ACCEPT

content/en_us/5_custom_firewall.txt · Last modified: 2015/03/02 08:02 (external edit)