Main Menu
Sub Menu
- Article Ref
- 5254-IUCM-5734
- Written By
- Donald Peters
- Date Created
- Mon, 28th Apr 2008
Allow HTTP through Cisco ASA
Question
I host a small web server behind a Cisco ASA firewall. I am unable to access the hosted pages from the internet. My DNS settings are correct so how can I open the required port(s)?
Answer
This is a very common question. The method used is based on the number of Public IP addresses available to you.
Example 1 --- Single Public IP Address
For this example, we will assume the following:
The Public IP is: 1.2.3.4
The Private IP of the web server is: 192.168.50.20
The following lines need to be added to the IOS:
- access-list outside_access_in extended permit tcp any host 1.2.3.4 eq www
-
access-group outside_access_in in interface outside
That's it! Save to flash and restart the ASA.
Example 2 --- Multiple Public IP Addresses with One to One NAT
For this example, we will assume the following:
The Public IP is: 1.2.3.4
The Private IP of the web server is: 192.168.50.20
The following lines need to be added to the IOS:
- access-list outside_access_in extended permit tcp any host 1.2.3.4 eq www
- access-list inside_access_out extended permit tcp any host 192.168.50.20 eq www
- access-group outside_access_in in interface outside
- access-group inside_access_out out interface inside
- static (inside,outside) 1.2.3.4 192.168.50.20 netmask 255.255.255.255
That's it! Save to flash and restart the ASA.
Article Comments
There are currently no comments.



