This is a discussion on iptables block host name instead of ip address within the Linux Networking forums, part of the Linux Forums category; How do i block traffic to a specifick hostname. For example www.hotmail.com host www.hotmail.com www.hotmail....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
"-" <mapsit@hotmail.com> wrote in message news:8ab0e2d9.0502040143.615d8419@posting.google.c 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 |