Loading...
 

History: How to configure ClearOS to only permit management from a specific IP address

Preview of version: 4

More details later, but in a nutshell

Remove SSH (usually port 22) and Webconfig (port 81) access from default Incoming Firewall (https://example.org:81/app/incoming_firewall) and replace by rules in the Custom Firewall

Be careful not to lock yourself out!

Blanket block of SSH access on port 22
iptables -I INPUT -p tcp --dport 22 -j DROP
Accept connections from 203.0.113.0 (replace with your IP)
iptables -I INPUT -p tcp --source 203.0.113.0 --dport 22 -j ACCEPT
Blanket block of ClearOS Webconfig
iptables -I INPUT -p tcp --dport 81 -j DROP
Accept connections from 203.0.113.0 (replace with your IP)
iptables -I INPUT -p tcp --source 203.0.113.0 --dport 81 -j ACCEPT


Make sure you have activated the rules on the Custom Firewall (you disable a rule instead of deleting)

History

Advanced
Information Version
Marc Laporte 13
View
Nick Howitt 12
View
Nick Howitt 11
View
Marc Laporte 10
View
Marc Laporte 9
View
Marc Laporte 8
View
Marc Laporte 7
View
Marc Laporte 6
View
Marc Laporte 5
View
Marc Laporte 4
View
Marc Laporte 3
View
Marc Laporte 2
View
Marc Laporte 1
View