首先需要您提供一台Linux环境的服务器或是VPS服务器, 可以是 Fedora Centos 或者 Debian Ubuntu等环境. 服务器提供商必须需要支持当前应该配置的服务. 提供服务之前请扫描下面的图片添加我的微信. 您只需要提供以下资料给我们即可. 1: IP (服务器公网IP) 2: Root username in Password (Root权限用户名和登录密码) 3: Port…
原创内容,转载请注明出处:https://www.myzhenai.com.cn/post/2007.html https://www.myzhenai.com/thread-17436-1-1.html
网络上有很多VPN一键安装脚本,好多功能也比这个脚本强大和简单,但这个是我练习Linux Shell编程自己写出来的脚本代码,说分享也好,记录也罢,发出来与大家共同学习探讨. 欢迎大家指教.谢谢.
目前脚本只适用于CenTos6,因为在识别系统版本上我还搞不懂,我的本意是自动识别系统版本,然后下载安装相应版本的epel源,但还有待学习.
其实安装PPTP真的是很简单,可以参考https://www.myzhenai.com.cn/post/871.html
Jan 22 19:09:40 localhost nautilus: [N-A] Nautilus-Actions Menu Extender 2.30.3 initializing…
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost pppd[2023]: Terminating on signal 15
Jan 22 19:09:45 localhost pppd[2023]: Connect time 0.5 minutes.
Jan 22 19:09:45 localhost pppd[2023]: Sent 2408 bytes, received 4087 bytes.
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost dbus: [system] Rejected send message, 2 matched rules; type=”error”, sender=”:1.1″ (uid=0 pid=2007 comm=”NetworkManager) interface=”(unset)” member=”(unset)” error name=”org.freedesktop.DBus.Error.UnknownMethod” requested_reply=0 destination=”:1.6″ (uid=0 pid=2023 comm=”/usr/sbin/pppd))
Jan 22 19:09:45 localhost dbus: [system] Rejected send message, 2 matched rules; type=”error”, sender=”:1.1″ (uid=0 pid=2007 comm=”NetworkManager) interface=”(unset)” member=”(unset)” error name=”org.freedesktop.DBus.Error.UnknownMethod” requested_reply=0 destination=”:1.6″ (uid=0 pid=2023 comm=”/usr/sbin/pppd))
Jan 22 19:09:45 localhost pppd[3126]: Warning: can’t open options file /root/.ppprc: Permission denied
Jan 22 19:09:45 localhost pppd[3126]: Plugin rp-pppoe.so loaded.
Jan 22 19:09:45 localhost pppd[3126]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost pppd[3126]: Plugin /usr/lib/pppd/2.4.5/nm-pppd-plugin.so loaded.
Jan 22 19:09:45 localhost dbus: [system] Rejected send message, 2 matched rules; type=”error”, sender=”:1.1″ (uid=0 pid=2007 comm=”NetworkManager) interface=”(unset)” member=”(unset)” error name=”org.freedesktop.DBus.Error.UnknownMethod” requested_reply=0 destination=”:1.6″ (uid=0 pid=2023 comm=”/usr/sbin/pppd))
Jan 22 19:09:45 localhost pppd[2023]: Connection terminated.
Jan 22 19:09:45 localhost dbus: [system] Rejected send message, 2 matched rules; type=”error”, sender=”:1.1″ (uid=0 pid=2007 comm=”NetworkManager) interface=”(unset)” member=”(unset)” error name=”org.freedesktop.DBus.Error.UnknownMethod” requested_reply=0 destination=”:1.6″ (uid=0 pid=2023 comm=”/usr/sbin/pppd))
Jan 22 19:09:45 localhost pppd[3126]: pppd 2.4.5 started by root, uid 0
Jan 22 19:09:45 localhost dbus: [system] Rejected send message, 2 matched rules; type=”error”, sender=”:1.1″ (uid=0 pid=2007 comm=”NetworkManager) interface=”(unset)” member=”(unset)” error name=”org.freedesktop.DBus.Error.UnknownMethod” requested_reply=0 destination=”:1.6″ (uid=0 pid=2023 comm=”/usr/sbin/pppd))
Jan 22 19:09:45 localhost pppd[3126]: PPP session is 9892
Jan 22 19:09:45 localhost pppd[3126]: Connected to 00:46:4b:ad:da:b6 via interface eth0
Jan 22 19:09:45 localhost pppd[3126]: Using interface ppp0
Jan 22 19:09:45 localhost pppd[3126]: Connect: ppp0 < --> eth0
Jan 22 19:09:45 localhost pppd[2023]: Exit.
Jan 22 19:09:45 localhost pppd[3126]: Remote message: Authentication success,Welcome!
Jan 22 19:09:45 localhost pppd[3126]: PAP authentication succeeded
Jan 22 19:09:45 localhost pppd[3126]: peer from calling number 00:46:4B:AD:DA:B6 authorized
Jan 22 19:09:45 localhost pppd[3126]: local IP address 112.66.50.113
Jan 22 19:09:45 localhost pppd[3126]: remote IP address 112.66.50.1
Jan 22 19:09:45 localhost pppd[3126]: primary DNS address 202.100.199.8
Jan 22 19:09:45 localhost pppd[3126]: secondary DNS address 202.100.192.68
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:45 localhost NetworkManager[2007]:
Jan 22 19:09:46 localhost NetworkManager[2007]:
Jan 22 19:09:46 localhost NetworkManager[2007]:
Jan 22 19:09:46 localhost NetworkManager[2007]:
Jan 22 19:09:46 localhost NetworkManager[2007]:
Jan 22 19:09:47 localhost tpvmlpd2[3198]: device type not supported
Jan 22 19:09:50 localhost NetworkManager[2007]:
Jan 22 19:09:50 localhost NetworkManager[2007]:
Jan 22 19:09:50 localhost NetworkManager[2007]:
Jan 22 19:09:50 localhost NetworkManager[2007]:
Jan 22 19:09:50 localhost NetworkManager[2007]:
Jan 22 19:09:50 localhost NetworkManager[2007]:
Jan 22 19:09:50 localhost NetworkManager[2007]:
Jan 22 19:09:50 localhost NetworkManager[2007]:
Jan 22 19:09:50 localhost NetworkManager[2007]:
Jan 22 19:10:02 localhost tpvmlpd2[3223]: device type not supported
Jan 22 19:10:17 localhost tpvmlpd2[3227]: device type not supported
Jan 22 19:10:32 localhost tpvmlpd2[3231]: device type not supported
Jan 22 19:10:47 localhost tpvmlpd2[3235]: device type not supported
这几天自己上了一台Buyvm位于圣何塞节点的VPS服务器,只用来练习安装调试Openvpn和Pptpd科V学P上N网用的,折腾了两天才弄好Openvpn和Pptpd一起能上网,本来第一次安装Pptpd的时候就已经可以正常使用Pptpd了,但后来安装Openvpn的时候却发现Openvpn不能连接,同时Pptpd能连接但却不能上网了,没办法,只能是一步一步的往后逆,想看看哪步出问题了,但最后还是决定卸掉Openvpn看是不是安装这个出的问题,可是没留神,把Centos5卸崩了,只得重新安装系统.下面就详细说一下我折腾的方法与经验,以便对有需要的朋友们有所帮助.如果您认为有用的话,请回复个支持一下,转载的话,也请您注明文章出处地址,谢谢了.
转载请注明出处:https://www.myzhenai.com/thread-15104-1-1.html https://www.myzhenai.com.cn/post/767.html
我的系统配置是Centos6+GNOME+NetworkManager,为了一个VPN终端,我是折腾了好久了,命令行下的折腾好了,却发现NetworkManager却始终无法正常使用.可以新建VPN链接,但无法使用,无法新建pptp通道协议VPN.原来是NetworkManager-vpnc,NetworkManager-pptp,NetworkManager-openvpn这三个插件无法安装,Centos的依赖太严格了,提示少了libnm-util.so.2,libgdk-3.so.0,libnm-glib.so.4,libnm_glib_vpn.so.0,libnm_glib.so.0,libnm-util.so.2,libgdk-3.so.0,libgtk-3.so.0等依赖包.折腾了好久才折腾好,不过是换了个方式解决的.
1.安装包
yum -y install ppp
yum -y install pptp
2.配置文件
vi /etc/ppp/chap-secrets
——————————————
# Secrets for authentication using CHAP
# client server secret IP addresses
username myvpn “password” *
——————————————