-
依赖 xl2tpd iproute,之前安装过的 ZJUvpn 包最好先删除。
-
安装完成后,首先运行
vpn4zju -cfg配置VPN帐号。 -
连接请运行
systemctl start vpn4zju.service;
直接运行脚本,需手动处理 xl2ptd 服务。 -
开机自动连接。
为了确保在连内网之后再拨VPN,需要添加依赖到文件
/etc/systemd/system/vpn4zju.service.d/customdependency.conf[Unit] Requires=new dependency After=new dependency具体请根据网络环境填写, 一个参考。
举例:systemd-networkd处理固定IP就写systemd-networkd-wait-online.service。最后
systemctl enable vpn4zju。 -
日志查看,
journalctl -u vpn4zjuandjournalctl -u xl2tpd. -
默认
PPP device是ppp0或ppp1, 如果系统中ppp打过布丁 pppd: allow use of arbitrary interface names 可修改/etc/ppp/options.xl2tpd.zju, 设置ifname. 如设置ifname zjuvpn之后PPP device就变成zjuvpn.[$] sudo vpn4zju -c [MSG] Trying to bring up VPN... 1 secs... Done! [MSG] Detected gateway: 10.12.74.1, PPP device: zjuvpn [MSG] Setting up route table... Done!
-
python 脚本
zjuwlan, 用于登录无线.zjuwlan -h查看使用帮助. 依赖keyring存用户名、密码,requests发送请求. 配合wicd可在连接无线后自动登录.
-
Notifications
You must be signed in to change notification settings - Fork 4
shmilee/vpn4zju
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|