This commit is contained in:
nihilist 2025-05-07 09:12:05 +02:00
parent 9c49c6bef5
commit 341c24852e
9 changed files with 17 additions and 107 deletions

View file

@ -146,7 +146,7 @@ But as you can see it checks it by pinging 10.8.0.1, the OpenVPN server IP, mean
Then we get the .ovpn file and modify it (if you want to see how to make a openvpn server, see it [here](../../selfhosting/ovpn/index.md)) the only requirement here is that you will need to setup the openvpn server to work on TCP, and not UDP as it is set by default. Why? because it will need to go through tor:
Then we get the .ovpn file and modify it. the only requirement here is that you will need to setup the openvpn server to work on TCP, and not UDP as it is set by default. Why? because it will need to go through tor:
root@mail:~# vim mail.ovpn
@ -336,8 +336,16 @@ And now our mail server uses the remote server as a VPN server, but only through
Then we setup the mail itself on the local mail VM which is now connected to the VPN:
root@mail:~# apt update -y ; apt upgrade -y ; apt install vim tmux curl certbot python3-certbot-nginx nginx -y
root@mail:~# apt update -y ; apt upgrade -y ; apt install vim tmux curl certbot python3-certbot-nginx nginx -y
Then install openvpn on the remote server using angristan's openvpn install script (make sure that it is running on a TCP port, otherwise you wont be able to force the openvpn connection through Tor, since it's a TCP-only protocol:
```
curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh
chmod +x openvpn-install.sh
./openvpn-install.sh
```
Then we make sure that the ports are forwarded through the vpn connection:
@ -400,7 +408,7 @@ Dont forget to allow ip forwarding on the vpn server:
→ sysctl net.ipv4.ip_forward=1
net.ipv4.ip_forward = 1
Then you make sure that your DNS records are set properly: