Blocking ranges of IP address

  • Thread starter Thread starter Gis Bun
  • Start date Start date
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
 
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
 
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).
 
Back
Top