VPN Server SETUP In Debian Linux

Source: Internet
Author: User

 

Install necessary software

Apt-get install pptpd kernel-tree-2.6.10 kernel-package

Apt-get install kernel-patch-mppe libc6-dev

Decompress Linux kernel

Cd/usr/src

Tar xjf kernel-source-2.6.10.tar.bz2

Configure the kernel

I copied an existing config file.

Cd/usr/src/kernel-source-2.6.10

Cp/boot/config-2.6.10-1-686-smp. config

Compile the kernel

Make-kpkg -- added-patches debian, mppe -- append-to-version-686-smp-mppe -- initrd kernel_image

Then go to tea

Install and restart the new kernel.

Cd/usr/src/

Dpkg-I kernel-image-2.6.10-686-smp-mppe_10.00.Custom_i386.deb

Update-grub

Reboot

Configure pptpd

Vi/etc/pptpd. conf

Modify localip and remoteip, and change localip to the IP address of the server. remoteip is the IP address used by the login machine, as shown in figure

Localip 1.2.3.4

Remoteip 1.2.3.50-70

Configure chap-secrets

Vi/etc/ppp/chap-secrets

If you do not limit the ip address, you can change it to the following format:

Username pptpd password *

If the IP address is restricted, you can change it

Username pptpd password 162.105.0.0/16 166.111.0.0/16

Configure network

/Etc/network/options

Modify the ip_forward Option

Ip_forward = yes

Restart network and pptpd

/Etc/init. d/networking restart

/Etc/init. d/pptpd restart

Test

If you are lucky, you can use tail-f/var/log/syslog for monitoring during testing.

Postscript

Once this set of programs was performed on the machine of the AMD64-K8-SMP, The result once someone tried to link, on the Kernel Panic, failed.

THANKS

Fjdc AT 163 DOT com

Related Article

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.