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