LinuxVPN client settings

Source: Internet
Author: User
Download pptp-1.7.2.tar.gz logs
Download pptp-1.7.2.tar.gz
Http://pptpclient.sourceforge.net/root user upload to linux host/tmp Directory
Unzip installation: cd/tmptar xzf pptp-1.7.2.tar.gzcd pptp-1.7.2make & make install change configuration: 1. change the dialing user information file cd/etc/pppvi chap-secrets # Secrets for authentication using CHAP # client server secret IP addresses ###### redhat-config-network will overwrite this part !!! (Begin) ################ redhat-config-network will overwrite this part !!! (End) ############ username connectvpn "password" * www.2cto.com # Note: added zhangsan connectvpn "password "*, here, username is the VPN account name, "password" is the VPN account password, # connectvpn is the vpn id, the user distinguishes different VPN connections. 2. create the dial configuration file connectvpn (the above vpn id) cd/etc/ppp/peersvi connectvpn to add the following content:
Pty "pptp 166.123.10.210 -- nolaunchpppd" noauthrefuse-eaprequire-mppe-128 name usernameremotename connectvpnfile/etc/ppp/options.ppt p # where 166.123.10.210 is the IP address of the VPN server, the name field is followed by the username (VPN account name) in/etc/ppp/chap-secrets. # remotename indicates the vpn id, others keep default www.2cto.com 3. start the VPN client root and execute the following command pppd call connectvpn 4. check the dialing result. wait about 10 seconds and then run the following command to check: [root @ nms peers] # ps-ef | grep pppdroot 3617 1 0 06:40? 00:00:00 pppd call connectvpnroot 3618 3617 0? 00:00:00 pptp 166.123.10.210 -- nolaunchpppdroot 3625 1 0? 00:00:00 pptp 166.123.10.210 -- nolaunchpppdroot 3692 3514 0 00:00:00 pts/3 grep pppd 5. check the obtained vpn client IP www.2cto.com [root @ nms peers] # ifconfig ppp0ppp0 Link encap: point-to-Point Protocol inet addr: 162.11.0.5 P-t-P: 162.11.0.1 Mask: 255.255.255 up pointopoint running noarp multicast mtu: 1396 Metric: 1 RX packets: 10 errors: 0 dropped: 0 overruns: 0 frame: 0 TX packets: 8 errors: 0 dropped: 0 overruns: 0 carrier: 0 collisions: 0 txqueuelen: 3 RX bytes: 248 (248.0 B) TX bytes: 80 (80.0 B) where 162.11.0.5 is the IP address of ppp0 of the vpn client Nic. Configuration complete
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.