Networking Forums

Networking Forums > Computer Networking > Linux Networking > iptables block host name instead of ip address

Reply
Thread Tools Display Modes

iptables block host name instead of ip address

 
 
-
Guest
Posts: n/a

 
      02-04-2005, 08:43 AM
How do i block traffic to a specifick hostname.
For example www.hotmail.com

host www.hotmail.com
www.hotmail.com is an alias for www.hotmail.com.nsatc.net.
www.hotmail.com.nsatc.net has address 166.63.208.155
www.hotmail.com.nsatc.net has address 207.68.172.241
www.hotmail.com.nsatc.net has address 208.173.208.152

Now i insert all the seperate ip addresses so trafic to
www.hotmail.com is blocked.

However, when the ip address change, people can go to www.hotmail.com
again, without notice.

Can this be done with iptables or perhaps some other way?

Kind Regards
 
Reply With Quote
 
 
 
 
David Schwartz
Guest
Posts: n/a

 
      02-04-2005, 08:53 AM

"-" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> How do i block traffic to a specifick hostname.
> For example www.hotmail.com
>
> host www.hotmail.com
> www.hotmail.com is an alias for www.hotmail.com.nsatc.net.
> www.hotmail.com.nsatc.net has address 166.63.208.155
> www.hotmail.com.nsatc.net has address 207.68.172.241
> www.hotmail.com.nsatc.net has address 208.173.208.152
>
> Now i insert all the seperate ip addresses so trafic to
> www.hotmail.com is blocked.
>
> However, when the ip address change, people can go to www.hotmail.com
> again, without notice.
>
> Can this be done with iptables or perhaps some other way?


Fundamentally this cannot be done. In principle, an IP filter has no way
of knowing what host name another computer used to establish what IP address
it's connecting to.

It's like trying to program a telephone system to prevent calls to
George Jones, even if his phone number changes or he is at a friend's house.
The phone system has no idea who you are calling, just what number you
dialed.

DS


 
Reply With Quote
 
Davide Bianchi
Guest
Posts: n/a

 
      02-04-2005, 08:56 AM
On 2005-02-04, - <(E-Mail Removed)> wrote:
> How do i block traffic to a specifick hostname.
> For example www.hotmail.com


In your DNS define www.hotmail.com to point to 127.0.0.1 or just program
your proxy to forbid that domain.
This will not block the connections but make them to fail.

Davide

--
The hardware is the part of the computer that you an kick.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using iptables to block OUTBOUND port 25? deja3-user@bitrealm.com Linux Networking 6 02-18-2008 05:58 AM
iptables- block mac address off by one Linux Networking 4 11-09-2007 06:15 PM
block outgoing packets with iptables Peter Lowrie Linux Networking 2 05-05-2006 03:31 AM
can iptables block inurl searches? arvid Linux Networking 2 02-11-2005 05:01 PM
iptables block ssh connections with putty Achim Gerber Linux Networking 4 07-07-2003 04:33 PM



1 2 3 4 5 6 7 8 9 10 11