Help needed with configuration on Windows; no internet when connected

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
sk0003
OpenVpn Newbie
Posts: 1
Joined: Sun Jun 12, 2022 5:30 pm

Help needed with configuration on Windows; no internet when connected

Post by sk0003 » Sun Jun 12, 2022 5:39 pm

Hello,

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

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: Help needed with configuration on Windows; no internet when connected

Post by TinCanTech » Tue Jun 14, 2022 7:37 pm

sk0003 wrote:
Sun Jun 12, 2022 5:39 pm
I have successfully installed OpenVPN on my VPS Windows Server 2022
Why Windblows ? Linux is so much better.

If you must use that OS then see bebop's posts here: viewforum.php?f=7

Post Reply