11-25-2021 06:56 AM
Hie,
I have replace my router from Mikrotik to Cisco.
On the Mikrotik we were able to reach local server (https://my.domain.com)both on LAN and outside the network(NAT).
now after removing the mikrotik router, we are able to reach the server(https://my.domain.com) when we are outside the network. but when we are on LAN we are able to reach the domain using IP of the server instead of the name (https://my.domain.com).
below is the config from mikrokit
Action: masquerade
Chain: scrnat
scr address:10.16.0.0/24
Dst address: 10.10.1.5
dst port: 443
How can we change the above config from mikrotik router and apply them on the cisco router for us to reach the server using (https://my.domain.com).
Your assistance you will be highly appreciated
Regards,
11-25-2021 07:33 AM
You could solve this problem with some dirty NAT hacks, but the better way is to return the internal address of the server from your DNS-server when your internal client asked for the FQDN my.domain.com.
11-25-2021 08:25 AM
Hello
@Karsten Iwen Dirty hack tricks - LOL, I like to think of it as hairpining!
@isaiahchikuse on cisco the most simplistic way apart from DNS dirty tricks (lol...) is to enable domainless NAT
So instead of ip nat inside/outside domains you apply something like following>
int x/x
description wan
no ip nat outside
ip nat enable
int y/y
description LAN
no ip nat inside
ip nat enable
no ip nat inside source list 10 interface x/x
ip nat source list 10 interface x/x
11-25-2021 08:45 AM
@paul driver we have a pool of IPs and doing NAT Overload.
for user outside the network we are doing port forwarding to the server(my.domain.com)
can the setup you have describe work with NAT Overload and help to achieve this?.
Regards,
Isaiah
11-25-2021 09:29 AM
Hello Isaiah
FYI -You dont need use domainless (NVI) NAT to accomplish hairpining but it much easier, however if you like to accomplish this with domain NAT then it possible also.
Can you post your current NAT configuration in a file and attach to this post please.
11-25-2021 10:36 PM
11-26-2021 01:24 AM
Hello
Can you confirm you have actual NAT translation as I see a couple issues with you NAT configuration as it is?.
You dynamic pat statement is calling an access-list that doesn't exist < access-list 10)
ip nat inside source list 10 pool pool1-Nat overload
You nat pool looks like its using APIPA which is non routable
ip nat pool pool1-Nat 169.x.x.x 169.x.x.x netmask 255.255.255.0
11-26-2021 02:08 AM
11-26-2021 02:17 AM
BTW: This is what I mean with dirty hack. The config will get even more complex and all this could be avoided with one simple DNS-entry in your DNS server. And a more complex config is a less secure config.
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