connect openvpn

main
Tran Hau 2020-03-13 15:19:30 +07:00
parent 37c60ea43a
commit 1e01b90c56
1 changed files with 9 additions and 1 deletions

View File

@ -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
```