Forums

Resolved
0 votes
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.
Tuesday, November 05 2019, 01:01 PM
Share this post:

Accepted Answer

Tuesday, November 05 2019, 01:55 PM - #Permalink
Resolved
1 votes
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.
The reply is currently minimized Show
Responses (1)
  • Accepted Answer

    Wednesday, November 06 2019, 09:42 AM - #Permalink
    Resolved
    0 votes
    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!
    The reply is currently minimized Show
Your Reply