LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 03: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, 04:15 AM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

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, 05: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-15-2012, 11:59 PM   #4
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Can you login into runlevel 1?
 
Old 03-16-2012, 02: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, 04:51 AM   #6
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

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


Reply



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 07:31 AM
Web Content filter jocast Linux - Networking 2 03-20-2006 05:22 PM
Which Content Filter? jabird Linux - Networking 1 10-11-2004 06:09 PM
Internet content filter Bamse123 Linux - Software 4 12-31-2003 08:33 PM
content filter on firewall Nerun Linux - Security 3 02-21-2002 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:51 PM.

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
Open Source Consulting | Domain Registration