Configure pptp VPN Client in CentOS 6.3

Source: Internet
Author: User

Configure pptp VPN Client in CentOS 6.3

Yum-yinstallppp pptppptp-setup

Pptpsetup command usage and description:

Pptpsetup -- create <TUNNEL> -- server <ip address/hostname> [-- domain <domain name>] -- u sername <USERNAME> [-- password <PASSWORD>] [-- encrypt] [-- start]

Pptpsetup-delete <TUNNEL> delete a node

Pptpsetup -- create vpn connection name -- server VPN server IP -- username VPN username -- password VPN password

Vi/etc/ppp/peers/vpn connection name

# Written by pptpsetup
Pty "pptp VPN Server IP -- nolaunchpppd"
Lock
Noauth
Nobsdcomp
Nodeflate
Name VPN User name
Remotename vpn connection name
Ipparam vpn connection name

Persist # Call pppd again when the connection is lost
Require-mppe-128
Refuse-pap
Refuse-chap
Refuse-eap
Refuse-mschap

Change Password

/Etc/ppp/chap-secrets

Cp/usr/share/doc/ppp-2.4.5/scripts/pon/usr/sbin/
Cp/usr/share/doc/ppp-2.4.5/scripts/poff/usr/sbin/
Chmod + x/usr/sbin/pon/usr/sbin/poff

Dialing

Pon vpn connection name

Start and Stop a VPN connection through pon/poff <tunnel>

Check whether it is connected

Ifconfig

Ppp0 Link encap: Point-to-Point Protocol
Inet addr: 172.17.196.10 P-t-P: 172.17.196.7 Mask: 255.255.255.255
Up pointopoint running noarp multicast mtu: 1396 Metric: 1
RX packets: 102271 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 61330 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 3
RX bytes: 133137807 (126.9 MiB) TX bytes: 3351984 (3.1 MiB)

Route to ppp0

Route add-net172.17.196.0netmask limit 255.255.0 dev ppp0

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.