Bug for remote ip in xl2tpd 1.2.6 on ubuntu 10.10

I tried to setup L2TP VPN on ubuntu 10.10 using xl2tpd, I installed xl2tpd from repository first: apt-get install xl2tpd, which gave me the version 1.2.6.

I set ip range but when I tried to connect to the VPN server, the remote ip was always 0.0.0.0 (I checkeded the /etc/log/syslog). After searching for a while, I found it’s actually a bug in xl2tpd. This bug is fixed in later version.

So I removed the xl2tpd 1.2.6, apt-get remove xl2tpd, all the config files are nicely still there.

I downloaded the latest version from the git repository: git clone https://github.com/xelerance/xl2tpd

Before you compile it, make sure you installed the libpcap dev first. apt-get install libpcap0.8-dev

in the xl2tpd folder, do make && make install

run xl2tpd -D to start and try to use another computer to connect server.

Done!

wait, one more step, if you reboot the server, the xl2tpd fails to start because it cannot find the /var/run/xl2tpd/ folder, this is another bug…, just create the folder mkdir -p /var/run/xl2tpd and you are finally good to go!

Leave a Reply

Your email address will not be published. Required fields are marked *