cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
707
Views
0
Helpful
6
Replies

Strange NAT PAT problem

draganskundric
Level 1
Level 1

I have following basic configuration of NAT

 

ip nat inside source static tcp 5.5.5.5 80 15.15.15.15 80 extendable
ip nat inside source static tcp 5.5.5.5 443 15.15.15.15 443 extendable

 

 

enda everything is wotking fine with these ports. Server is available on these two ports from outside interface. But .... what I try to connect to 5.5.5.5 using SNMP (udp/161), ROUTER REPLIES. So ... is this normal? That router responds to this?

 

thanks

 

 

 

1 Accepted Solution

Accepted Solutions

Hello

And you are trying to connect via SNMP to 5.5.5.5 or 15.15.15.15 ?

I'm asking because by default the router will install the outside global address into the routing table as a directly connected (L /32) route on the NAT outside interface, if the outside global address is in the IP range of the outside NAT interface. This so called "alias" is used to answer ARP queries to the outside global address with the routers outside NAT interface's MAC address, and you can see it in the output of show ip alias and show arp. As a consequence then when you connect to this outside global IP 15.15.15.15 and the packet doesn't match a translation rule, the NAT router will handle it as destined to himself because the destination IP is directly connected according to the routing table and the destination MAC address is the outside NAT interface.

You can disable this behavior by using the no-alias keyword with your NAT translation rule, but then the router will not respond to ARP queries for 15.15.15.15.

I recommend you use an outside global address which is not in the IP range of your outside NAT interface.

Best regards,
Martin

View solution in original post

6 Replies 6

Martin Hruby
Level 1
Level 1

Hello

We need more information to be able to answer your question.

I assume 5.5.5.5 belongs to your server on the inside of the LAN.
Is the IP 15.15.15.15 configured on an interface of the router?
Are you trying to connect via SNMP from the router itself or from a device on the outside?
How does the router reach 5.5.5.5 (e.g. static route, or directly attached)?

Best regards,
Martin

Of course I do not have none of these IPs configured on router itself, and of course I am doing this SNMP test from outside

Hello

And you are trying to connect via SNMP to 5.5.5.5 or 15.15.15.15 ?

I'm asking because by default the router will install the outside global address into the routing table as a directly connected (L /32) route on the NAT outside interface, if the outside global address is in the IP range of the outside NAT interface. This so called "alias" is used to answer ARP queries to the outside global address with the routers outside NAT interface's MAC address, and you can see it in the output of show ip alias and show arp. As a consequence then when you connect to this outside global IP 15.15.15.15 and the packet doesn't match a translation rule, the NAT router will handle it as destined to himself because the destination IP is directly connected according to the routing table and the destination MAC address is the outside NAT interface.

You can disable this behavior by using the no-alias keyword with your NAT translation rule, but then the router will not respond to ARP queries for 15.15.15.15.

I recommend you use an outside global address which is not in the IP range of your outside NAT interface.

Best regards,
Martin

as I said in first post ... I am trying to connect to 5.5.5.5, this is outside IP. My router have loopback interface in this range, in this case for example 5.5.5.1

but ... this "alias" thing could be solution, will try it .... I do not arp on outside interface since it is point to pint wan link and router receives traffic as a router for outside network.

 

thanks

Dears

Greetings

I have almost the same problem but in my case I want to permit SNMP traffic but it only open to other ports, 80, 443, etc.

ip nat inside source static tcp 192.168.71.18 161 187.131.16.122 161 route-map SAITEC_STATIC extendable
ip nat inside source static udp 192.168.71.18 161 187.131.16.122 161 route-map SAITEC_STATIC extendable

Best Regards

Alcidio Tembe

Review Cisco Networking for a $25 gift card