Configure L2TP server on Linux (Support mppc/MPPE)

Source: Internet
Author: User

Author: kendiv
Date: 2006.12.16

***********************************
I. Software and environment configuration used
***********************************
1. l2tpd-0.69.tar.gz

Kernel: linux-2.6.12.6 + MPPE/mppc path (1.3)
PPP: ppp-2.4.3 + MPPE/mppc path (1.1)

***********************************
2. Install RP-L2TP
***********************************
# Cp l2tpd-0.69.tar.gz/usr/src/VPN/
# Cd/usr/src/VPN/
# Tar zxvf l2tpd-0.69.tar.gz
# Cd l2tpd-0.69
# Make

After compilation is successful, l2tpd will be generated in the current directory

# Cp l2tpd/usr/local/sbin/

***********************************
3. Copy the configuration file
***********************************
# Mkdir/etc/L2TP/
# Cd/usr/src/VPN/l2tpd-0.69/doc
# Cp l2tpd. conf. Sample/etc/L2TP/
# Cp l2tp-secrets.sample/etc/L2TP/
# Touch/etc/PPP/options. L2TP

# Cp l2tpd. 8/usr/local/man/man8/

***********************************
4. Modify the PPP configuration file (/etc/PPP/options. L2TP)
***********************************
Name Mimi. VPN # L2TP server name
Lock
MTU 1450
MRU 1450
Auth

# Handshake auth Method
+ Chap
+ Mschap-v2

# Debug
# Dump

Logfile/var/log/l2tpd. Log

Passive
Nodetach
Noccp
Novj
Novjccomp
Nopcomp
Noaccomp

***********************************
5. Start l2tpd
***********************************
# The l2tpd-D/* parameter D indicates that the l2tpd is run on the foreground, and the running information of the entire l2tpd is displayed. If no D is added, the l2tpd is run on the background;

***********************************
Vi. Windows client Configuration
***********************************

Under "HKEY_LOCAL_MACHINE/system/CurrentControlSet/services/RASMAN/parameters", add

Set prohibitipsec type to DWORD to 1

++
After Windows XP is configured, it must be restarted to take effect.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.