{"action":"created","issue":{"url":"https://api.github.com/repos/xelerance/xl2tpd/issues/40","labels_url":"https://api.github.com/repos/xelerance/xl2tpd/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/xelerance/xl2tpd/issues/40/comments","events_url":"https://api.github.com/repos/xelerance/xl2tpd/issues/40/events","html_url":"https://github.com/xelerance/xl2tpd/issues/40","id":30369935,"number":40,"title":"client does not reconnect after server restart","user":{"login":"atiertant","id":6105084,"avatar_url":"https://avatars.githubusercontent.com/u/6105084?v=3","gravatar_id":"","url":"https://api.github.com/users/atiertant","html_url":"https://github.com/atiertant","followers_url":"https://api.github.com/users/atiertant/followers","following_url":"https://api.github.com/users/atiertant/following{/other_user}","gists_url":"https://api.github.com/users/atiertant/gists{/gist_id}","starred_url":"https://api.github.com/users/atiertant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atiertant/subscriptions","organizations_url":"https://api.github.com/users/atiertant/orgs","repos_url":"https://api.github.com/users/atiertant/repos","events_url":"https://api.github.com/users/atiertant/events{/privacy}","received_events_url":"https://api.github.com/users/atiertant/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-03-28T08:27:23Z","updated_at":"2015-03-26T10:56:51Z","closed_at":null,"body":"Hi,i got about 10 client that should connect to my server,if they do it one by per,this is ok,but after a server restart,all should reconnect but it's not working.\r\nwhat could be the problem?\r\n\r\nserver side:\r\n\r\nin /etc/ppp/options.xl2tpd\r\n\r\nipcp-accept-local\r\nipcp-accept-remote\r\nrefuse-eap\r\nnoccp\r\nnoauth\r\ncrtscts\r\nmtu 1410\r\nmru 1410\r\nnodefaultroute\r\ndebug\r\nlock\r\nconnect-delay 5000\r\nname VPN\r\npersist\r\nmaxfail 3\r\n\r\nin /etc/xl2tpd/xl2tpd.conf\r\n\r\n[global]\r\nport = 1701\r\nlisten-addr = X.X.X.X\r\n\r\n[lns default]\r\nip range = 10.0.1.2-10.0.1.254\r\nlocal ip = 10.0.1.1\r\nrequire chap = yes\r\nrefuse pap = yes\r\nrequire authentication = yes\r\nname = VPN\r\nppp debug = yes\r\npppoptfile = /etc/ppp/options.xl2tpd\r\nlength bit = yes\r\n\r\nclient side:\r\n\r\nin /etc/ppp/options.xl2tpd.client\r\n\r\nipcp-accept-local\r\nipcp-accept-remote\r\nrefuse-eap\r\nnoccp\r\ncrtscts\r\nmtu 1410\r\nmru 1410\r\nnodefaultroute\r\ndebug\r\nlock\r\nconnect-delay 5000\r\nname monlogin\r\npassword monmotdepasse\r\npersist\r\nmaxfail 3\r\n\r\nin /etc/xl2tpd/xl2tpd.conf \r\n\r\n[global]\r\n\r\n[lac vpnserver]\r\nlns = X.X.X.X\r\nrequire chap = yes\r\nrefuse pap = yes\r\nrequire authentication = yes\r\nname = monlogin\r\nppp debug = yes\r\npppoptfile = /etc/ppp/options.xl2tpd.client\r\nlength bit = yes\r\nredial = yes\r\nredial timeout = 2\r\nautodial = yes\r\n\r\nlogs server side:\r\n\r\nMar 27 09:31:17  daemon.notice xl2tpd[18296]: Maximum retries exceeded for tunnel 22743.  Closing.\r\nMar 27 09:31:17  daemon.info xl2tpd[18296]: Connection 24803 closed to X.X.X.X, port 1701 (Timeout)\r\nMar 27 09:31:17  daemon.debug xl2tpd[18296]: Unable to deliver closing message for tunnel 28337. Destroying anyway.\r\nMar 27 09:31:17  daemon.debug xl2tpd[18296]: control_finish: Peer requested tunnel 24803 twice, ignoring second one.\r\nMar 27 09:31:17  daemon.debug xl2tpd[18296]: control_finish: Peer requested tunnel 8262 twice, ignoring second one.\r\nMar 27 09:31:17  daemon.debug xl2tpd[18296]: check_control: Received out of order control packet on tunnel -1 (got 1, expected 0)\r\nMar 27 09:31:17  daemon.debug xl2tpd[18296]: handle_packet: bad control packet!\r\nMar 27 09:31:17  daemon.debug xl2tpd[18296]: check_control: Received out of order control packet on tunnel -1 (got 1, expected 0)\r\nMar 27 09:31:17  daemon.debug xl2tpd[18296]: handle_packet: bad control packet!\r\nMar 27 09:31:17  daemon.debug xl2tpd[18296]: check_control: Received out of order control packet on tunnel -1 (got 1, expected 0)\r\nMar 27 09:31:17  daemon.debug xl2tpd[18296]: handle_packet: bad control packet!\r\nMar 27 09:31:17  daemon.debug xl2tpd[18296]: check_control: Received out of order control packet on tunnel -1 (got 1, expected 0)\r\nMar 27 09:31:17  daemon.debug xl2tpd[18296]: handle_packet: bad control packet!\r\nMar 27 09:31:17  daemon.debug xl2tpd[18296]: check_control: Received out of order control packet on tunnel -1 (got 1, expected 0)\r\nMar 27 09:31:17  daemon.debug xl2tpd[18296]: handle_packet: bad control packet!\r\nMar 27 09:31:19  daemon.notice xl2tpd[18296]: Maximum retries exceeded for tunnel 64913.  Closing.\r\nMar 27 09:31:19  daemon.info xl2tpd[18296]: Connection 8262 closed to X.X.X.X, port 1701 (Timeout)\r\nMar 27 09:31:19  daemon.debug xl2tpd[18296]: Unable to deliver closing message for tunnel 15969. Destroying anyway.\r\nMar 27 09:31:19  daemon.debug xl2tpd[18296]: check_control: Received out of order control packet on tunnel -1 (got 1, expected 0)\r\nMar 27 09:31:19  daemon.debug xl2tpd[18296]: handle_packet: bad control packet!\r\nMar 27 09:31:21  daemon.notice xl2tpd[18296]: Maximum retries exceeded for tunnel 37782.  Closing.\r\nMar 27 09:31:21  daemon.info xl2tpd[18296]: Connection 37560 closed to X.X.X.X, port 1701 (Timeout)\r\nMar 27 09:31:21  daemon.debug xl2tpd[18296]: Unable to deliver closing message for tunnel 29917. Destroying anyway.\r\nMar 27 09:31:21  daemon.debug xl2tpd[18296]: control_finish: Peer requested tunnel 11055 twice, ignoring second one.\r\nMar 27 09:31:23  daemon.notice xl2tpd[18296]: Maximum retries exceeded for tunnel 18004.  Closing.\r\nMar 27 09:31:23  daemon.info xl2tpd[18296]: Connection 31020 closed to X.X.X.X, port 1701 (Timeout)\r\nMar 27 09:31:23  daemon.debug xl2tpd[18296]: Unable to deliver closing message for tunnel 62741. Destroying anyway.\r\nMar 27 09:31:23  daemon.debug xl2tpd[18296]: control_finish: Peer requested tunnel 13034 twice, ignoring second one.\r\nMar 27 09:31:23  daemon.debug xl2tpd[18296]: check_control: Received out of order control packet on tunnel -1 (got 3, expected 0)\r\nMar 27 09:31:23  daemon.debug xl2tpd[18296]: handle_packet: bad control packet!\r\nMar 27 09:31:25  daemon.notice xl2tpd[18296]: Maximum retries exceeded for tunnel 62216.  Closing.\r\nMar 27 09:31:25  daemon.info xl2tpd[18296]: Connection 9963 closed to X.X.X.X, port 1701 (Timeout)\r\nMar 27 09:31:25  daemon.debug xl2tpd[18296]: Unable to deliver closing message for tunnel 3411. Destroying anyway.\r\nMar 27 09:31:25  daemon.debug xl2tpd[18296]: check_control: Received out of order control packet on tunnel -1 (got 1, expected 0)\r\nMar 27 09:31:25  daemon.debug xl2tpd[18296]: handle_packet: bad control packet!\r\nMar 27 09:31:25  daemon.debug xl2tpd[18296]: check_control: Received out of order control packet on tunnel -1 (got 1, expected 0)\r\nMar 27 09:31:25  daemon.debug xl2tpd[18296]: handle_packet: bad control packet!\r\nMar 27 09:31:27  daemon.notice xl2tpd[18296]: Maximum retries exceeded for tunnel 42851.  Closing.\r\nMar 27 09:31:27  daemon.info xl2tpd[18296]: Connection 43565 closed to X.X.X.X, port 51277 (Timeout)\r\nMar 27 09:31:27  daemon.debug xl2tpd[18296]: Unable to deliver closing message for tunnel 22743. Destroying anyway.\r\nMar 27 09:31:27  daemon.debug xl2tpd[18296]: check_control: Received out of order control packet on tunnel -1 (got 1, expected 0)\r\nMar 27 09:31:27  daemon.debug xl2tpd[18296]: handle_packet: bad control packet!\r\nMar 27 09:31:27  daemon.debug xl2tpd[18296]: check_control: Received out of order control packet on tunnel -1 (got 4, expected 0)\r\nMar 27 09:31:27  daemon.debug xl2tpd[18296]: handle_packet: bad control packet!\r\nMar 27 09:31:27  daemon.debug xl2tpd[18296]: check_control: Received out of order control packet on tunnel -1 (got 3, expected 0)\r\nMar 27 09:31:27  daemon.debug xl2tpd[18296]: handle_packet: bad control packet!\r\nMar 27 09:31:27  daemon.debug xl2tpd[18296]: check_control: Received out of order control packet on tunnel -1 (got 1, expected 0)\r\nMar 27 09:31:27  daemon.debug xl2tpd[18296]: handle_packet: bad control packet!\r\n\r\nlogs client side:\r\n\r\nMar 27 10:15:32  xl2tpd[10164]: Maximum retries exceeded for tunnel 45747.  Closing. \r\nMar 27 10:15:32  xl2tpd[10164]: Connection 0 closed to X.X.X.X, port 1701 (Timeout) \r\nMar 27 10:15:33  xl2tpd[10164]: Can not find tunnel 8305 (refhim=0) \r\nMar 27 10:15:33  xl2tpd[10164]: Can not find tunnel 8382 (refhim=0) \r\nMar 27 10:15:35  xl2tpd[10164]: Can not find tunnel 8305 (refhim=0) \r\nMar 27 10:15:37  xl2tpd[10164]: Can not find tunnel 8305 (refhim=0) \r\nMar 27 10:15:37  xl2tpd[10164]: Will redial in 2 seconds \r\nMar 27 10:15:39  xl2tpd[10164]: Can not find tunnel 8305 (refhim=0) \r\nMar 27 10:15:39  xl2tpd[10164]: Connecting to host X.X.X.X, port 1701 \r\nMar 27 10:15:41  xl2tpd[10164]: Can not find tunnel 8305 (refhim=0) \r\nMar 27 10:15:44  xl2tpd[10164]: Maximum retries exceeded for tunnel 19235.  Closing. \r\nMar 27 10:15:44  xl2tpd[10164]: Connection 0 closed to X.X.X.X, port 1701 (Timeout) \r\nMar 27 10:15:45  xl2tpd[10164]: Can not find tunnel 8305 (refhim=0) \r\nMar 27 10:15:47  xl2tpd[10164]: Can not find tunnel 52351 (refhim=0) \r\nMar 27 10:15:47  xl2tpd[10164]: Can not find tunnel 8305 (refhim=0) \r\nMar 27 10:15:49  xl2tpd[10164]: Will redial in 2 seconds \r\nMar 27 10:15:49  xl2tpd[10164]: Can not find tunnel 52351 (refhim=0) \r\nMar 27 10:15:49  xl2tpd[10164]: Can not find tunnel 8305 (refhim=0) \r\nMar 27 10:15:51  xl2tpd[10164]: Connecting to host X.X.X.X, port 1701 \r\nMar 27 10:15:51  xl2tpd[10164]: Can not find tunnel 52351 (refhim=0) \r\nMar 27 10:15:56  xl2tpd[10164]: Maximum retries exceeded for tunnel 50529.  Closing. \r\nMar 27 10:15:56  xl2tpd[10164]: Connection 0 closed to X.X.X.X, port 1701 (Timeout) \r\nMar 27 10:15:57  xl2tpd[10164]: Can not find tunnel 52351 (refhim=0) \r\nMar 27 10:15:59  xl2tpd[10164]: Can not find tunnel 52351 (refhim=0) \r\nMar 27 10:16:01  xl2tpd[10164]: Will redial in 2 seconds \r\nMar 27 10:16:01  xl2tpd[10164]: Can not find tunnel 52351 (refhim=0) \r\nMar 27 10:16:03  xl2tpd[10164]: Connecting to host X.X.X.X, port 1701 \r\nMar 27 10:16:03  xl2tpd[10164]: Can not find tunnel 52351 (refhim=0) \r\nMar 27 10:16:05  xl2tpd[10164]: Can not find tunnel 55323 (refhim=0) \r\nMar 27 10:16:05  xl2tpd[10164]: Can not find tunnel 52351 (refhim=0) \r\nMar 27 10:16:05  xl2tpd[10164]: Can not find tunnel 55323 (refhim=0)\r\n\r\nwhat would be the problem?"},"comment":{"url":"https://api.github.com/repos/xelerance/xl2tpd/issues/comments/86452059","html_url":"https://github.com/xelerance/xl2tpd/issues/40#issuecomment-86452059","issue_url":"https://api.github.com/repos/xelerance/xl2tpd/issues/40","id":86452059,"user":{"login":"PascalRD","id":5861368,"avatar_url":"https://avatars.githubusercontent.com/u/5861368?v=3","gravatar_id":"","url":"https://api.github.com/users/PascalRD","html_url":"https://github.com/PascalRD","followers_url":"https://api.github.com/users/PascalRD/followers","following_url":"https://api.github.com/users/PascalRD/following{/other_user}","gists_url":"https://api.github.com/users/PascalRD/gists{/gist_id}","starred_url":"https://api.github.com/users/PascalRD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PascalRD/subscriptions","organizations_url":"https://api.github.com/users/PascalRD/orgs","repos_url":"https://api.github.com/users/PascalRD/repos","events_url":"https://api.github.com/users/PascalRD/events{/privacy}","received_events_url":"https://api.github.com/users/PascalRD/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T10:56:50Z","updated_at":"2015-03-26T10:56:50Z","body":"thanks a lot, version 1.3.6 works fine"}}