Site-To-Site VPN: Tunnel UP, but no traffic being routed.

Site-To-Site VPN: Tunnel UP, but no traffic being routed.

Site-To-Site VPN: Tunnel UP, but no traffic being routed.
Site-To-Site VPN: Tunnel UP, but no traffic being routed.
2 weeks ago - last edited 2 weeks ago
Tags: #VPN
Model: ER7212PC   ER8411  
Hardware Version: V1
Firmware Version: ER7212PC v1.0: 1.2.0 Build 20240716 Rel.80083 // ER8411 v1.0: 1.2.2 Build 20240809 Rel.48592

I am trying to setup a Site-To-Site VPN from "Main Office" to "New Branch" using OMADA.

 

"Main Office":

 - Gateway: ER8411 v1.0: 1.2.2 Build 20240809 Rel.48592

 - WAN: public fixed IP, not behind any NAT or extra firewall

 - LAN: 192.168.100.0/24, whereby the ER8411 has 192.168.100.1.

 

"New Branch":

 - Gateway: ER7212PC v1.0: 1.2.0 Build 20240716 Rel.80083

 - WAN: public fixed IP, not behind any NAT or extra firewall

 - LAN: 192.168.2.0/24, whereby the ER7212PC has 192.168.2.1.

 

Setting up the tunnel works fine. It shows up under "Insights" -> "VPN Status" as connected, in both directions (in/out), on both gateways.

 

However, no traffic seems to be routed through the VPN tunnel. I have tried ICMP/Ping, TCP/HTTP(80), TCP/SSH(22) and others.

 

Even the gateways (192.168.100.1 and 192.168.2.1) cannot ping each other. No firewall rules set. Firewall Options are default (Broadcast Ping, Receive Redirects, Send Redirects, SYN Cookies all ENABLED) on both gateways.

 

Interesting Detail: From the same "Main Office" gateway we are successfully running a Site-To-Site VPN to another branch, let's call it "Other Branch". Settings are basically the same, and the gateway at the "Other Branch" is also a ER7212PC v1.0, 1.2.0 Build 20240716 Rel.80083. It's LAN is 192.168.200.0/24, whereby the gateway has 192.168.200.1. All traffic between these two subnets (192.168.100.0/24 <--> 192.168.200.0/24) works as expected. From both sides I can ping the "other" gateway as well as any devices behind. All TCP and UDP traffic gets routed as expected.

 

But for "New Branch", no luck. And Idea what I am missing? Thank you for any advice.

 

 

  0      
  0      
#1
Options
1 Accepted Solution
Re:Site-To-Site VPN: Tunnel UP, but no traffic being routed.-Solution
2 weeks ago - last edited 2 weeks ago

Dear @Clive_A and others...

 

WE FINALLY SOLVED IT !!!

 

The problem cause was:

 - Our Upstream IP Provider did not route ESP Traffic correctly.

 

Why it took so long to solve:

 - The gateways show the tunnel as "Connected", even when ESP Traffic is not possible.

 - The TP-Link documentation, respectvely @Clive_A 's answer (https://community.tp-link.com/en/business/forum/topic/658494) makes one believe that NAT-T (encapsulating ESP via UDP[4500]) is on by default, which does NOT seem to be true.

 

The solution was:

 - Make the Upstream IP Provider change settings for ESP to be routed correctly.

 

My big wishes towards TP-Link:

 - Make the tunnel NOT show as connected when no ESP traffic is possible.

 - Make NAT-T an option that can be turned on and off. - - that would have made debugging sooooo much easier!

 - Make internal LOGFILES concerning the VPN tunnel available. - - that would have made debugging sooooo-ooo-ooo much easier!

 

Thank you to everybody who participated.

Recommended Solution
  3  
  3  
#17
Options
16 Reply
Re:Site-To-Site VPN: Tunnel UP, but no traffic being routed.
2 weeks ago

  @Vento 

 

Hi,

What technology of VPN are you using for that? WIreGuard? OpenVPN? IPsec? L2TP?

 

Could you paste some screenshots of your VPN's configuration for both - Main and Branch offices (blur any sensitive data ofc)?

 

Cheers :)

  1  
  1  
#2
Options
Re:Site-To-Site VPN: Tunnel UP, but no traffic being routed.
2 weeks ago

Hi @Vento 

Thanks for posting in our business forum.

Like Raru wrote.

Not able to judge what might be wrong. Site-to-Site is a typical use case and it worked as we have tested on all models.

Suspect your config.

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  
#3
Options
Re:Site-To-Site VPN: Tunnel UP, but no traffic being routed.
2 weeks ago

First of all thank you everybody for looking into this.

 

Here some clarification and the requested config screenshots.

 

I am using Site-To-Site VPN in "Manual IPsec" Mode.

 

First of all I would like to clarify:

The tunnel shows up under "Insights" -> "VPN Status" as connected, in both directions (in/out), on both gateways. See screenshots below.

Whenever I change Remote Gateway IP, PSK, or LocalID/RemoteID to anything wrong/silly, the tunnel status goes away under "Insights" -> "VPN Status". As expected.

Whenever I change the settings back to what I have now (see screenshots below), the tunnel comes back as connected. As expected.

--> my conclusion: It's probably not the VPN Policy Settings, but probably a routing issue. I hope I am wrong! :-)

 

However, even when the tunnel shows "VPN Status" as connected, no traffic seems to be routed through the VPN tunnel.

I have tried ICMP/Ping, TCP/HTTP(80), TCP/SSH(22) and others.

 

Here the "Insights" -> "VPN Status" from both sides:

 

"Main Office" gateway:

 

"New Branch" gateway:

 

 

And here are the VPN Settings:

 

"Main Office" gateway:

 

 

"New Branch" gateway:

 

Any hints greatly appreciated!

  0  
  0  
#4
Options
Re:Site-To-Site VPN: Tunnel UP, but no traffic being routed.
2 weeks ago

  @Vento 

 

1. Do your TP-Link routers have Public IP? Or those are behing a NAT (ISP's device with public IP)?

 

2. Can you also show routing table?

 

3. Do you have any ACLs configured on those Gateways? If yes, can you share those as well?

  0  
  0  
#5
Options
Re:Site-To-Site VPN: Tunnel UP, but no traffic being routed.
2 weeks ago

  @RaRu Thanks!

 

> 1. Do your TP-Link routers have Public IP? Or those are behing a NAT (ISP's device with public IP)?

 

Yes, both sides are NOT behind any NAT, and they DO have fixed static global IPs.

 

> 2. Can you also show routing table?

 

No static routes have been defined.

The 'actual' routing table (under "Insights"->"Routing Table") shows no mention of any subnet on the "other side".

Do I need to set static routes manually, maybe? I have played around with this, but with no luck so far.

 

> 3. Do you have any ACLs configured on those Gateways? If yes, can you share those as well?

 

No ACLs in use.

  0  
  0  
#6
Options
Re:Site-To-Site VPN: Tunnel UP, but no traffic being routed.
2 weeks ago

  @Vento 

 

I don't see any issue here...

I'm just trying to compare that with my IPsec config which is working...

 

Can you try to change (in both configurations) the Local Networks setting, from Network to Custom IP - and provide there your local Network address and Mask? Just for testing.

 

Then disable the server and after few seconds enable it again. Test the ping after that.

 

BTW. Are you able to test the PING directly from controller (Tools tab)? Does the ping from there work (to ping opposite Gateway)?

  0  
  0  
#7
Options
Re:Site-To-Site VPN: Tunnel UP, but no traffic being routed.
2 weeks ago

  @RaRu thanks again...

 

> I don't see any issue here...

> I'm just trying to compare that with my IPsec config which is working...

 

What is most puzzling to me: the tunnel shows as "connected" under "Insights"->"VPN Status"!

So I suspect the gateway WAN IP's are correct, NAT is not an issue, and so on... the VPN handshake is successful! The tunnel is UP!

 

> Can you try to change (in both configurations) the Local Networks setting, from Network to Custom IP - and provide there your local Network address and Mask? Just for testing.

> Then disable the server and after few seconds enable it again. Test the ping after that.

 

Just tried that. Nothing changed.

 

> BTW. Are you able to test the PING directly from controller (Tools tab)? Does the ping from there work (to ping opposite Gateway)?

 

I have tried everything that came to my mind:

 - Tried using commandline ping from devices (Win/Linux) in either local network (luckily I have TeamViewer access as a temporary hotfix at the moment to do this...). I can ping devices and the local gateway fine in either subnet, but NOT accross subnets --> no routing seems to take place. Also tried traffic other than ICMP/ping: HTTP(80), SSH(22), with no luck.

 - Tried using PING directly from controller (Tools tab), tried using LAN and WAN interfaces there --> no success. Same as above: Can ping stuff in the local subnet (and also on the big global worldwide net...), but not in the "other" subnet. Not even the LAN IP of the "other" gateway.

  0  
  0  
#8
Options
Re:Site-To-Site VPN: Tunnel UP, but no traffic being routed.
2 weeks ago

  @Vento 

 

Hmmm, out of curiosity... Can you try to disable Block WAN ping option as well as enable Broadcast Ping?

(Yes, I know that you were also trying to SSH and other thing except the ping. Just for science!)

 

 

 

 

  0  
  0  
#9
Options
Re:Site-To-Site VPN: Tunnel UP, but no traffic being routed.
2 weeks ago - last edited 2 weeks ago

  @Vento 

 

I just recreated the same setting you have in your IPsec and it totally worked for me, right out of the box. No ACLs, no additional routing...

 

 

 

But I do have those ping options allowed.

  0  
  0  
#10
Options
Re:Site-To-Site VPN: Tunnel UP, but no traffic being routed.
2 weeks ago

  @Vento 

 

Last time I had an issue with VPN config (OpenVPN client couldn't connect to the server) I just decided to delete the OVPN server config, reboot the device and create totally new OVPN server. 

 

Then it started to work. 

 

I know it's not a solution but maybe there's something in routers memory/config that's making a problem. Maybe it would be a good idea to start again from the very beginning. 

  0  
  0  
#11
Options