VPN to LAN connection only
Posted: Thu Nov 09, 2023 11:28 am
Hi, I've set OpenVPN to connect directly to my work server. The LAN connection works fine but I can't browse the internet and acess websites. How do I configure it to use the internet from the client and not from the VPN?
Server Config File (Windows Server 2019 Essentials):
Client Config File (Windows Home):
Server Config File (Windows Server 2019 Essentials):
Code: Select all
port 1194
proto udp
dev tun
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
ca ca.crt
cert server.crt
key server.key
dh dh.pem
server 10.20.30.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 4
Code: Select all
client
dev tun
proto udp
remote ((dynuIP dns)) 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
disable-dco
mssfix 1420
comp-lzo
verb 4