LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Edit ClearOS content filter from terminal (https://www.linuxquestions.org/questions/linux-newbie-8/edit-clearos-content-filter-from-terminal-934555/)

bcbotha 03-15-2012 03:33 AM

Edit ClearOS content filter from terminal
 
Hi there, I am in dire need of help with my proxy's content filter. The content filter didn't seems to be working yesterday as I had set items like pornography in the black list and phrase lists. My sensitivity I had put to high and my filter mode was set to filter and yet the proxy still allows you to browse through to porn. So I set the mode to banned and now I can't even log into the proxy via the web login because one of the black list items or phrases was proxy servers.

Is there a way I can change the filter mode from the terminal? and what command would I use?

Thanks

Satyaveer Arya 03-15-2012 04:15 AM

Run the following command on your ClearOS machine to add the required rule temporarily:

Code:

# iptables -t nat -I PREROUTING -s <IPADDRESS> -p tcp --dport 80 -j ACCEPT
To clear the rule, simply restart the firewall service:

Code:

# service firewall restart

bcbotha 03-15-2012 05:14 AM

Thanks for the reply Satyaveer Arya, I ran
[CODE]# iptables -t nat -I PREROUTING -s <IPADDRESS> -p tcp --dport 80 -j ACCEPT[/CODE
but I still can't login via the web interface. How do I do that? or manually change the filter mode through the filter?

Thanks

Satyaveer Arya 03-15-2012 11:59 PM

Can you login into runlevel 1?

bcbotha 03-16-2012 02:26 AM

Thanks guys for your help but I had to get a local guy to fix it. He logged in with ssh and created a tunnel, he then changed the setting I was trying to get at and I am now up and running.

Thanks

Satyaveer Arya 03-16-2012 04:51 AM

Now your problem has been fixed, so please mark your thread as SOLVED. :)


All times are GMT -5. The time now is 09:25 AM.