ā12-09-2010 01:26 AM - edited ā03-06-2019 02:25 PM
Hi,
I have done port forwarding with the following command mentioned below in my Cisco 6506E switch & it perfectly works well. i.e User hitting 172.24.201.177 for RDP & VNC access it will forward to 172.24.201.174 (RDP) & 172.24.201.64 (VNC).
ip nat outside source static tcp 172.24.201.64 5900 172.24.201.177 5900 extendable
ip nat outside source static tcp 172.24.201.174 3389 172.24.201.177 3389 extendable
Problem here is, 172.24.201.177 i haven't assigned it on my LAN for any PC's, so when i use port forwarding configuration it works. But when i use an IP 172.24.201.170 which is already assigned in my LAN, it never works, i do a telnet to RDP & VNC port it works, but i open through the RDP & VNC client it will not. Any idea? Is that a limitation that only an IP which is not assigned in LAN can only be used for NATing?
ip nat outside source static tcp 172.24.201.64 5900 172.24.201.170 5900 extendable
ip nat outside source static tcp 172.24.201.174 3389 172.24.201.170 3389 extendable
ā12-09-2010 02:22 AM
Hi Anand,
Well, the problem with using an already-assigned IP for port-forwarding is that your 6509 creates a Proxy ARP entry for the global address. It does not matter that you are forwarding only selected ports - in order for the translation to take place, packets must first hit your 6509 which means the frames must be addressed towards the MAC address of the 6509. Obviously, you are creating a conflict in your network, then - two stations are "claiming" the same IP address because they will both answer to ARP requests (using the arping Linux utility should prove this).
I am afraid there is no workaround - addresses used as inside global addresses for NAT purposes may not be already assigned, even if you are performing just a port forwarding. At least I do not know of any
Best regards,
Peter
ā12-09-2010 02:32 AM
Hi Peter,
addresses used as inside global addresses for NAT purposes may not be already assigned, even if you are performing just a port forwarding
Can you tell more because inside global is the address that represents the real inside local to others?
if so then port forwarding is static nat?
then this means we can't do PAT (inside global can be interface address so already assigned) and we can't do static nat to interface ?
Please can you correct my misunderstanding .
Regards.
Alain
ā12-09-2010 02:44 AM
Hi Alain,
Can you tell more because inside global is the address that represents the real inside local to others?
if so then port forwarding is static nat?
then this means we can't do PAT (inside global can be interface address so already assigned) and we can't do static nat to interface ?
Please can you correct my misunderstanding .
Let me see if I understand all your questions correctly.
Yes, the inside local address is the one really assigned to a station, and the inside global is how the outside world can see this address. The inside local is the "real" address visible in the inside, the inside global is the "fake" address seen outside.
Port forwarding does not need to be static although I can imagine that most often, static NAT entry is created to allow access to specific ports on an inside machine from outside. A dynamic port forwarding could be done using selective ACLs (to translate just a selected port) and the reversible keyword so that the connection can also be initiated from outside.
The PAT by itself is not bound to be done on an interface address. We can perform a PAT (that is, N:1 translation) into a NAT pool, i.e. into an entire range of addresses.The entire difference is just using the NAT pool in the ip nat inside source command with the overload keyword. Performing a static NAT (i.e. 1:1 translation between IP address without regard to ports) to our own interface - well, I believe we can configure it but that would mean that we cannot access the router under its interface address anymore (that's my guess) because the access to its IP address would be NATted into the inside machine.
I believe the OP indicated a different issue here: he is using an address that is already owned by another station as the inside global address. The problems arising from that are concerned with the duplicate ARP entries, essentially with both the NAT box and the station claiming to have the same IP address.
Best regards,
Peter
ā12-09-2010 03:25 AM
Hi Peter,
Thanks for clarifications and note about dynamic port forwarding.
Regards.
alain
ā12-09-2010 02:51 AM
Hi Anand,
Two more questions please:
When exactly do you encounter connectivity issues? Do they appear both when you try to connect to the 172.24.201.170 from the same network and from outside?
Best regards,
Peter
ā12-09-2010 03:24 AM
Hi,
Below are the interface configuration
interface Vlan45
description Data Vlan
ip address 172.24.200.4 255.255.252.0
no ip redirects
no ip proxy-arp
ip nat outside
interface Vlan420
description ASA5520
ip address 10.4.20.1 255.255.255.0
no ip redirects
no ip proxy-arp
ip nat inside
I encouter problem only when i use a ip for NATing which is already assigned on the LAN that too when i use them for Port specific forwarding & not while to ONE to ONE NAT
Adding the below entry will NOT allow any port specific forwarding since the 172.24.201.170 is already assigned to a PC on the LAN
ip nat outside source static tcp 172.24.201.64 5900 172.24.201.170 5900 extendable
ip nat outside source static tcp 172.24.201.174 3389 172.24.201.170 3389 extendable
but when i use ONE to ONE it works fine & allows me to connect the 172.24.201.64. but the draw back is it ONE to ONE NAT. I am looking for Port Specific forwarding, so that each port i can forward to different PC's on the LAN when the user is hitting to one specific IP.
ip nat outside source static 172.24.201.64 172.24.201.170
I do not encounter any problem when i use a IP which is not assinged on the LAN by adding the below entry
ip nat outside source static tcp 172.24.201.64 5900 172.24.201.177 5900 extendable
ip nat outside source static tcp 172.24.201.174 3389 172.24.201.177 3389 extendable
including
ip nat outside source static 172.24.201.64 172.24.201.177
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