Loopback or Hairpin NAT

Loopback or Hairpin NAT

Loopback or Hairpin NAT
Loopback or Hairpin NAT
Yesterday
Model: ER7206 (TL-ER7206)  
Hardware Version: V2
Firmware Version:

I'm not a networking expert but I am learning.

 

I have an OC200 managing an ER7206 router. I have OpenVPN running and would like to be able to stay connected to the VPN on my devices while on my home WiFi or on LTE. To do so, I need to enable loopback or hairpin NAT. I don't see an option to do this in the OC200 console. Am I missing something?

 

If I'm not missing anything, can I enable this through an ACL or port forwarding?

  0      
  0      
#1
Options
10 Reply
Re:Loopback or Hairpin NAT
Yesterday

Hi @CoffeeAndTech 

Thanks for posting in our business forum.

NAT loopback(hairpin) is supported. And there is no config page or option to toggle on/off for that.

Best Regards! If you are new to the forum, please read: Howto - A Guide to Use Forum Effectively. Read Before You Post. Look for a model? Search your model NOW Official and Beta firmware. NEW features! Subscribe for the latest update!Download Beta Here☚ ☛ ★ Configuration Guide ★ ☚ ☛ ★ Knowledge Base ★ ☚ ☛ ★ Troubleshooting ★ ☚ ● Be kind and nice. ● Stay on the topic. ● Post details. ● Search first. ● Please don't take it for granted. ● No email confidentiality should be violated. ● S/N, MAC, and your true public IP should be mosaiced.
  1  
  1  
#2
Options
Re:Loopback or Hairpin NAT
Yesterday

  @Clive_A 

 

That's good to hear it's supported. How do I turn it on if it's not in the GUI?

  0  
  0  
#3
Options
Re:Loopback or Hairpin NAT
Yesterday

Hi @CoffeeAndTech 

Thanks for posting in our business forum.

CoffeeAndTech wrote

  @Clive_A 

 

That's good to hear it's supported. How do I turn it on if it's not in the GUI?

It works as soon as you configure the port forward. No toggle or enable as I wrote earlier.

Best Regards! If you are new to the forum, please read: Howto - A Guide to Use Forum Effectively. Read Before You Post. Look for a model? Search your model NOW Official and Beta firmware. NEW features! Subscribe for the latest update!Download Beta Here☚ ☛ ★ Configuration Guide ★ ☚ ☛ ★ Knowledge Base ★ ☚ ☛ ★ Troubleshooting ★ ☚ ● Be kind and nice. ● Stay on the topic. ● Post details. ● Search first. ● Please don't take it for granted. ● No email confidentiality should be violated. ● S/N, MAC, and your true public IP should be mosaiced.
  0  
  0  
#4
Options
Re:Loopback or Hairpin NAT
Yesterday - last edited Yesterday

 

@Clive_A Here is the OpenVPN setup and port forwarding I created. Am I missing something?

 

 

 

 

 

  0  
  0  
#5
Options
Re:Loopback or Hairpin NAT
Yesterday

Hi @CoffeeAndTech 

Thanks for posting in our business forum.

CoffeeAndTech wrote

 

@Clive_A Here is the OpenVPN setup and port forwarding I created. Am I missing something?

 

 

 

 

 

 

I did not say this is working on a VPN. Port forwarding a VPN client is not doable now.

It is not a device under the native LAN. Port forward over tunnel or this does not work.

 

We commonly refer to the NAT Loopback (hairpin) in LAN. Not involving the VPN client or the tunnel. Do not mistake two things together.

Best Regards! If you are new to the forum, please read: Howto - A Guide to Use Forum Effectively. Read Before You Post. Look for a model? Search your model NOW Official and Beta firmware. NEW features! Subscribe for the latest update!Download Beta Here☚ ☛ ★ Configuration Guide ★ ☚ ☛ ★ Knowledge Base ★ ☚ ☛ ★ Troubleshooting ★ ☚ ● Be kind and nice. ● Stay on the topic. ● Post details. ● Search first. ● Please don't take it for granted. ● No email confidentiality should be violated. ● S/N, MAC, and your true public IP should be mosaiced.
  0  
  0  
#6
Options
Re:Loopback or Hairpin NAT
23 hours ago

  @CoffeeAndTech 

 

NAT loopback is for NAT, OpenVPN is not NAT so that's why it doesn't work.

I think it worked before but that this option has been removed, I'm a bit unsure. I'm in the same situation and always have VPN on my mobile devices but found other ways to solve it.

 

 

  0  
  0  
#7
Options
Re:Loopback or Hairpin NAT
21 hours ago - last edited 21 hours ago

  @MR.S Thank you for the helpful response! Just out of curiosity, what is the way in which you solved it?

  0  
  0  
#8
Options
Re:Loopback or Hairpin NAT
21 hours ago

  @CoffeeAndTech 

 

 

I am running OpenVPN on a raspberry pi5.

 

  0  
  0  
#9
Options
Re:Loopback or Hairpin NAT
21 hours ago - last edited 21 hours ago

  @MR.S Gotcha! Up until recently I was doing the same on a Raspberry Pi 4. I really liked the ease of install and config on the TP-Link router, so that's why I went that route. I guess it's just a minor inconvenience to not be able to connect on my home WiFi.

  0  
  0  
#10
Options
Re:Loopback or Hairpin NAT
19 hours ago

  @CoffeeAndTech 

 

yes I agree, I have always on vpn on mobile devices, it's cumbersome to turn off vpn every time you connect to wifi, but there are advantages to having the vpn server on the back of the router, I have several vpn tunnels on the omada router, I also get easy access to remote sites via OpenVPN since it's behind the router. so there are advantages and disadvantages to everything :-)

 

 

  0  
  0  
#11
Options