From 1e01b90c56a9fe2db6cd69a96060f4278b435367 Mon Sep 17 00:00:00 2001 From: Tran Hau Date: Fri, 13 Mar 2020 15:19:30 +0700 Subject: [PATCH] connect openvpn --- openvpn.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/openvpn.md b/openvpn.md index 437c60b..3d77acc 100644 --- a/openvpn.md +++ b/openvpn.md @@ -8,6 +8,8 @@ Read [The update-systemd-resolved custom script](https://wiki.archlinux.org/inde Read [update-systemd-resolved](https://github.com/jonathanio/update-systemd-resolved). +Read [Connecting To Access Server With Linux](https://openvpn.net/vpn-server-resources/connecting-to-access-server-with-linux/). + Install [openvpn-update-systemd-resolved](https://aur.archlinux.org/packages/openvpn-update-systemd-resolved/). Start/enable service: @@ -18,7 +20,7 @@ systemctl start systemd-resolved.service systemctl enable systemd-resolved.service ``` -Edit `client.opvn`: +Edit `client.ovpn`: ```txt up /etc/openvpn/scripts/update-systemd-resolved @@ -26,3 +28,9 @@ up-restart down /etc/openvpn/scripts/update-systemd-resolved down-pre ``` + +Connect: + +```sh +sudo openvpn --config /path/to/client.ovpn --auth-user-pass --auth-retry interact +```