11-16-2020 02:26 AM
Hi there,
Dear Professionals, i am using cisco asa firewall 5520,
can anyone tell me how can i block all the ports for clients and give them access to some specific ports. please tel me.
Solved! Go to Solution.
11-20-2020 12:30 AM
Please see the attached file for access rule configuration through ASDM.
11-16-2020 02:28 AM
I don't quite follow where you are accessing from. Is this from internet to a server? from inside interface to a DMZ? Please provide more details to what you are trying to achieve.
11-16-2020 03:57 AM
@Marius Gunnerud suppose, in my network one client is using internet services from the Cisco ASA, connected through the inside interface network, and all i want is to block all ports on that client and only allow http, pop, smtp and any other specific port so client can use only allowed ports.
11-18-2020 12:49 PM
All that is is an access-list permitting the host access towards the ports you want (client IP as source, any as destination, and destination port). Then directly below these allow rules you place a deny rule that has the client IP as source and any destination. I unfortunately do not have access to an ASDM at the moment if that is what you are using, but it is quite simple to do in both ASDM and CLI. Here is an example with the CLI:
access-list inside_in extended permit tcp host 1.2.3.4 any eq www
access-list inside_in extended permit tcp host 1.2.3.4 any eq pop3
access-list inside_in extended permit tcp host 1.2.3.4 any eq smtp
access-list inside_in extended deny ip host 1.2.3.4 any
access-list inside_in extended permit ip any any <--permit all other hosts full access
access-group inside_in in interface inside
If you already have an access-list configured on the interface then the last command is not needed. Just add the access list entries to the existing ACL
11-18-2020 08:28 PM
@Marius Gunnerud can you please tel me how can i do that in ASDM because its easy for me to configure
11-20-2020 12:30 AM
11-20-2020 01:23 PM
@Marius Gunnerudyou are a true Gem
11-16-2020 01:10 PM
Object client
host ip
!
access list outbound permit tcp object client any eq http
!
access group Outbound in interface inside
this for make client only access http other traffic will drop at asa
11-16-2020 10:02 PM
@MHM Cisco World thanks for your concern, can you please tel me how i can do that in ASDM
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