{"id":420,"date":"2012-12-17T08:10:36","date_gmt":"2012-12-17T13:10:36","guid":{"rendered":"http:\/\/www.lichun.cc\/blog\/?p=420"},"modified":"2012-12-17T08:10:36","modified_gmt":"2012-12-17T13:10:36","slug":"bug-for-remote-ip-in-xl2tpd-on-ubuntu","status":"publish","type":"post","link":"https:\/\/www.lichun.cc\/blog\/2012\/12\/bug-for-remote-ip-in-xl2tpd-on-ubuntu\/","title":{"rendered":"Bug for remote ip in xl2tpd 1.2.6 on ubuntu 10.10"},"content":{"rendered":"<p>I tried to setup L2TP VPN on ubuntu 10.10 using xl2tpd, I installed xl2tpd from repository first: <code>apt-get install xl2tpd<\/code>, which gave me the version 1.2.6.<\/p>\n<p>I set <strong>ip range<\/strong> but when I tried to connect to the VPN server, the <strong>remote ip<\/strong> was always 0.0.0.0 (I checkeded the \/etc\/log\/syslog). After searching for a while, I found it&#8217;s actually a <a href=\"http:\/\/bugs.debian.org\/cgi-bin\/bugreport.cgi?bug=589306\" title=\"xl2tpd bug in 1.2.6\" target='_blank'>bug<\/a> in xl2tpd. This bug is fixed in later version. <\/p>\n<p><!--more--><\/p>\n<p>So I removed the xl2tpd 1.2.6, <code>apt-get remove xl2tpd<\/code>, all the config files are nicely still there.<\/p>\n<p>I downloaded the latest version from the git repository: <code>git clone https:\/\/github.com\/xelerance\/xl2tpd<\/code><\/p>\n<p>Before you compile it, make sure you installed the <strong>libpcap dev<\/strong> first. <code>apt-get install libpcap0.8-dev<\/code><\/p>\n<p>in the xl2tpd folder, do <code>make && make install<\/code><\/p>\n<p>run <code>xl2tpd -D<\/code> to start and try to use another computer to connect server.<\/p>\n<p><strong>Done!<\/strong><\/p>\n<p>wait, one more step, if you reboot the server, the xl2tpd fails to start because it cannot find the <strong>\/var\/run\/xl2tpd\/<strong> folder, this is another bug&#8230;, just create the folder <code>mkdir -p \/var\/run\/xl2tpd<\/code> and you are finally good to go!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[64],"tags":[63,65,66],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2s9sh-6M","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.lichun.cc\/blog\/wp-json\/wp\/v2\/posts\/420"}],"collection":[{"href":"https:\/\/www.lichun.cc\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lichun.cc\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lichun.cc\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lichun.cc\/blog\/wp-json\/wp\/v2\/comments?post=420"}],"version-history":[{"count":0,"href":"https:\/\/www.lichun.cc\/blog\/wp-json\/wp\/v2\/posts\/420\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.lichun.cc\/blog\/wp-json\/wp\/v2\/media?parent=420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lichun.cc\/blog\/wp-json\/wp\/v2\/categories?post=420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lichun.cc\/blog\/wp-json\/wp\/v2\/tags?post=420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}