Cisco ASA Best Security Configuration Examples
Contents
NAT before version 8.3
NAT after version 8.3
VPN tunnel password recovery as well as Site to Site shared secret password recovery
Cisco ASA failover
Cisco ASA upgrade
Two ip address on the same interface of the Cisco ASA
Two isps on the Cisco ASA for redundancy.
adding a new VPN tunnel along with a configuration that exists on the ASA Firewall
Configuring Cisco ASA Firewall to block Instant Messenger services
Cisco ASA URL filtering
Allow unlimited access to the web for specific hosts, block specific urls for the rest of the users
Fixing Problems with VPN
Cisco ASA password recovery
Cisco Output Interpreter Tool
Cisco Dynamic configuration tool
Cisco Configuration Migration tools
Credits and Rerfrences
Feature |
Cisco ASA Configuration Example |
NAT before version 8.3 |
! Static Translation or 1 to 1 translation static (inside,outside1) 196.38.244.1 10.10.10.1 netmask 255.255.255.255 !Nat Exemption used usually to allow access for vpn users or site to site !VPN tunnels establishment access-list inside_nat0_outbound extended permit ip host 192.168.1.2 194.168.100.0 255.255.255.0
nat (inside) 0 access-list inside_nat0_outbound Inside to Outside NAT Inside to outside natting ususally used to allow traffic from inside to outside by hiding the local networks from the outside world nat (inside) 1 192.168.0.0 255.255.0.0
global (outside) 1 interface |
NAT after version 8.3 |
nat (any,any) source static 192.168.1.119 192.168.1.119 for a complete guide on how to achieve natting on Cisco ASA devices after version 8.3 go here |
VPN tunnel password recovery as well as Site to Site shared secret password recovery |
more system:running-config or write net 10.27.16.20:running |
Cisco ASA failover |
Prerequisites make sure the interfaces on the cisco asa on both devices assigned for failover are connected and you can ping between them to verify connectivity is up. on Primary Device you need to have at least 1 interface configured with standby address. interface GigabitEthernet0/1
failover
On Secondary |
Cisco ASA upgrade |
If the device is already up and running on the network issue the bellow command ASA5510#copy tftp disk0: Address or name of remote host []? 172.16.31.1 ASA5510#show disk0: 23949312 bytes available (38932480 bytes used) !--- Command to set "asa722-k8.bin" as the boot image. ASA5510(config)# boot system disk0:/asa722-k8.bin !--- Command to set "asdm-522.bin" as the ASDM image. ASA5510(config)# asdm image disk0:/asdm-522.bin
basically you need to setup an ip address so that you can copy the upgrade file from your machine to the cisco asa .an example is show bellow monitor>address <asa_ip_address> once you have booted into the ASA configuration mode you still need to copy that file into flash and set it as bootable as shown above
|
Two ip address on the same interface of the Cisco ASA |
ASA: same-security-traffic permit inter-interface |
Two isps on the Cisco ASA for redundancy |
! (configure a new monitoring process with id 123, specify the monitoring |
adding a new VPN tunnel along with a configuration that exists on the ASA Firewall |
This is an example of an existing configuration: |
Configuring Cisco ASA Firewall to block Instant Messenger services |
Common ports |
Cisco ASA URL filtering |
regex blockex1 "/test/" class-map type inspect http match-any block-url-class policy-map type inspect http block-url-policy service-policy global_policy global |
Allow unlimited access to the web for specific hosts, block specific urls for the rest of the users |
regex blockex1 "/test/" access-list user-acl extended deny tcp host 192.168.1.2 any eq www
class-map type inspect http match-any block-url-class policy-map type inspect http block-url-policy service-policy block-user-url-policy interface inside |
Fixing Problems with VPN |
These are a few of the common reasons why a VPN tunnel does not come up or fails to pass traffic on a PIX Firewall,Concentrator, ASA or router: |
In order to isolate and resolve the above mentioned issues, review this checklist: If the ISP has changed the IP address of the remote peer, refer to TAC Case Collection Case #K10533154. |
|
Cisco ASA password recovery |
http://www.cisco.com/en/US/docs/security/asa/asa71/configuration/guide/trouble.html#wp1058131 |
Cisco Output Interpreter Tool
(requires a CCO login if you dont have one please contact us for more info)
Output Interpreter is a troubleshooting tool that reports potential problems by analyzing supported "show" command output. Output Interpreter supports various "show" command output from your router, switch, PIX/ASA firewall, IOS® wireless access point, or Meeting Place Platform.
The output interpreter supports all of the bellow platforms and is excellent for troubleshooting different kind of problems :
The tool itself will provide you an output of your existing configuration file with recommendations on how to tweak and tune your current installation as well as any errors or abnormalities it may detect in your current setup along with a ways to optimize and fix the situation.Its a highly recommended tool for advanced users
Cisco 12000 IOS XR Firmware, Hardware and Software Readiness Assessment (Up to version 3.8)
Wireless LAN Controller - show & debug commands
GOLD diagnostics - show diagnostic result
ASA Commands - show tech-support, show running-config
Here is the link of where you can access that excellent troubleshooting tool
If you don’t have a CCO login and you are unable to access the tool please contact us for assistance on how to obtain that CCO login etc.
Cisco Dynamic configuration tool
|
|
|
|
Cisco Dynamic Configuration Tool enables online configuration of Cisco products and offers detailed compatibility information and intelligent feedback to streamline the ordering process. Use the help links to the right or start a configuration below. |
Cisco Configuration Migration tools
The bellow section contains a few tools useful when you are migrating large configurations from other platforms into Cisco ASA .
Checkpoint Configuration Migration tool can be found here on Cisco’s Web site it requires CCO
You can read more on the tool over here
If you don’t have a CCO login and you are unable to access the tool please contact us for assistance on how to obtain that CCO login etc
Cisco PIX to Cisco ASA conversion tool exists or a manual upgrade of the configuration can be performed please contact us for more information on how to proceed.
Credits and Rerfrences
As with everything credit must be give where credit is due .Materials used from Cisco WIKI support site to compile this page.
https://supportforums.cisco.com/index.jspa
To get a free assessment on how to optimize your current Cisco ASA solution contact us here