Back up to the Incoming L2TP Category

Difference between revisions of "L2TP Client: OSX"

From AAISP Support Site
Jump to: navigation, search
[unchecked revision][quality revision]
(Added 'Mac OS' to the title)
(Added section about IPv6)
Line 40: Line 40:
   
 
To undo this change delete the /etc/ppp/options file.
 
To undo this change delete the /etc/ppp/options file.
  +
  +
  +
===IPv6===
  +
  +
IPv6 does not seem to work on an L2TP interface when configured using the GUI, even with 'Configure IPv6' set to 'Manually'.
  +
  +
It can be made to work by entering commands on the command line, after the tunnel is connected:
  +
  +
/sbin/ifconfig ppp0 inet6 add 2001:8b0:XXXX::1/64
  +
route add -inet6 default -interface ppp0
  +
  +
It should be possible to automate this by creating an /etc/ppp/auth-up script.

Revision as of 13:07, 13 August 2017

Apple Mac OS X

An Apple computer can be used to create an L2TP connection in to AAISP, here's how:

  • Apple Menu - Settings - Network
  • Click the + Icon
  • Create a new VPN Interface with Type L2TP over IPSec

L2tp-osx-newconnection.png

  • In the Authentication settings set the Password
  • For ease of use Tick 'Show VPN status in menu bar
  • Optionally, and probably something you want to enable: in the Advanced Settings Tick, 'Send all Traffic over VPN connection'
  • Then Connect

L2tp-osx-connected.png

  • To Disconnect, click Disconnect

You can use the new icon in the Status bar (Up by the clock, to connect and disconnect the connection

L2tp-osx-ipsecmenu.png

VPN Connection - IPsec Error

Use this at your own risk. The notes below involves editing/creating system files, and whilst 'worked for us' may not work for you.

By default, OSX requires the L2TP connection to use IPSec encryption. At the moment the AAISP service is just plain L2TP and does not offer encryption.

L2tp-osx-ipsecerror.png

To enable OSX to connect without IPSec, then the /etc/ppp/options file needs to be edited. A simple way of doing this is as follows:

  1. Use the Search icon to search for Terminal

Osx-finding-terminal.png

and then enter in:

echo "plugin L2TP.ppp" > options
echo "l2tpnoipsec" >> options
sudo mv options /etc/ppp

If the mv (move) fails, then you may already have a /etc/ppp/options file, in this case it would need to be edited manually.

To undo this change delete the /etc/ppp/options file.


IPv6

IPv6 does not seem to work on an L2TP interface when configured using the GUI, even with 'Configure IPv6' set to 'Manually'.

It can be made to work by entering commands on the command line, after the tunnel is connected:

 /sbin/ifconfig ppp0 inet6 add 2001:8b0:XXXX::1/64
 route add -inet6 default -interface ppp0

It should be possible to automate this by creating an /etc/ppp/auth-up script.