Article title: Deployment of vpn (pptpd) under Centos. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
I. Installation
The most convenient installation of pptpd under centos 5 is to download the rpm package pptpd-1.3.4-1.rhel5.1.i386.rpm, and then directly execute rpm? Ivh pptpd-1.3.4-1.rhel5.1.i386.rpm. Fortunately, this package has no other dependencies, so the installation should be exceptionally smooth. If you use the source code for installation, the version of ppp2.3.4 may be high. you need to delete pppd2.3.4 and then install pppp2.4.3, which is troublesome.
After the rpm Package is installed, several configuration files are automatically generated, the main configuration file/etc/pptpd. conf, option file/etc/ppp/options.ppt pd, account file/etc/ppp/chap-secrets. later, pptpd is configured to modify these files.
II. vpn topology
The vpn access logic has three networks:
1. target network to be accessed. Usually in the internal network where the vpn server is located (the vpn server has two NICs, one is public network and the other is private network)
2. public network of the Vpn.
3. the virtual network formed with the client after the Vpn connection. We recommend that you set up a network separately so that the ip address of the private network (destination network) after the vpn is not used.
Of course, the vpn tunnel network can be the same network segment as the target network, but this is not recommended.
[1] [2] [3] Next page