We help IT Professionals succeed at work.

Pix 501 access-list

Medium Priority
Last Modified: 2013-11-16
I have the following networks.

HQ =
Outside = -

I need to create an access list that will prevent the range - from talking to any of those networks.

I started off with this ( access-list 125 deny tcp host )

can someone help me out with this one.
Watch Question

I'm willing to help, but I need a bit more info on this, can you post your config here?

If not, I think I understand that you wanna restrict the range - that is on the outside interface to talk to anything on the pix, or behind it, no?

so -
                        Pix Outside
                         |              |
                         Pix Inside

And you want people from the outside to be denied if they try to reach, but only if they're in the range -

If I'm right, you only need a line like this:

access-list 125 deny ip
access-group 125 in interface outside

Unlike the cisco routers with IOS, the netmasks are not inversed, so the spelling is important.
A slight modification to the above. After making the access-list none of your outside machines will be able to communicate since the first line denies the machines you wanted and it also denies everything else by the implicit deny statement. So after the first line, add 'permit' for all the networks you want.

access-list 125 deny ip
access-list 125 permit ip
access-list 125 permit ip
access-list 125 permit ip
.... etc...


Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
true, forgot about that, since I usually deny everything from the outside.

Anyways, an easier way would be to deny, like I said, but if everything else should be allowed (since I don't see much reason to block only this segment, and not the rest) a line like

access-list 125 permit ip any any

would work.

Depending on what is really wanted, my answer will change though.


HQ= /16
Outside = - /24
                     ______________       ______________                                         _____________
 MPLS cloud --|2800 router    |  ---  | 4506 switch    |--inside-- --  |  Pix 501          |--outside (Internet) DSL
                     ______________       ______________                                         _____________
This is allowed to talk to     | - |

My company is renting space to a client.  The client is assigned the - 255 range.  We do not want his traffic to talk to ours.
So he bought a pix to seperate his traffic from ours. He has his own DSL line for internet.  I would like to still be able to talk to his network for
trouble shooting purposes.

So would this access list work but on my INSIDE interface ( access-list 125 deny ip )
                                                                                   ( access-group 125 in interface inside )

Keep in mind that I still need to connect to him for trouble shooting coming from any address in my network.


By the way - is connected to the Cisco 4506 switch.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.