| 71 | |
| 72 | == xl2tp-client with out IPsec == |
| 73 | package to install |
| 74 | {{{ |
| 75 | sudo apt install xl2tpd ppp |
| 76 | }}} |
| 77 | configure /etc/xl2tpd/xl2tpd.conf |
| 78 | {{{ |
| 79 | root b2 xl2tpd # cat /etc/xl2tpd/xl2tpd.conf |
| 80 | [global] |
| 81 | access control = no |
| 82 | auth file = /etc/ppp/chap-secrets |
| 83 | debug avp = no |
| 84 | debug network = no |
| 85 | debug packet = no |
| 86 | debug state = no |
| 87 | ;debug tunnel = no[lac “lns name you specified on the server”] |
| 88 | |
| 89 | [lac vpnMikrotik] |
| 90 | lns = 159.65.10.52 |
| 91 | require chap = yes |
| 92 | require authentication = yes |
| 93 | ppp debug = yes |
| 94 | pppoptfile = /etc/ppp/options.xl2tpd |
| 95 | require pap = no |
| 96 | name = user1 |
| 97 | root b2 xl2tpd # |
| 98 | }}} |
| 99 | config /etc/ppp/options.xl2tpd |
| 100 | {{{ |
| 101 | root b2 ppp # cat /etc/ppp/options.xl2tpd |
| 102 | ipcp-accept-local |
| 103 | ipcp-accept-remote |
| 104 | refuse-eap |
| 105 | require-mschap-v2 |
| 106 | noccp |
| 107 | noauth |
| 108 | idle 1800 |
| 109 | mtu 1410 |
| 110 | mru 1410 |
| 111 | defaultroute |
| 112 | usepeerdns |
| 113 | debug |
| 114 | connect-delay 5000 |
| 115 | name vpn_user |
| 116 | password vpn_password |
| 117 | |
| 118 | root b2 ppp # |
| 119 | }}} |