VPNServer setup note In Debian-Linux Enterprise Application-Linux server application information. The following is a detailed description. For reference.
The following procedure assumes that you are running under the root 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
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
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