Hi,
Since FW 7.14 my l2tp-over-ipsec server stopped working properly. When I tried to connect to the VPN (e.g., from an iPhone), the logs on my TRB500 said it ran out of IP addresses. This happened for any connection, even for the very first one after a TRB500 reboot.
After digging through the config, I found in /etc/xl2tpd/xl2tpd.conf
pppoptfile = /var/etc/xl2tpd/options.xl2tpd
But this files seems to be in /var/run/
, not /var/etc
=> I fixed this.
Furthermore, /etc/rc.d/S60xl2tpd
fails to extend /var/run/xl2tpd/options.xl2tpd
by the required start and end IPs: These lines never get executed:
[ -n "$remoteip" ] && [ -n "$localip" ] && {
SERVER=1
echo "local ip = $localip" >> $CONFIG
echo "ip range = $remoteip" >> $CONFIG
echo "ms-dns $localip" >> $OPTIONS
}
The reason is, that the check_bind()
function called here
config_foreach check_bind connection "$section"
sets BIND_STOP to “yes”. This happens because
lines=$(ipsec status "${remote}-${section}" | wc -l)
evaluates to 0. If I comment out the line that checks BIND_STOP in S60xl2tpd
, my iPhone connects to the L2TP server again.
Now I wonder: What is this ipsec
tool? Apparently, it is not a script or an executable (at least, it is not in the PATH of my TRB500). But I think it should be part of strongswan (which is installed).
Any help is appreciated,
Adrian