close

1. Install Packages
$ sudo yum install pptp pptp-setup

 

2. Config VPN Client.
$ sudo vim /etc/ppp/chap-secrets
-----------------------------------------
# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
<VPN_USERNAME>    PPTP    <VPN_PASSWORD>        *
-----------------------------------------

3. Config VPN Client.
$ sudo vim /etc/ppp/peers/<MY_VPN>
-----------------------------------------
pty "pptp <VPN_GATEWAY> --nolaunchpppd"
name <VPN_USERNAME>
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam <MY_VPN>

-----------------------------------------

 

4. Config Routing via VPN Gateway.
$ sudo vim /etc/ppp/ip-up
-----------------------------------------
......
route add -net 192.168.0.0/16 dev ppp0

exit 0
-----------------------------------------

 

5. Start VPN Client.
$ sudo pppd call <MY_VPN>

 

6. Monitor VPN Client Log.
$ sudo tail -f /var/log/messages

 

P.S. How to stop VPN Client?
$ sudo killall pppd

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 dreamtails 的頭像
    dreamtails

    雜七雜八的小筆記!

    dreamtails 發表在 痞客邦 留言(0) 人氣()