ACCEL-PPTP deployment

Source: Internet
Author: User

ACCEL-PPTP is an improved version of Pptp-client and PPTPD, and uses the kernel PPTP module to provide better performance than the raw socket implementation. Ubuntu 12.04The kernel PPTP kernel 3.2+ that is enabled on the core is already contained in the kernel 1. Compiling PPPD module Apt-get install Ppp-dev cmake git cloneHttps://github.com/winterheart/accel-pptp.gitCD Accel-pptpcmake. -DPPP_PLUGIN_PATH=/USR/LIB/PPPD/2.4.5/2. Modify peer config file (for instance,/etc/ppp/peers/my_vpn): Pty "PPTP x.x.x.x .... Plugin"/usr/lib/pppd/2.4.5/pptp.so Pptp_server x.x.x.x also commented out the lock #lock 3 in peer config file and/ETC/PPP/OPTIONS.PPTP. Start PPTP VPNPPPD Call My_vpn RHEL 6RHEL6 because the kernel version is 2.6.32, it does not include the kernel PPTP module--2.6.36. 1. Download the ACCEL-PPTP and unzip the  2. Go to kernel/driver directory compile kernel module   Install kernel header file yum install kernel-headers  kernel-devel  ppp-devel if not with Yum update Kernel upgrade the kernel to the latest, there will be a minor version mismatch with the kernel header file. At this point, the compilation will appear to not find the header file,     cd/lib/modules/2.6.32-431.1.2.0.1.el6.x86_64    RM build    Ln-s. /.. /.. /usr/src/kernels/2.6.32-504.1.3.el6.x86_64/build  edit Pptp.c, 47 lines uncomment the macro Config_gre (the PPTP module is registered to the GRE protocol, the default is to register to inet, this mode will always fail to register, and if you try to unload the PPTP module again, the machine will not respond. )       #define CONFIG_GRE then compile     make 3. Go to pppd_plugin directory compile PPPD module pptp.so     ./configure     make    CP. libs/pptp.so/ Usr/lib64/pppd/2.4.5/ 4. Go to pptpd-1.3.3 directory compilation pptpd    ./configure     make    make install # Install to/usr/local/sbin   Copy Configuration Sample. If the machine has been installed through Yum pptpd, the existing configuration can be maintained      CP samples/pptpd.conf/etc/    CP Samples/options.pptpd/et c/ppp/  5. Kernel module boot auto load     CP Pptp.ko  /lib/modules/' uname-r '/extra/       depmod-a                  # for all module dependencies so modprobe can find the module, otherwise it must be loaded with Insmod      echo mo Dprobe PPTP >>/etc/rc.modules    chmod +x/etc/rc.modules 5. Start pptpd Services    /USR/LOCAL/SBIN/PPTPD

ACCEL-PPTP Deployment

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.