ipsec : L2TP and site-to-site together

Hi all,

I have a L2TP VPN (for mobile clients) and a site-to-site VPN with an other site. Basically, I have the following setup :

  • Site A (running VyOs): internal interface (eth1) 172.18.4.0/24
  • Site B (running PfSense): internal interface 172.18.5.0/24

I’m trying to get access to the remote private network on site B (172.18.5.0/24) while i’m on the L2TP VPN on site A but unfortunately I can’t (after hours of trials).

Here is my L2TP config (x for anonymous data) :

remote-access { authentication { mode radius radius-server 172.18.4.4 { key xxxx } require pap } client-ip-pool { start 172.18.10.11 stop 172.18.10.99 } dns-servers { server-1 172.18.4.4 } ipsec-settings { authentication { mode pre-shared-secret pre-shared-secret xxx } } outside-address WAN_ADDR }
Here is my site-to-site:

authentication { mode pre-shared-secret pre-shared-secret xxxx } connection-type initiate default-esp-group standard-ESP-group ike-group standard-IKE-group ikev2-reauth inherit local-address WAN_ADDR tunnel 1 { allow-nat-networks disable allow-public-networks disable local { prefix 172.18.4.0/24 } remote { prefix 172.18.5.0/24 } }
Here is my source nat config :

rule 10 { destination { address 172.18.0.0/16 } exclude outbound-interface any } rule 47 { description VPN outbound-interface eth0 source { address 172.18.10.0/24 } translation { address WAN_ADDR } }
While on the VPN, impossible to ping a site B remote host (while I have access on the VyOs itself) :

[code]root@vyos# ping 172.18.5.2
PING 172.18.5.2 (172.18.5.2) 56(84) bytes of data.
64 bytes from 172.18.5.2: icmp_req=1 ttl=63 time=9.26 ms
64 bytes from 172.18.5.2: icmp_req=2 ttl=63 time=11.2 ms
64 bytes from 172.18.5.2: icmp_req=3 ttl=63 time=10.9 ms

root@l2tpclient# ping 172.18.5.2
PING 172.18.5.2 (172.18.5.2): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2[/code]
Can someone help me ? Many thanks :slight_smile:

hi,
can you
traceroute 172.18.5.2 and ip route show output
from l2tpclient
Thanks

➜ ~ traceroute 172.18.5.2 traceroute to 172.18.5.2 (172.18.5.2), 64 hops max, 52 byte packets 1 10.255.255.0 (10.255.255.0) 10.837 ms 10.948 ms 10.011 ms 2 * * * 3 * * * 4 * * * 5 * * * 6 * * * 7 * * * 8 * * *

Manualy adding this nat rule solved my problem. Is it a normal behavior ? I mean having to manage nat routing for L2TP/SITE-TO-SITE VPN ?

rule 1 { description "VPN L2TP/SITE2SITE NAT" destination { address 172.18.5.0/24 } outbound-interface eth0 source { address 172.18.10.0/24 } translation { address 172.18.4.1 } }