mirror of
https://codeberg.org/postscriptum/gemlog.git
synced 2026-02-19 14:32:40 +00:00
initial commit
This commit is contained in:
commit
259fee630b
127 changed files with 7811 additions and 0 deletions
32
public/en/route-outgoing-connections-to-vpn-interface.gmi
Normal file
32
public/en/route-outgoing-connections-to-vpn-interface.gmi
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# 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
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue