cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3147
Views
10
Helpful
7
Replies

Nat Hairpinning

gio.bitsadze
Level 1
Level 1

Hello, I'm a newbie to IOS. Can anyone help me with simple NAT Hairpinning?

I can give my router config file

2 Accepted Solutions

Accepted Solutions

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/

View solution in original post

Deepak Kumar
VIP Alumni
VIP Alumni

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>

 

 

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

View solution in original post

7 Replies 7

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/

It's ISR 4300

And in attachment there is config file

Config is misseinghere

 

the document provided by @Georg Pauwen  should work for you, test and advise.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

ISR 4300
IOS 15.4



 

Deepak Kumar
VIP Alumni
VIP Alumni

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>

 

 

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

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


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking for a $25 gift card