Solved

Cisco ASA 5505 - Setting Up NAT's Port Forwarding

Posted on 2011-03-08
5
1,516 Views
Last Modified: 2012-05-11
What I require is a few ports opening up on my Cisco ASA 5505 and them port forwarding to internal local IP addresses

I have attached my running config so you can see what I currently have.

For Example the ports I require are as follows:

Service we can calll "Vuze" this needs to allow TCP port 42270 & UDP 42271 to internal IP address 192.168.1.100

Service we can call "AXIS Camera" this needs to allow TCP port 81 to internal IP address 192.168.1.101

Please can you tell me what needs to be added to my current config to achieve this
Experts-Exchange-Config.txt
0
Comment
Question by:Robert_Rayworth
  • 2
  • 2
5 Comments
 
LVL 6

Expert Comment

by:gcl_hk
ID: 35078171
Try Try

access-list outside_in permit tcp any interface outside eq 42270
access-list outside_in permit udp any interface outside eq 42271
access-list outside_in permit tcp any interface outside eq 81

static (inside,outside) tcp interface 42270 192.168.1.100 42270 netmask 255.255.255.255
static (inside,outside) udp interface 42271 192.168.1.100 42271 netmask 255.255.255.255
static (inside,outside) tcp interface 81 192.168.1.100 81 netmask 255.255.255.255



0
 
LVL 34

Expert Comment

by:Istvan Kalmar
ID: 35079527
this line is need, but the static command not working on 8.3

access-list outside_in permit tcp any interface outside eq 42270
access-list outside_in permit udp any interface outside eq 42271
access-list outside_in permit tcp any interface outside eq 81

so you need:

hostname(config)# object network my-server
hostname(config-network-object)# host 192.168.1.100
hostname(config-network-object)# nat (inside,outside) static interface service tcp 42270 42270
hostname(config-network-object)# nat (inside,outside) static interface service tcp 42271 42271
hostname(config-network-object)# nat (inside,outside) static interface service tcp 81 81
0
 

Author Comment

by:Robert_Rayworth
ID: 35086982
ikalmar you were right in thinking about the version of IOS as I am currently on ASA version 8.3(1) with ASDM version 6.3(1)

Something I want to know can I call the service or object-network by a friendly name so I can easily identifiy it

I wanted AXIS Camera for one name and Vuze for the other could you be a bit more specific
0
 
LVL 34

Accepted Solution

by:
Istvan Kalmar earned 250 total points
ID: 35091809
you need to create individual object groups with static nat

hostname(config)# object network Vuze
hostname(config-network-object)# host 192.168.1.100
hostname(config-network-object)# nat (inside,outside) static interface service tcp 42270 42270
hostname(config-network-object)# nat (inside,outside) static interface service tcp 42271 42271


hostname(config)# object network AXIS
hostname(config-network-object)# host 192.168.1.101
hostname(config-network-object)# nat (inside,outside) static interface service tcp 81 81
0
 

Author Comment

by:Robert_Rayworth
ID: 35137822
Sorry for the late reply we had a family death which we needed to attend
Thanks for the response ikalmar
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Cisco Access point 6 90
Cisco 1811W VLAN configuration problem 3 30
Cisco AP to get ip from DHCP 10 77
Use of vpn-filter value  in S2S VPN 2 35
If you have an ASA5510 then this sort of thing would be better handled with a CSC Module, however on an ASA5505 thats not an option, and if you want to throw in a quick solution to stop your staff going to facebook during work time, then this is the…
This article will cover setting up redundant ISPs for outbound connectivity on an ASA 5510 (although the same should work on the 5520s and up as well).  It’s important to note that this covers outbound connectivity only.  The ASA does not have built…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question