Home All Groups Group Topic Archive Search About

How to block 1 ip address

Author
26 Oct 2006 1:12 PM
Yanto Asnawi
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

Author
26 Oct 2006 1:31 PM
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

Show quoteHide quote
"Yanto Asnawi" <Yanto Asn***@discussions.microsoft.com> wrote in message
news:0B2532DA-518F-4B5F-BCE2-D56281973C36@microsoft.com...
> 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
Author
26 Oct 2006 1:50 PM
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

Show quoteHide quote
"Doug Sherman [MVP]" <nodspamherman@notampabayspamforme.rr.com> wrote in
message news:uFU0sMQ#GHA.2408@TK2MSFTNGP05.phx.gbl...
> 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
>
> "Yanto Asnawi" <Yanto Asn***@discussions.microsoft.com> wrote in message
> news:0B2532DA-518F-4B5F-BCE2-D56281973C36@microsoft.com...
> > 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
>
>
Author
26 Oct 2006 1:55 PM
Yanto Asnawi
Thank you Doug, it works.
Yanto Asnawi

Show quoteHide quote
"Doug Sherman [MVP]" wrote:

> 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
>
> "Yanto Asnawi" <Yanto Asn***@discussions.microsoft.com> wrote in message
> news:0B2532DA-518F-4B5F-BCE2-D56281973C36@microsoft.com...
> > 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
>
>
>
Author
26 Oct 2006 2:09 PM
Doug Sherman [MVP]
Go get 'em, Yanto!

Doug Sherman
MCSE, MCSA, MCP+I, MVP

Show quoteHide quote
"Yanto Asnawi" <YantoAsn***@discussions.microsoft.com> wrote in message
news:237D7A95-42E4-48FE-ACFE-8AAE602F811E@microsoft.com...
> Thank you Doug, it works.
> Yanto Asnawi
>
> "Doug Sherman [MVP]" wrote:
>
> > 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
> >
> > "Yanto Asnawi" <Yanto Asn***@discussions.microsoft.com> wrote in message
> > news:0B2532DA-518F-4B5F-BCE2-D56281973C36@microsoft.com...
> > > 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
> >
> >
> >