2.7.7. Road Warrior Access VPN Using Libreswan
Road warriors are traveling users with mobile clients with a dynamically assigned
IP address, such as laptops. These are authenticated using certificates.
On the server:
Where:
left=1.2.3.4- The 1.2.3.4 value specifies the actual IP address or host name of your server.
leftcert=vpn-server.example.com- This option specifies a certificate referring to its friendly name or nickname that has been used to import the certificate. Usually, the name is generated as a part of a PKCS #12 certificate bundle in the form of a
.p12file. See thepkcs12(1)andpk12util(1)man pages for more information.
On the mobile client, the road warrior's device, use a slight variation of the above configuration:
Where:
auto=start- This option enables the user to connect to the VPN whenever the
ipsecsystem service is started. Replace it with theauto=addif you want to establish the connection later.