I want to connect to my office L2TP based VPN. Here's my configuration:
/etc/xl2tpd/xl2tpd.conf
[global]
debug avp = yes
debug network = yes
debug state = yes
debug tunnel = yes
port = 1701
[lac l2tp]
lns = VPN server IP HERE
ppp debug = yes
/etc/ppp/chap.secrets
client * VPN PASSWORD HERE *
/etc/ppp/options.l2tp
ipcp-accept-local
ipcp-accept-remote
noccp
noauth
mtu 1456
mru 1456
debug
lock
user VPN USER HERE
netmask 255.255.255.255
/etc/ipsec.conf
ike dynamic esp transport proto udp from egress to VPN SERVER IP port 1701 \
main auth "hmac-sha" enc "aes" group modp2048 \
quick auth "hmac-sha" enc "aes" \
psk VPN USER PASSWD HERE
I enable the following services:
rcctl enable ipsec isakmpd xl2tpd
rcctl set isakmpd flags -K
rcctl start isakmpd xlt2pd
I do this:
route add -priority 2 <vpn ip> <my ip>
ifconfig ppp0 up
ipsecctl -f /etc/ipsec.conf
No more error messages now with my updated configuration
But when executing:
ipsecctl -sa
There is no traffic, the VPN CONNECTION DOES NOT ESTABLISH. An Ubuntu linux machine connects great.
What am I doing wrong ? any idea?
Thanks,
|