So I have successfully installed OpenVPN on my VPS Windows Server 2022. I can connect but I am unable to connect to the internet with the VPN on. My goal is to use my VPS as a geolocation VPN as well as to be able to connect my different clients from a few locations in the world and be able to work as in a LAN, sharing files etc.
Please see my config files below.
Server Config
port 1194
proto udp
dev tun
mode server
ca ca.crt
cert server.crt
key server.key
dh dh.pem
server 10.8.0.0 255.255.255.0
client-to-client
comp-lzo
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
persist-key
persist-tun
status openvpn-status.log
verb 3
Client Config
client
dev tun
proto udp
remote "MYHOSTNAME"
port 1194
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
push “redirect-gateway def1”
client-to-client
persist-key
persist-tun
ca ca.crt
cert client01.crt
key client01.key
cipher AES-256-CBC
comp-lzo
verb 3
mute 20
I am assuming that it has something to do with routing but I have no idea how to set it up.
Any assistance would be greatly appreciated.
Thanks!
Andrew