Web Hosting Talk







View Full Version : Blocking an IP addrss on a Cisco Router


anvis.com
02-11-2003, 12:30 PM
Blocking an IP addrss on a Cisco Router:

Cisco 2700 router and I wish to block certain IP's from getting past it....

Thanks..
Mark

The Prohacker
02-11-2003, 02:27 PM
Yeah...

You should prolly look for a how to to on applying and using ACLs, Access lists..

got2go
02-11-2003, 02:29 PM
You need to create an access-list, and then enable that list on an interface.
Ex:

access-list Foo deny ip host a.b.c.d any

(replace a.b.c.d with IP you wish to block)

Then add that list to the outside interface:

int eth0 (or whatever your interface is)
ip access-group Foo in

Then save your config.

Make sure the deny list is on top of the allow lists.


Got2Go

The Prohacker
02-11-2003, 03:16 PM
got2go..

He also needs to change the implicit deny all to implict allow..

so
access-list Foo allow any

I'm kind of doubting there are already ACLs applied to the router so the deny any is still there..

got2go
02-11-2003, 03:22 PM
True..True...