LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-29-2002, 11:20 PM   #1
Ionized
Member
 
Registered: Jul 2002
Location: Chicago Suburbs
Distribution: Slackware 8.0
Posts: 51

Rep: Reputation: 15
IPChains hostname has multiple IPs is resolves to?


I want to block the hostname ads.web.aol.com (don't we all). I've attempted to put in a clause in my firewall script as such:

ipchains -A input -b -i eth0 -p tcp -s ads.web.aol.com -d $MYIP -j REJECT

but it doesn't seam to work.
I'm wondering...is ipchains unable to work with hostnames that resolve to multiple IP addresses?
 
Old 07-30-2002, 01:03 AM   #2
MartBrooks
Member
 
Registered: May 2002
Location: London
Distribution: Debian
Posts: 388

Rep: Reputation: 31
ipchains will block whichever IP ads.web.aol.com resolves to when the rule is inserted. It won't re-evaluate the IP until the rule is flushed and reloaded.

You'll need to block all the IPs associated with the A record. Better still you could use squid and squidguard to block banners.

Regards
 
  


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
how to define a specific range of IPs and/or multiple IPs in an iptables rule?... TheHellsMaster Linux - Security 9 09-20-2004 10:06 AM
Multiple IPs patpawlowski Linux - Networking 7 08-09-2004 09:27 AM
multiple IPs, one nic v4lu3s Linux - Networking 4 02-07-2004 10:52 AM
Using IPCHAINS to allow only a range of IPs ganninu Linux - Security 1 01-13-2004 11:18 AM
multiple ips, multiple gateways, one interface drpixel Linux - Networking 6 12-04-2002 12:56 AM

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

All times are GMT -5. The time now is 08:27 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