{"action":"opened","issue":{"url":"https://api.github.com/repos/opnsense/core/issues/1776","repository_url":"https://api.github.com/repos/opnsense/core","labels_url":"https://api.github.com/repos/opnsense/core/issues/1776/labels{/name}","comments_url":"https://api.github.com/repos/opnsense/core/issues/1776/comments","events_url":"https://api.github.com/repos/opnsense/core/issues/1776/events","html_url":"https://github.com/opnsense/core/issues/1776","id":250578845,"number":1776,"title":"[VPN] L2TP and PPTP not working","user":{"login":"kavi0208","id":30500690,"avatar_url":"https://avatars2.githubusercontent.com/u/30500690?v=4","gravatar_id":"","url":"https://api.github.com/users/kavi0208","html_url":"https://github.com/kavi0208","followers_url":"https://api.github.com/users/kavi0208/followers","following_url":"https://api.github.com/users/kavi0208/following{/other_user}","gists_url":"https://api.github.com/users/kavi0208/gists{/gist_id}","starred_url":"https://api.github.com/users/kavi0208/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kavi0208/subscriptions","organizations_url":"https://api.github.com/users/kavi0208/orgs","repos_url":"https://api.github.com/users/kavi0208/repos","events_url":"https://api.github.com/users/kavi0208/events{/privacy}","received_events_url":"https://api.github.com/users/kavi0208/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-16T10:22:33Z","updated_at":"2017-08-16T10:22:33Z","closed_at":null,"body":"Hello,\r\n\r\nIt seems like there is a configuration error when configuring the L2TP or PPTP from the webgui.\r\n\r\nThe configuration of either L2TP or PPTP is simple:\r\n<img width=\"536\" alt=\"screen shot 2017-08-16 at 14 08 02\" src=\"https://user-images.githubusercontent.com/30500690/29358513-5de2ae6e-828c-11e7-99b8-4dd18c627d85.png\">\r\n\r\nwhen restarting these logs can be seen:\r\n```\r\nroot@webgw:~ # tail -f /var/log/l2tps.log\r\nAug 16 12:09:06 webgw l2tps: L2TP: bind: Can't assign requested address\r\nAug 16 12:09:11 webgw l2tps: caught fatal signal TERM\r\nAug 16 12:09:13 webgw l2tps: [B] Bundle: Shutdown\r\nAug 16 12:09:13 webgw l2tps: [L] Link: Shutdown\r\nAug 16 12:09:13 webgw l2tps: process 8877 terminated\r\nAug 16 12:09:13 webgw l2tps: Multi-link PPP daemon for FreeBSD\r\nAug 16 12:09:13 webgw l2tps:\r\nAug 16 12:09:13 webgw l2tps: process 12349 started, version 5.8 (root@sensey64 06:43 26-Jul-2017)\r\nAug 16 12:09:13 webgw l2tps: L2TP: bind: Can't assign requested address\r\n```\r\nWhen checking the config in CLI:\r\n```\r\nstartup:\r\n\r\nl2tps:\r\n  set ippool add pool1 10.0.0.10 10.0.0.25\r\n\r\n  create bundle template B\r\n  set iface disable on-demand\r\n  set iface enable proxy-arp\r\n  set iface up-script /var/etc/l2tp-vpn/linkup\r\n  set iface down-script /var/etc/l2tp-vpn/linkdown\r\n  set ipcp ranges 10.0.0.1/32 ippool pool1\r\n  set ipcp yes vjcomp\r\n  set ipcp dns 10.0.0.1\r\n\r\n  set bundle enable crypt-reqd\r\n  set bundle enable compression\r\n  set ccp yes mppc\r\n\r\n  create link template L l2tp\r\n  set link action bundle B\r\n  set link enable multilink\r\n  set link yes acfcomp protocomp\r\n  set link no pap chap eap\r\n  set link enable chap\r\n  set link keep-alive 10 60\r\n  set link mtu 1460\r\n  set l2tp self 10.0.0.1\r\n  set link enable incoming\r\n```\r\ni saw that l2tp is trying to bind itself to 10.0.0.1 whereas this IP does not exist until a client connects to the l2tp.\r\n\r\nThus i modified the server address to opnsense IP address. The daemon restart successfully but clients are unable to connect.\r\n\r\nthe values in server address is being used twice in configuration but for two different configs:\r\n`set ipcp ranges 10.0.0.1/32 ippool pool1 `\r\n`set l2tp self 10.0.0.1`\r\n\r\nI think that this should be broken to two options like:\r\n`server address='real IP on which l2tp server listens'`\r\n`client gateway='ip of client gateway through l2tp'`\r\n\r\nIt the same problem with pptp.\r\n\r\nThanks.\r\n"}}
{"actor":{"display_login":"kavi0208"}}