Hi everyone,
first time using ClearOS, set up my own device last night, the community edition where I created a rule called "All" using TCP port 0 in the firewall. In hindsight, bad idea. I was expecting an error indicating that you cannot add 0 as a port.
The problem is that it accepted my entry and showed up in the list with the port field being blank. Shortly after, the firewall went into panic mode and I wasn't able to go out the external interface with any device on the LAN.
It was not possible to delete the entry through the web interface. Every time I clicked on delete or edit, I received an error saying "oops, port is ____ " (apologies, I don't have a screenshot and can't remember it word for word) and the entry remained.
My question is where on the backend/shell could I have removed the firewall entry and would the change have been reflected in the web config? Since I was planning on reinstalling the OS anyway, I flushed the iptables, which made no difference. The device was reinstalled at this point and everything is working fine again.
Any info is appreciated.
Thank you in advance!
Cheers.
first time using ClearOS, set up my own device last night, the community edition where I created a rule called "All" using TCP port 0 in the firewall. In hindsight, bad idea. I was expecting an error indicating that you cannot add 0 as a port.
The problem is that it accepted my entry and showed up in the list with the port field being blank. Shortly after, the firewall went into panic mode and I wasn't able to go out the external interface with any device on the LAN.
It was not possible to delete the entry through the web interface. Every time I clicked on delete or edit, I received an error saying "oops, port is ____ " (apologies, I don't have a screenshot and can't remember it word for word) and the entry remained.
My question is where on the backend/shell could I have removed the firewall entry and would the change have been reflected in the web config? Since I was planning on reinstalling the OS anyway, I flushed the iptables, which made no difference. The device was reinstalled at this point and everything is working fine again.
Any info is appreciated.
Thank you in advance!
Cheers.
In Firewall
Share this post:
Accepted Answer
Apart from Custom firewall rules, all rules added through the webconfig go into /etc/clearos/firewall.conf. Custom rules go into /etc/clearos/firewall.d/custom. They can be edited by hand and the change will be reflected in the webconfig. After editing either file, the firewall automatically restarts. This wipes the firewall and then applies the rules left in all the files automatically.
Responses (1)
-
Accepted Answer
Nick Howitt wrote:
Apart from Custom firewall rules, all rules added through the webconfig go into /etc/clearos/firewall.conf. Custom rules go into /etc/clearos/firewall.d/custom. They can be edited by hand and the change will be reflected in the webconfig. After editing either file, the firewall automatically restarts. This wipes the firewall and then applies the rules left in all the files automatically.
Looks like I was looking in the wrong place. Thank you for your answer!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »