PS: There are two common methods to implement VPN in linux: poptop and openvpn. Here we mainly introduce poptop. If there is time, we will write it and prepare it before openvpn is installed. 1. the VPN Server has two NICs with different IP addresses. Tip: You can use netconfig to configure the NIC. If you want to configure the second Nic, enter netconfigeth12. enabling the linux route forwarding function is disabled by default.
PS: There are two common methods to implement VPN in linux: poptop and open vpn.
This article mainly introduces poptop. If there is time, it will write open vpn.
Make preparations before installing VPN
1. the VPN Server has two NICs with different IP addresses.
Tip:
You can use netconfig to configure the NIC.
If you want to configure the second Nic, enter netconfig eth1
2. Enabling the linux route forwarding function is disabled by default.
# Vi/etc/sysctl. conf
Save the changes
Remember to restart the network service
# Service network restart
Official poptop
Http://www.poptop.org/
There are some installation instructions on the website.
Click downloads to download
Http://sourceforge.net/projects/poptop/files/
I deploy and download the following software packages (No. 1 no. 2 indicates the installation order)
No.1.ppp-2.4.3-5. rhel4.i386. rpm
(Because ppp2.4.2 is installed in rhel4 by default, you can upgrade and install it here using rpm-Uvh *. rpm. If the following software package already exists, but different versions use rpm-Uvh for installation)
No.2.dkms-2.0.10-1. noarch. rpm
No.3.kernel _ ppp_mppe-1.0.2-3dkms.noarch.rpm
No.4.pptpd-1.3.3-1. rhel4.i386. rpmp
Installation example: # rpm-Uvh ppp-2.4.3-5.rhel4.i386.rpm is relatively lazy to write only one
Main configuration file after installation:
/Etc/pptpd. conf pptpd main configuration file
/Etc/ppp/options.ppt pd pptpd configuration option File
/Etc/ppp/chap-secrets account configuration file