LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-01-2003, 08:49 AM   #1
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Rep: Reputation: 30
ipchains dont work


I have resently migrated my rh 7.1 router network to a rh 8.0 proxy server network. However, I used ipchains on 7.1 to block web sites, but with the squid proxy server, the web sites are no longer blocked. What should I do to block web sites with my rh8.0 squid proxy server.
 
Old 04-01-2003, 09:30 AM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
for simple configurations add an ACL to squid.conf

acl begone1 dstdomain .doubleclick.net .fastclick.net .ivwbox.com
http_access deny begone1


for more complex blocks have a look at squidguard (http://www.squidguard.org/)
 
Old 04-01-2003, 09:40 AM   #3
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Original Poster
Rep: Reputation: 30
I just discovered that ipchains isn't compatible with rh 8.0, all of my chains are variations of the following:

-A input -s 209.10.0.0/16 -j DENY
-A input -p tcp --destination-port 8080 -j DENY

can someone translate these commands for iptables?
 
Old 04-01-2003, 10:22 AM   #4
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
-A INPUT -s 209.10.0.0/16 -j REJECT
-A INPUT -p tcp --dport 8080 -j REJECT

Can change the target (REJECT) to DROP depending on what you want iptables to do with the packet. With DROP, linux won't reply to the packet at all.
 
Old 04-01-2003, 01:11 PM   #5
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Original Poster
Rep: Reputation: 30
now, I have iptables to load successfully, but why do the rules not matter when I'm using squid as a proxy server on the same machine I'm loading iptables on?
 
Old 04-02-2003, 08:16 AM   #6
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Original Poster
Rep: Reputation: 30
thank you so much
 
Old 04-02-2003, 09:29 AM   #7
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Did you figure out the problem with why iptables didn't apply to squid connections? I was kind of intrigued.
 
Old 04-02-2003, 02:11 PM   #8
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Original Poster
Rep: Reputation: 30
It did apply, I just had to unload ipchain's modules first, and then save the /etc/sysconfig/iptables file in the correct syntax.
 
  


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
gdesklets dont work freeka Linux - Software 2 02-28-2005 10:59 AM
commands, some work some dont? Balkman Linux - Newbie 5 07-23-2004 11:58 AM
kpresenter dont work Superme Linux - Software 0 07-23-2004 11:25 AM
Things dont work when you dont understand withoutaclue Linux - Newbie 3 03-12-2003 09:51 AM
xset fp dont work sandy Linux - General 0 09-16-2002 05:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:20 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
Open Source Consulting | Domain Registration