Implementation of PPTP dialing using Pptpsetup under the CentOS 6.8 command line _linux

Source: Internet
Author: User

CentOS 6.8 command line can use Pptpsetup for PPTP dialing

1. Install PPP,PPTP and pptp-setup three packages first

Yum install-y PPP PPTP Pptp-setup

2. Connect using Pptpsetup

Pptpsetup--create VPN name--server server IP--username user name--password password--encrypt--start 
[root@centos6-8-1 ~]# Pptpsetup --create VPN--server 192.168.127.128--username user--password passw
d--encrypt--start
Using interface ppp0
   connect:ppp0 <-->/DEV/PTS/2
CHAP authentication succeeded MPPE 128-bit stateless compression
Enabled local
IP addresses 192.168.0.235
remote IP address 192.168.0.1

Using IP addr You can see one more interface ppp0:

[Root@centos6-8-1 ~]# IP Addr

1:lo: <LOOPBACK,UP,LOWER_UP> MTU 65536 qdisc noqueue State UNKNOWN

Link/loopback 00:00:00:00:00:00 BRD 00:00:00:00:00:00
inet 127.0.0.1/8 Scope host lo
INET6:: 1/128 scope host
   valid_lft Forever Preferred_lft Forever

2:eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> MTU 1500 Qdisc pfifo_fast State up Qlen 1000

Link/ether 00:0c:29:27:eb:e7 BRD ff:ff:ff:ff:ff:ff inet 192.168.127.129/24 brd 192.168.127.255
Scope Global eth0
inet6 fe80::20c:29ff:fe27:ebe7/64 scope link 
valid_lft forever preferred_lft Forever 4:ppp0
: < Pointopoint,multicast,noarp,up,lower_up> MTU 1496 Qdisc pfifo_fast State UNKNOWN Qlen 3
link/ppp 
192.168.0.235 Peer 192.168.0.1/32 Scope Global PPP0

3. Add default route

Route add default Dev ppp0

VPN is already available at this time.

If you want to disconnect the PPTP connection, end the PPTP process directly

Pkill PPTP

The above is a small set to introduce the CentOS 6.8 command line using Pptpsetup for PPTP dial-up implementation method, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

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.