12-28-2004 12:24 PM - edited 02-20-2020 09:26 PM
I have access lists accepting connections from specific IP address with the following structure
access-list outside_inbound_acl permit tcp host xxx.xxx.xxx.xxx host xxx.xxx.xxx.xxx eq www
I need to keep those but also add a couple of ranges.
How do I allow, for example, 125.30.25.* ?
12-28-2004 01:35 PM
Can someone help with this syntax.
12-28-2004 01:35 PM
more information need.
what ranges :
for example if you want to permit range (125.30.25.1 - 125.30.25.30) to access the network :
access-list x permit ip 125.30.25.0 0.0.0.30 any
12-28-2004 01:45 PM
The range is 125.30.25.1 through 125.30.25.255.
I tried
access-list outside_inbound_acl permit tcp host 125.30.25.1 0.0.0.255 host xxx.xxx.xxx.xxx eq www
But it failed.
ERROR: invalid IP address host
12-28-2004 02:05 PM
When you use a word "host", don't use any mask.
12-28-2004 02:08 PM
Would it be correct to use..
access-list outside_inbound_acl permit tcp host 125.30.25.1 255.255.255.0 host xxx.xxx.xxx.xxx eq www
12-28-2004 07:18 PM
The host statement is a shortcut for x.x.x.x 255.255.255.255. So if you want to allow access for a network range you need to remove the "host" keyword and add a netmask. access-list outside_inbound_acl permit tcp 125.30.25.0 0.0.0.224 host x.x.x.x eq www
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide