I'm trying to vpn from my FreeBSD laptop to a Ubiquiti EdgeRouter. An IKE connection is established by security/strongswan and an IP address is assigned to the ng0 interface created by net/mpd5. But how do I make traffic pass through this tunnel? From what I gather in other threads this should be more or less automatic but I must be missing something since I'm unable to access anything on my corporate network. Here are my configs for reference.
startup: # Set web self 127.0.0.1 5008 # Set user vpntest vpntest admin # Set web open log +ALL +EVENTS -FRAME -ECHO default: load L2TP_client L2TP_client: create bundle static B1 create link static L1 l2tp set link action bundle B1 set auth authname "username" set auth password "password" set link max-redial 0 set link mtu 1460 set link keep-alive 20 75 set l2tp peer X.X.X.X open
config setup conn %default ikelifetime=60m keylife=20m rekeymargin=3m keyingtries=1 keyexchange=ikev1 authby=secret # psk or secret conn wesd # name used in ipsec(1) commands type=transport leftfirewall=yes # leftsourceip=%config rightsourceip=10.200.220.0/24 right=X.X.X.X # target server (same IP as the L2TP peer) rightsubnet=0.0.0.0/0 # network from the server auto=add # Add routing entries? left=%defaultroute leftprotoport=17/%any rightprotoport=17/1701