A Windows Vista forum. Vista Banter

Welcome to Vista Banter.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Go Back   Home » Vista Banter forum » Microsoft Windows Vista » Networking with Windows Vista
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Networking with Windows Vista Networking issues and questions with Windows Vista. (microsoft.public.windows.vista.networking_sharing)

How to block IPs with 'route.exe' in Vista



 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old February 24th 08, 12:12 AM posted to microsoft.public.windows.vista.networking_sharing
Robert Weiss
external usenet poster
 
Posts: 5
Default How to block IPs with 'route.exe' in Vista

Hallo,
let's say i want to block www.disney.com (199.181.132.250). For that, i
enter following command into the shell:

route add 199.181.132.250 192.168.1.254

Subnet is 192.168.1.0/24
192.168.1.254 is unused

In XP the ip and dns is unreachable by browser now. Thats fine. But in vista
the same procedure doesn't work. It seems there's just an additional short
lag and then the site appears anyway. My guess is vista falls back to a
valid route after sensing the invalid route but i don't know for sure.

So, does anyone know how to use the 'route' command correctly on vista to
get the same result as in XP?


  #2 (permalink)  
Old February 24th 08, 12:38 AM posted to microsoft.public.windows.vista.networking_sharing
Chuck [MVP]
external usenet poster
 
Posts: 512
Default How to block IPs with 'route.exe' in Vista

On Sun, 24 Feb 2008 02:12:35 +0100, "Robert Weiss" wrote:

Hallo,
let's say i want to block www.disney.com (199.181.132.250). For that, i
enter following command into the shell:

route add 199.181.132.250 192.168.1.254

Subnet is 192.168.1.0/24
192.168.1.254 is unused

In XP the ip and dns is unreachable by browser now. Thats fine. But in vista
the same procedure doesn't work. It seems there's just an additional short
lag and then the site appears anyway. My guess is vista falls back to a
valid route after sensing the invalid route but i don't know for sure.

So, does anyone know how to use the 'route' command correctly on vista to
get the same result as in XP?


Robert,

When you set this up, do a "route print". Then do a second "route print" after
you try accessing the target web site. Let's see if Vista is changing the route
table.

Just for curiosity, why aren't you using the Hosts file?
http://nitecruzr.blogspot.com/2006/06/bad-websites-dont-go-there.html
http://nitecruzr.blogspot.com/2006/0...-go-there.html

--
Cheers,
Chuck, MS-MVP 2005-2007 [Windows - Networking]
http://nitecruzr.blogspot.com/
Paranoia is not a problem, when it's a normal response from experience.
My email is AT DOT
actual address pchuck mvps org.
  #3 (permalink)  
Old February 24th 08, 03:06 AM posted to microsoft.public.windows.vista.networking_sharing
Seth[_2_]
external usenet poster
 
Posts: 41
Default How to block IPs with 'route.exe' in Vista

"Robert Weiss" wrote in message
...
Hallo,
let's say i want to block www.disney.com (199.181.132.250). For that, i
enter following command into the shell:

route add 199.181.132.250 192.168.1.254

Subnet is 192.168.1.0/24
192.168.1.254 is unused

In XP the ip and dns is unreachable by browser now. Thats fine. But in
vista the same procedure doesn't work. It seems there's just an additional
short lag and then the site appears anyway. My guess is vista falls back
to a valid route after sensing the invalid route but i don't know for
sure.

So, does anyone know how to use the 'route' command correctly on vista to
get the same result as in XP?


I'd sooner block the site by name in the HOSTS file. The IP could change
for whatever reason meaning your false route wouldn't be effective. Set the
record in the local HOSTS file something like...

127.0.0.1 www.disney.com

and the machine will never even attempt to look up the address and give an
immediate failure.

If you want to get fancy, setup a local webserver and point all the
"blocked" sites IPs there with an message saying this site is blocked.


  #4 (permalink)  
Old February 24th 08, 03:19 AM posted to microsoft.public.windows.vista.networking_sharing
Robert Weiss
external usenet poster
 
Posts: 5
Default How to block IPs with 'route.exe' in Vista

I'd sooner block the site by name in the HOSTS file. The IP could change
for whatever reason meaning your false route wouldn't be effective. Set
the record in the local HOSTS file something like...


I'm aware of the HOSTS file but unfortunately the destination address
doesn't have a dns thus i'm trying to find a way to block ip addresses
otherwise (and without personal firewall or vista firewall).


  #5 (permalink)  
Old February 24th 08, 03:26 AM posted to microsoft.public.windows.vista.networking_sharing
Robert Weiss
external usenet poster
 
Posts: 5
Default How to block IPs with 'route.exe' in Vista

Robert,

When you set this up, do a "route print". Then do a second "route print"
after
you try accessing the target web site. Let's see if Vista is changing the
route
table.

Just for curiosity, why aren't you using the Hosts file?
http://nitecruzr.blogspot.com/2006/06/bad-websites-dont-go-there.html
http://nitecruzr.blogspot.com/2006/0...-go-there.html


The IP doesn't have any dns entry.
I'll check the routing table once i'm back on the vista machine but i think
there will be no other entries. As a permanent route (route -p add) it has a
merit of 1 if i remember correctly and in the upper main table it shows a
merit of 21 i think that i couldn't lower any further. Maybe a traceroute
shows something. Will try that as well.


  #6 (permalink)  
Old February 24th 08, 06:00 PM posted to microsoft.public.windows.vista.networking_sharing
Seth[_2_]
external usenet poster
 
Posts: 41
Default How to block IPs with 'route.exe' in Vista

"Robert Weiss" wrote in message
...
I'd sooner block the site by name in the HOSTS file. The IP could change
for whatever reason meaning your false route wouldn't be effective. Set
the record in the local HOSTS file something like...


I'm aware of the HOSTS file but unfortunately the destination address
doesn't have a dns thus i'm trying to find a way to block ip addresses
otherwise (and without personal firewall or vista firewall).


If it doesn't have a DNS registration, then how are you resolving
www.disney.com=199.181.132.250?

If it can be found on the Internet by name, then it has a DNS registration.
By using the HOSTS file, you are ignoring the DNS registration and forcing a
specific address be used.

  #7 (permalink)  
Old February 24th 08, 11:07 PM posted to microsoft.public.windows.vista.networking_sharing
Robert Weiss
external usenet poster
 
Posts: 5
Default How to block IPs with 'route.exe' in Vista

If it doesn't have a DNS registration, then how are you resolving
www.disney.com=199.181.132.250?

If it can be found on the Internet by name, then it has a DNS
registration. By using the HOSTS file, you are ignoring the DNS
registration and forcing a specific address be used.


Disney (or http) was just an example. The point is to block IPs not DNS and
why Vista behaves differently (as XP) and how to fix that.


  #8 (permalink)  
Old March 2nd 08, 04:54 AM posted to microsoft.public.windows.vista.networking_sharing
Robert Weiss
external usenet poster
 
Posts: 5
Default How to block IPs with 'route.exe' in Vista

I think i've got the solution...
XP accepts all target IPs (from local subnet) and routes blindly (thus
blocks) whereas Vista strictly needs a valid target IP (your own local IP
for example). If its invalid (no connection), vista will (most likely) fall
back to the next valid route to fix that.

Just a guess but at least it works. :-)


 




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:56 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.Search Engine Optimization by vBSEO 3.0.0 RC6
Copyright ©2004-2012 Vista Banter.
The comments are property of their posters.