VPN to LAN connection only

This forum is for admins who are looking to build or expand their OpenVPN setup.

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
oceanblue
OpenVpn Newbie
Posts: 1
Joined: Thu Nov 09, 2023 11:13 am

VPN to LAN connection only

Post by oceanblue » 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):

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
Client Config File (Windows Home):

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

Post Reply