Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-29-2002, 11:20 PM   #1
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 (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 -d $MYIP -j REJECT

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

Rep: Reputation: 31
ipchains will block whichever IP 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.



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
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 > Forums > Linux Forums > Linux - Networking

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

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