gemlog/public/en/route-outgoing-connections-to-vpn-interface.gmi
2025-09-11 12:43:12 +03:00

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