How to block 1 ip address

G

Guest

I install my computer as the internet gateway.
I use 2 ethernet card, 1 to cable modem, and 1 to hub.
I use windows xp internet sharing.
How can I block ip address, example I block 202.93.225.112, so all computer
can't access to that internet ip address.

Thank you,
Yanto Asnawi
 
D

Doug Sherman [MVP]

Some routers and firewalls have this capability. As an alternative you can
create a static route with a false gateway:

route -p add 202.93.225.112 mask 255.255.255.255 192.168.1.254

Also, you can block a domain name or web site by adding it to the computer's
hosts file with a non-existent IP address. However, unlike the route
command, that would not prevent a user from connecting to
http://<CorrectIPaddress>.

Doug Sherman
MCSE, MCSA, MCP+I, MVP
 
D

Doug Sherman [MVP]

Sorry - with ICS the route command would need a false 192.168.0.x gateway -
eg.

route -p add 202.93.225.112 mask 255.255.255.255 192.168.0.254

Doug Sherman
MCSE, MCSA, MCP+I, MVP
 
G

Guest

Thank you Doug, it works.
Yanto Asnawi

Doug Sherman said:
Some routers and firewalls have this capability. As an alternative you can
create a static route with a false gateway:

route -p add 202.93.225.112 mask 255.255.255.255 192.168.1.254

Also, you can block a domain name or web site by adding it to the computer's
hosts file with a non-existent IP address. However, unlike the route
command, that would not prevent a user from connecting to
http://<CorrectIPaddress>.

Doug Sherman
MCSE, MCSA, MCP+I, MVP
 

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