Implement vpn Server In Debian Linux

Source: Internet
Author: User
In debianLinux, the implementation of vpn Server-Linux Enterprise Application-Linux server application information is as follows. Server Side settings:
First, add the mppe patch to the kernel of the vpn Server,
Obtain patches from debian:
Apt-get install kernel-patch-mppe
Then execute the patch in the source code directory corresponding to the current kernel,
# Cd/usr/src/kernel-source-2.6.8
#/Usr/src/kernel-patches/all/apply/mppe

In the kernel ppp, there will be an additional mppe function, which is compiled into a module form and installed. The module form can be directly mounted without starting the machine and modifying/etc/modules, add a row
Ppp_mppe
Install: pptp service program and setup program:
Apt-get install pptpd webmin-pptp-server
You can set pptpd directly in webmin. Set everything by default.
[Enable MPPE encryption?] Set the option to [Must be used]
In this way, you do not need to modify the default security settings of the win client.
Then allocate the ip address pool,
Create an account and bind an ip address to the Account as needed
The webmin settings do not work properly. Finally, manually add several settings in the setting file \ etc \ pptp. conf, as shown in the following page.


Windows client settings:
Select [vpn] for [new connection] in [network and dial-up connection], and click the default settings.

Linux client settings:
Install client software first
Apt-get install pptp-linux
Install webmin Management
Apt-get install webmin-pptp-client
Then you can use webmin settings.
Automatic client Dialing:
Place the following sentence in a proper position
Pptp vpn.anheng.com.cn call anheng &
Place the vpn access machine in the same network segment as the LAN machine:
In/etc/pptp. conf, remove localip, remoteip allocates a segment of this network ip, and then enable arproxy in/etc/pptp-options to transfer arp to the LAN.
For more information, see the next page.

Server-related configuration files
# Debian_3.1 kernel_2.6.8 pptpd_1.2.1 pppd_2.4.2 pptp_linux_1.5.0
#===================================================== ============
# Files:/etc/pptpd. conf
Speed1000000
Option/etc/ppp/pptpd-options
Localip 10.0.0.254
Remoteip 10.0.0.2-238
# End


#===================================================== ==============
# Files:/etc/ppp/pptpd-options
Logfile/var/log/pptpd. log
Name pptpd
Refuse-eap
Proxyarp
Nodefaultroute
Lock
Nobsdcomp
Auth
Require-mppe
Require-mschap
# End

#===================================================== ============
# File:/etc/ppp/chap-secrets
Test pptpd test 10.0.0.2
# End

#===================================================== ============
# File:/etc/modules
...
...
...
Ppp_mppe
# End

#===================================================== ============
# File: // etc/modules. conf
...
...
...
...
# End

Configuration file of the linux Client
# File:/etc/ppp/peers/anheng
Name USERID
File/etc/ppp/options.ppt p
Remotename pptpd
Require-mppe
Require-mppe-40
Require-mppe-128

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.