12-30-2012 07:09 PM - edited 02-21-2020 04:48 AM
Hell,
I have discovered that there is a suspecious IP address that I need to block from accessing our network. It is a potential attack on our network. Would be the best way to accomplish that on the ASA?
Much appreciated.
Best, ~sK
Solved! Go to Solution.
12-31-2012 07:31 PM
Assuming you allow outside traffic in to a web server via some NATted address...
Precede your existing "permit" access-list entry with a deny for that specific IP address. The syntax varies according to how you've allowed access in your existing configurations; but it would generally look something like this:
access-list outside-in deny tcp host
access-list outside in permit tcp any host
The key element is for the deny entry to be encountered first since ACE entries are processed in order with the first match kicking the packet out to the next element in the system for processing. Matching a "deny" ACE will discard the packet.
12-31-2012 07:31 PM
Assuming you allow outside traffic in to a web server via some NATted address...
Precede your existing "permit" access-list entry with a deny for that specific IP address. The syntax varies according to how you've allowed access in your existing configurations; but it would generally look something like this:
access-list outside-in deny tcp host
access-list outside in permit tcp any host
The key element is for the deny entry to be encountered first since ACE entries are processed in order with the first match kicking the packet out to the next element in the system for processing. Matching a "deny" ACE will discard the packet.
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