Linux配置vpn服务端:http://note.t4x.org/environment/archlinux-vpn-pptpd/.
客户端:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
[root@hz ~]# yum install pptp pptp-setup [root@hz ~]# pptpsetup --create vpn --server x.x.x.x --username byrd --password xxxxxx --encrypt --start Using interface ppp0 Connect: ppp0 <--> /dev/pts/1 CHAP authentication succeeded MPPE 128-bit stateless compression enabled local IP address 192.168.0.234 remote IP address 192.168.0.1 [root@hz ~]# pptpsetup --delete vpn [root@hz ~]# ll /etc/ppp/peers/ total 8 -rw-r--r-- 1 root root 149 Apr 28 10:37 vpn [root@hz ~]# ifconfig ppp0 Link encap:Point-to-Point Protocol inet addr:192.168.0.234 P-t-P:192.168.0.1 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1496 Metric:1 RX packets:6 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:60 (60.0 b) TX bytes:66 (66.0 b) [root@hz ~]# pppd call vpn #拨号vpn [root@hz ~]# killall pppd |
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!