10-15-2019 04:29 AM
Hello, I'm a newbie to IOS. Can anyone help me with simple NAT Hairpinning?
I can give my router config file
Solved! Go to Solution.
10-15-2019 05:04 AM
Hello,
which router model do you have (and which IOS version are you running) ?
Below is a sample:
https://layer77.net/2016/02/10/nat-hairpinning-on-cisco-isr/
10-15-2019 05:20 AM
Hi,
Try like this:
Interface gig0/1
Description LAN_Interface
IP address 192.168.10.0 x.x.x.x <LOCAL LAN SUBNET>
IP nat enable
!
!
Interface gig0/2
Description WAN_Interface
IP address y.y.y.y x.x.x.x <WAN IP ADDRESS>
IP nat enable
!
access-list 1 permit 192.168.10.0 0.0.0.255 <Local LAN Subnet>
!
ip nat source list 1 interface GigabitEthernet0/2 overload
!
ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/2 <WAN Gateway IF>
10-15-2019 05:04 AM
Hello,
which router model do you have (and which IOS version are you running) ?
Below is a sample:
https://layer77.net/2016/02/10/nat-hairpinning-on-cisco-isr/
10-15-2019 05:09 AM
It's ISR 4300
And in attachment there is config file
10-15-2019 05:17 AM
10-15-2019 05:32 AM
10-15-2019 06:51 AM
10-15-2019 05:20 AM
Hi,
Try like this:
Interface gig0/1
Description LAN_Interface
IP address 192.168.10.0 x.x.x.x <LOCAL LAN SUBNET>
IP nat enable
!
!
Interface gig0/2
Description WAN_Interface
IP address y.y.y.y x.x.x.x <WAN IP ADDRESS>
IP nat enable
!
access-list 1 permit 192.168.10.0 0.0.0.255 <Local LAN Subnet>
!
ip nat source list 1 interface GigabitEthernet0/2 overload
!
ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/2 <WAN Gateway IF>
10-15-2019 07:47 AM - edited 10-15-2019 09:18 AM
Hello
You dont mention what exactly do you want to use it nat hairpining for- anyhow below is a link to one example.
Community Cisco - access-my-web-server-via-the-public-ip-address
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