Use Poptop in RedHatAS4 to build a VPN Server

Source: Internet
Author: User
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

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.