From 37c60ea43a746e50eac765bf30a77d6b6dfb00ee Mon Sep 17 00:00:00 2001 From: Tran Hau Date: Fri, 13 Mar 2020 15:06:32 +0700 Subject: [PATCH] add openvpn --- openvpn.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 openvpn.md diff --git a/openvpn.md b/openvpn.md new file mode 100644 index 0000000..437c60b --- /dev/null +++ b/openvpn.md @@ -0,0 +1,28 @@ +# OpenVPN + +Assume you use Archlinux. + +Read [OpenVPN](https://wiki.archlinux.org/index.php/OpenVPN). + +Read [The update-systemd-resolved custom script](https://wiki.archlinux.org/index.php/OpenVPN#The_update-systemd-resolved_custom_script). + +Read [update-systemd-resolved](https://github.com/jonathanio/update-systemd-resolved). + +Install [openvpn-update-systemd-resolved](https://aur.archlinux.org/packages/openvpn-update-systemd-resolved/). + +Start/enable service: + +```sh +systemctl start systemd-resolved.service + +systemctl enable systemd-resolved.service +``` + +Edit `client.opvn`: + +```txt +up /etc/openvpn/scripts/update-systemd-resolved +up-restart +down /etc/openvpn/scripts/update-systemd-resolved +down-pre +```