|
|
| (One intermediate revision by the same user not shown) |
| Line 2: |
Line 2: |
|
[[Category:Incoming L2TP]] |
|
[[Category:Incoming L2TP]] |
|
|
|
|
|
See further below for GUI / Ubuntu / Network Manager instructions |
|
See further below for CLI based xl2tpd manual instructions |
|
|
|
|
|
== Linux / xl2tpd == |
|
=Ubuntu / Network Manager = |
|
⚫ |
If you'd rather not set this all up with the CLI then you can use Network Manager instead. |
|
|
|
|
⚫ |
First, install the packages for the l2tp client and the network manager controls: |
|
⚫ |
apt install xl2tpd network-manager-l2tp network-manager-l2tp-gnome |
|
|
|
|
⚫ |
If the packages are not found, you may need to add some PPA's, eg one or both of these may be required: |
|
⚫ |
sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp |
|
⚫ |
sudo add-apt-repository universe |
|
⚫ |
|
|
|
|
|
⚫ |
Then, using Network Manager, create the L2TP connection: |
|
⚫ |
#Add a L2TP connection: (pic below) |
|
⚫ |
##Click the Network icon on the task bar |
|
⚫ |
|
|
⚫ |
##Next to 'VPN', click the + icon |
|
⚫ |
#Enter in the settings: (pic below) |
|
⚫ |
##Name: anything, eg AAISP |
|
⚫ |
|
|
⚫ |
##User name: your login we gave you, eg xxx@a.1 |
|
⚫ |
##Password: the password we gave you |
|
⚫ |
|
|
⚫ |
#Connect/disconnect via the network icon on the taskbar (pic below) |
|
|
|
|
⚫ |
<gallery heights=250 widths=250 caption="Ubuntu/Network Manager pics"> |
|
⚫ |
NetworkManagerL2TP1.png|Add a L2TP connection |
|
⚫ |
NetworkManagerL2TP2.png|Enter in the settings |
|
⚫ |
NetworkManagerL2TP3.png|Connect/disconnect |
|
⚫ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
= Linux / xl2tpd = |
|
|
|
|
|
<ol> |
|
<ol> |
| Line 18: |
Line 51: |
|
require authentication = no<br /> |
|
require authentication = no<br /> |
|
pppoptfile = /etc/ppp/options.aaisp<br /> |
|
pppoptfile = /etc/ppp/options.aaisp<br /> |
|
redial = yes<br /> |
|
#redial = yes<br /> |
|
redial timeout = 15<br /> |
|
#redial timeout = 15<br /> |
|
max redials = 9999<br /> |
|
#max redials = 9999<br /> |
|
autodial = yes</code></li> |
|
#autodial = yes</code></li> |
|
<li>Create <code>/etc/ppp/options.aaisp</code> containing the following (obviously change the name and password to match your L2TP login details):<br /> |
|
<li>Create <code>/etc/ppp/options.aaisp</code> containing the following (obviously change the name and password to match your L2TP login details):<br /> |
|
<code>+ipv6<br /> |
|
<code>+ipv6<br /> |
| Line 36: |
Line 69: |
|
<code>echo "c aaisp" > /var/run/xl2tpd/l2tp-control</code></li> |
|
<code>echo "c aaisp" > /var/run/xl2tpd/l2tp-control</code></li> |
|
</ol> |
|
</ol> |
| ⚫ |
This should give you a new PPP device which encapsulates the L2TP connection. |
|
|
|
|
|
|
⚫ |
*This should give you a new PPP device which encapsulates the L2TP connection. |
| ⚫ |
|
|
|
|
*You will then need to figure out what you want to route up the tunnel. |
| ⚫ |
Logs are written /var/log/daemon.log |
|
| ⚫ |
If you see "No such tunnel", you might want to try restarting the daemon |
|
|
|
|
|
|
|
|
|
|
⚫ |
|
|
|
|
|
⚫ |
Logs are written /var/log/daemon.log |
|
=Ubuntu / Network Manager = |
|
|
⚫ |
If you see "No such tunnel", you might want to try restarting the daemon |
| ⚫ |
If you'd rather not set this all up with the CLI then you can use Network Manager instead. |
|
|
|
|
| ⚫ |
First, install the packages for the l2tp client and the network manager controls: |
|
| ⚫ |
apt install xl2tpd network-manager-l2tp network-manager-l2tp-gnome |
|
|
|
|
| ⚫ |
If the packages are not found, you may need to add some PPA's, eg one or both of these may be required: |
|
| ⚫ |
sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp |
|
| ⚫ |
sudo add-apt-repository universe |
|
| ⚫ |
|
|
|
|
|
| ⚫ |
Then, using Network Manager, create the L2TP connection: |
|
| ⚫ |
#Add a L2TP connection: (pic below) |
|
| ⚫ |
##Click the Network icon on the task bar |
|
| ⚫ |
|
|
| ⚫ |
##Next to 'VPN', click the + icon |
|
| ⚫ |
#Enter in the settings: (pic below) |
|
| ⚫ |
##Name: anything, eg AAISP |
|
| ⚫ |
|
|
| ⚫ |
##User name: your login we gave you, eg xxx@a.1 |
|
| ⚫ |
##Password: the password we gave you |
|
| ⚫ |
|
|
| ⚫ |
#Connect/disconnect via the network icon on the taskbar (pic below) |
|
|
|
|
| ⚫ |
<gallery heights=250 widths=250 caption="Ubuntu/Network Manager pics"> |
|
| ⚫ |
NetworkManagerL2TP1.png|Add a L2TP connection |
|
| ⚫ |
NetworkManagerL2TP2.png|Enter in the settings |
|
| ⚫ |
NetworkManagerL2TP3.png|Connect/disconnect |
|
| ⚫ |
|
|