Initial vpn experience in linux

Source: Internet
Author: User
The initial vpn experience in linux-Linux Enterprise Application-Linux server application information. The following is a detailed description. I am idle, and I have a vpn service in the company's Intranet, so that I can easily log on to the company's intranet elsewhere. Next, I will send my operation steps:

Rpm-ivh dkms-2.0.5-1.noarch.rpm

Rpm-ivh kernel_ppp_mppe-0.0.5-2dkms.noarch.rpm

Rpm-Uvh ppp-2.4.3-5.rhel4.i386.rpm

Rpm-ivh pptpd-1.3.0-0.i386.rpm

Vi/etc/pptpd. conf

Vi/etc/ppp/options.ppt pd

Vi/etc/ppp/chap-secrets

Echo "1">/proc/sys/net/ipv4/ip_forward

Iptables-t nat-a postrouting-s 192.168.138.0/24-j MASQUERADE

Attached ptions.ppt pd and pptpd. conf files

[Options.ppt pd]
# Enable authentication
Lock
Auth
Debug

# It is equivalent to the domain used for authentication. enter the name of the VPN Server here.
Name pptpd

# Reject pap Authentication
Refuse-pap

# Reject chap authentication
Refuse-chap

# Reject mschap Authentication
Refuse-mschap

# Reject eap Authentication
Refuse-eap

# Using mschap-v2 authentication methods
Require-mschap-v2

# Requires 128-bit MPPE Encryption
Require-mppe-128

# Stateless, stateful mppe-stateful
Nomppe-stateful

# The DNS parameters allocated after the VPN Client is connected successfully
Ms-dns 202.106.46.151

# The WINS parameter assigned after the VPN Client is connected successfully
# Ms-dns 202.106.46.151

# Enable ARP proxy
Proxyarp


[Pptpd. conf]

# Specify the PPP service program
Ppp/usr/sbin/pppd

# Specify option Configuration
Option/etc/ppp/options.ppt pd

# Specify a local IP Address
Localip 10.10.234.23

# Specify the assigned remote IP Address
Remoteip 192.168.138.231-235

# Specify the subnet mask
# Netmask 255.255.255.0
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.