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