From 13db1d4a7f99e8aa2db2acc6dca25129565a3436 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Tue, 25 Oct 2016 14:44:45 -0500 Subject: [PATCH] Improve Linux instructions - Add option "noipdefault" to fix Linux clients behind NAT - Specify VPN username and password in the config file - Combine the Ubuntu/Debian and CentOS/Fedora sections - [ci skip] --- docs/clients-zh.md | 62 ++++++++++++++++++++++++++++------------------ docs/clients.md | 62 ++++++++++++++++++++++++++++------------------ 2 files changed, 76 insertions(+), 48 deletions(-) diff --git a/docs/clients-zh.md b/docs/clients-zh.md index b79a71a..0d8eb23 100644 --- a/docs/clients-zh.md +++ b/docs/clients-zh.md @@ -154,23 +154,30 @@ Windows Phone 8.1 及以上版本用户可以尝试按照 /var/run/xl2tpd/l2tp-control +echo "c myvpn" > /var/run/xl2tpd/l2tp-control ``` 运行 `ifconfig` 并且检查输出。现在你应该看到一个新的网络接口 `ppp0`。 @@ -307,22 +328,15 @@ route del default dev ppp0 要断开连接: ``` +# Ubuntu & Debian echo "d myvpn" > /var/run/xl2tpd/l2tp-control ipsec down myvpn + +# CentOS/RHEL & Fedora +echo "d myvpn" > /var/run/xl2tpd/l2tp-control +strongswan down myvpn ``` -### CentOS & Fedora - -参照上面的 Ubuntu/Debian 部分,并进行以下改动: - -1. 使用 `yum` 而不是 `apt-get` 命令来安装软件包。 -1. 将 `ipsec up` 和 `ipsec down` 命令分别替换为 `strongswan up` 和 `strongswan down`。 -1. 文件 `ipsec.conf` 和 `ipsec.secrets` 应该保存在 `/etc/strongswan` 目录中。 - -### Other Linux - -如果你的系统提供 `strongswan` 软件包,请参见上面的两个部分。 - ## 故障排除 *其他语言版本: [English](clients.md#troubleshooting), [简体中文](clients-zh.md#故障排除).* diff --git a/docs/clients.md b/docs/clients.md index b991939..cdbb2c3 100644 --- a/docs/clients.md +++ b/docs/clients.md @@ -154,23 +154,30 @@ Users with Windows Phone 8.1 and above, try /var/run/xl2tpd/l2tp-control +echo "c myvpn" > /var/run/xl2tpd/l2tp-control ``` Run `ifconfig` and check the output. You should now see a new interface `ppp0`. @@ -306,22 +327,15 @@ route del default dev ppp0 To disconnect: ``` +# Ubuntu & Debian echo "d myvpn" > /var/run/xl2tpd/l2tp-control ipsec down myvpn + +# CentOS/RHEL & Fedora +echo "d myvpn" > /var/run/xl2tpd/l2tp-control +strongswan down myvpn ``` -### CentOS & Fedora - -Refer to the Ubuntu/Debian section above, with these changes: - -1. Use `yum` instead of `apt-get` to install packages. -1. Replace `ipsec up` and `ipsec down` with `strongswan up` and `strongswan down`, respectively. -1. The files `ipsec.conf` and `ipsec.secrets` should be saved under `/etc/strongswan`. - -### Other Linux - -If your system provides the `strongswan` package, refer to the two sections above. - ## Troubleshooting *Read this in other languages: [English](clients.md#troubleshooting), [简体中文](clients-zh.md#故障排除).*