09-L2TP Configuration

HomeSupportConfigure & DeployConfiguration ExamplesH3C Routers Easy and Effortless Routing Feature Configuration Examples-6W10009-L2TP Configuration
09-Setting Up L2TP VPN in macOS
Title Size Download
09-Setting Up L2TP VPN in macOS 59.23 KB

Setting Up L2TP VPN in macOS

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2024 New H3C Technologies Co., Ltd. All rights reserved.

No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of New H3C Technologies Co., Ltd.

Except for the trademarks of New H3C Technologies Co., Ltd., any trademarks that may be mentioned in this document are the property of their respective owners.

The information in this document is subject to change without notice.



Introduction

This document provides examples for configuring L2TP VPNs in a macOS.

Prerequisites

This document is not restricted to specific software or hardware versions. Procedures and information in the examples might be slightly different depending on the software or hardware version of the device.

The configuration examples were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.

The following information is provided based on the assumption that you have basic knowledge of L2TP VPN.

Software versions used

This configuration example was created and verified on macOS 10.14.2.

Configuration example

To connect to an L2TP-based VPN on macOS without a shared key, use the L2TP protocol. You must configure the macOS to support this feature. If you do not do that, the macOS prompts that the IPsec shared key is missing and you must verify your settings and try again.

Procedures

Opening the terminal

Press the command-space bar the keyboard to search for the terminal software.

Creating a file named options

Execute the sudo vim /etc/ppp/options command to create the file named options in the /etc/ppp directory.

Writing the configuration

1.     Enter the following content in the file named options.

plugin L2TP ppp

l2tpnoipsec

2.     Press ESC+SHIFT+: to return to the normal mode of the vim editor.

3.     Enter wq to save the file and exit the vim editor.

 

 

NOTE:

If the system does not respond when you press ESC+shift+:, switch the input method to English input method.

 

Creating an L2TP VPN connection

Open System Preferences, click Network, and click +. Create an L2TP VPN connection, and configure the parameters as follows:

·     Interface: VPN.

·     VPN Type: L2TP/IPsec.

·     Service Name: VPN (L2TP).

Configuring the account and password for the L2TP VPN client

1.     Configure the parameters as follows on the configuration page:

¡     Configuration: Default.

¡     Server Address: Public network address (use the actual address).

¡     Account Name: Username (use the actual username).

2.     Click Authentication Settings to configure the following parameters:

¡     User Authentication: Select the Password option and enter the password for the L2TP user.

¡     Machine Authentication: Select the Shared Secret option and enter the pre-shared secret.

 

 

NOTE:

In the authentication settings, if L2TP/IPsec is configured, the pre-shared key must be entered in the Machine Authentication area. If L2TP VPN is configured, you do not need to fill in the field.

 

3.     Click OK.

Configuring VPN traffic and DNS

Click the Advanced... button. In the advanced configuration, configure the following parameters:

·     On the Options tab, configure the following parameters:

¡     Disconnect when switching user accounts: Select.

¡     Disconnect when user logs out: Select.

¡     Send all traffic over VPN connection: Select.

·     On the DNS tab, configure the following parameters:

¡     On the DNS server, click + to add the DNS server address.

¡     After adding the DNS server address, click OK.

Connecting to an L2TP VPN

Connect to an L2TP VPN and test actual services. Verify that you can successfully ping the internal network address and the internal server, and open the browser to access the external network.

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网