LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-15-2012, 04:33 AM   #1
bcbotha
Member
 
Registered: Nov 2008
Location: South Africa
Distribution: Ubuntu, Windows
Posts: 151

Rep: Reputation: 16
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
 
Old 03-15-2012, 05:15 AM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
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
 
Old 03-15-2012, 06:14 AM   #3
bcbotha
Member
 
Registered: Nov 2008
Location: South Africa
Distribution: Ubuntu, Windows
Posts: 151

Original Poster
Rep: Reputation: 16
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
 
Old 03-16-2012, 12:59 AM   #4
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Can you login into runlevel 1?
 
Old 03-16-2012, 03:26 AM   #5
bcbotha
Member
 
Registered: Nov 2008
Location: South Africa
Distribution: Ubuntu, Windows
Posts: 151

Original Poster
Rep: Reputation: 16
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
 
Old 03-16-2012, 05:51 AM   #6
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Now your problem has been fixed, so please mark your thread as SOLVED.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Qmail content filter guna_pmk Linux - Server 4 03-13-2012 08:31 AM
Web Content filter jocast Linux - Networking 2 03-20-2006 06:22 PM
Which Content Filter? jabird Linux - Networking 1 10-11-2004 07:09 PM
Internet content filter Bamse123 Linux - Software 4 12-31-2003 09:33 PM
content filter on firewall Nerun Linux - Security 3 02-21-2002 05:24 PM


All times are GMT -5. The time now is 02:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration