Blocking ranges of IP address

G

Gis Bun

Hi,

I'd like to block a range of IP address (actually a whole subnet like
172.16.1.0) but ***not*** using a firewall. Can this be done through a LMHost
file? It's more like I don't want anything trying to access that segment.

How about (at least) adding the IP address range/segment to IE's restricted
zone?

Thanks

Gis
 
J

John Wunderlich

Hi,

I'd like to block a range of IP address (actually a whole subnet
like 172.16.1.0) but ***not*** using a firewall. Can this be done
through a LMHost file? It's more like I don't want anything trying
to access that segment.

How about (at least) adding the IP address range/segment to IE's
restricted zone?

Thanks

Gis

Your best bet for this is to add a route to the routing table that
vectors accesses to that address range away from the default Gateway
to, perhaps, back to your own computer instead.

The "Route" command is documented here:
<https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/route.mspx?mfr=true>

See also "Adding a TCP/IP Route to the Windows Routing Table"
<http://www.howtogeek.com/howto/windows/adding-a-tcpip-route-to-the-windows-routing-table/>

HTH,
John
 
J

Jack \(MVP-Networking\).

Hi
As far as the Host File goes.
HOSTS file does work with wildcards to block a range of servers (or IP),
such as *.site.com
HOSTS file only map host names to IP addresses. Mapping an IP to another IP,
or a host name to another host name does not work.
You have one good solution in the post above.
There are other solutions as well. You would have to post more details
about you Network and the functional purpose of the "feature" if you need
more help.
Jack (MVP-Networking).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top