Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-01-2003, 08:49 AM
|
#1
|
Member
Registered: Mar 2002
Distribution: Too many to count
Posts: 368
Rep:
|
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.
|
|
|
04-01-2003, 09:30 AM
|
#2
|
Member
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532
Rep:
|
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/)
|
|
|
04-01-2003, 09:40 AM
|
#3
|
Member
Registered: Mar 2002
Distribution: Too many to count
Posts: 368
Original Poster
Rep:
|
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?
|
|
|
04-01-2003, 10:22 AM
|
#4
|
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658
Rep:
|
-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.
|
|
|
04-01-2003, 01:11 PM
|
#5
|
Member
Registered: Mar 2002
Distribution: Too many to count
Posts: 368
Original Poster
Rep:
|
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?
|
|
|
04-02-2003, 08:16 AM
|
#6
|
Member
Registered: Mar 2002
Distribution: Too many to count
Posts: 368
Original Poster
Rep:
|
thank you so much
|
|
|
04-02-2003, 09:29 AM
|
#7
|
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658
Rep:
|
Did you figure out the problem with why iptables didn't apply to squid connections? I was kind of intrigued.
|
|
|
04-02-2003, 02:11 PM
|
#8
|
Member
Registered: Mar 2002
Distribution: Too many to count
Posts: 368
Original Poster
Rep:
|
It did apply, I just had to unload ipchain's modules first, and then save the /etc/sysconfig/iptables file in the correct syntax.
|
|
|
All times are GMT -5. The time now is 08:07 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|