I’m testing L2TP/OverIPSec on VyOS Version = VyOS 1.4-rolling-202308060317
My configuration =
//// *** VPN Config *** ////
set vpn ipsec interface 'eth0'
set vpn l2tp remote-access authentication local-users username test password 'test'
set vpn l2tp remote-access authentication mode 'local'
set vpn l2tp remote-access client-ip-pool start '192.168.255.100'
set vpn l2tp remote-access client-ip-pool stop '192.168.255.200'
set vpn l2tp remote-access client-ip-pool subnet '192.168.255.0/24'
set vpn l2tp remote-access ipsec-settings authentication mode 'pre-shared-secret'
set vpn l2tp remote-access ipsec-settings authentication pre-shared-secret 'test'
set vpn l2tp remote-access outside-address '192.168.1.251'
//// *** FIREWAL RULES *** ////
set firewall name FROM-INTERNET rule 40 action 'accept'
set firewall name FROM-INTERNET rule 40 protocol 'esp'
set firewall name FROM-INTERNET rule 41 action 'accept'
set firewall name FROM-INTERNET rule 41 destination port '500'
set firewall name FROM-INTERNET rule 41 protocol 'udp'
set firewall name FROM-INTERNET rule 42 action 'accept'
set firewall name FROM-INTERNET rule 42 destination port '4500'
set firewall name FROM-INTERNET rule 42 protocol 'udp'
set firewall name FROM-INTERNET rule 43 action 'accept'
set firewall name FROM-INTERNET rule 43 destination port '1701'
set firewall name FROM-INTERNET rule 43 ipsec match-ipsec
set firewall name FROM-INTERNET rule 43 protocol 'udp'
From a tcpdump i stay stuck on phase 2/others and client cann’t connect.
vyos@vyos# tcpdump -i eth0 port 500
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
13:20:52.027508 IP ........net.isakmp > 192.168.1.251.isakmp: isakmp: phase 1 I ident
13:20:52.028495 IP 192.168.1.251.isakmp > ........net.isakmp: isakmp: phase 2/others R inf
13:20:53.001599 IP ........net.isakmp > 192.168.1.251.isakmp: isakmp: phase 1 I ident
13:20:53.004466 IP 192.168.1.251.isakmp > ........net.isakmp: isakmp: phase 2/others R inf
13:20:53.977057 IP ........net.isakmp > 192.168.1.251.isakmp: isakmp: phase 1 I ident
13:20:53.977618 IP 192.168.1.251.isakmp > ........net.isakmp: isakmp: phase 2/others R inf
13:20:56.961775 IP ........net.isakmp > 192.168.1.251.isakmp: isakmp: phase 1 I ident
13:20:56.963432 IP 192.168.1.251.isakmp > ........net.isakmp: isakmp: phase 2/others R inf