mirror of
https://codeberg.org/postscriptum/gemlog.git
synced 2026-02-19 14:32:40 +00:00
32 lines
No EOL
462 B
Text
32 lines
No EOL
462 B
Text
# Route outgoing connections to the VPN interface
|
|
|
|
Draft.
|
|
|
|
## OpenVPN
|
|
|
|
``` bash
|
|
apt install openvpn
|
|
```
|
|
|
|
## UFW
|
|
|
|
``` bash
|
|
ufw default deny outgoing
|
|
ufw allow out to VPN_IP proto udp
|
|
ufw allow out on tun0
|
|
```
|
|
* IP/udp - VPN host/protocol
|
|
* tun0 - valid local interface name
|
|
|
|
## Connect
|
|
|
|
``` bash
|
|
openvpn --config /etc/openvpn/client/config.ovpn
|
|
```
|
|
* provide auth-user-pass filepath (if required)
|
|
|
|
## Test
|
|
|
|
``` bash
|
|
host myip.opendns.com resolver1.opendns.com
|
|
``` |