Jump to content

Strange Cisco router (2851) issue:


G+_Eddie Foy
 Share

Recommended Posts

Strange Cisco router (2851) issue:

I run a email server at home (on a Synology NAS).

If I log on my neighbor's Wifi, I can reach both incoming and SMTP,  no prob.  ( so A and MX records seem correct at my registrar) But if I'm on my internal LAN, no go unless I change the mail addresses to the internal IPs. (even using external/WAN IP over domain name doesn't work)

I can ping the domain name, and the WAN IP. (from internal LAN)

nmap from my cloud VPS shows the correct open ports.

But seems the router is blocking the mail connections from going out and in.  Is this a NAT issue?

I can get to my cloud based email via clients (Apple Mail, not web mail) and the server does receive outside mail.

 

Router config line for most holes poked through the router/NAT is (adjust for ports/services):

 

ip nat inside source static tcp 192.168.1.149 25 interface Gi0/0 25

Link to comment
Share on other sites

The key (as you've demonstrated) is that it fails when you try to use your external IP to visit your local network. Looks like you've got a case of NAT Loopback: http://en.wikipedia.org/wiki/Network_address_translation#NAT_loopback

 

I've had this work on some routers and not on others.

 

I haven't found a specific fix but it's a common issue and I think your hardware will let you fix it with the right configuration. This page may help guide you in the right direction: http://www.cisco.com/c/en/us/support/docs/ip/network-address-translation-nat/13772-12.html

 

I have a feeling Fr. Robert Ballecer, SJ knows how to fix this off of the top of his head.

Link to comment
Share on other sites

One quick follow-up: I read a passing mention that the proper fix isn't supported by Cisco IOS. if your internal clients (laptop) use the router's DNS then you can setup a workaround which may be good enough for you. Here's an excerpt from https://supportforums.cisco.com/discussion/11734176/nat-loopback

-------

 

ip host www.example.net 10.10.10.10  ! FQDN and real IP of your server

ip name-server 8.8.8.8               ! IP of your ISP-DNS

ip dns server

 

Now point the DNS of your internal clients to the router and each time they try to resolve www.example.net they get 10.10.10.10 instead of the real public IP.

Link to comment
Share on other sites

Thanks Jeff Brand.  Reading the forum posts, I think setting up and learning DNS is in order and probably the better solution.  Its been on my list for a while.

 

The natural NAT Hairpinning/loopback blocking actually makes sense.  (I noticed later pretty much everything was blocked via this, not just the mail server)

Link to comment
Share on other sites

 Share

×
×
  • Create New...