laflour
Hi,
I'm looking for community advise of what could be wrong with my Windows 10 OpenVPN Server setup and why I cannot connect to OpenVPN outside LAN once I share one of the existing network connections (Wifi or other network adatter) with OpenVPN adapter.
Scenario: I want to configure OpenVPN Server so all clients who connect to OpenVPN access the internet (which is going via a Wifi or a special network adapter). I need to use the configuration that all traffic from OpenVPN clients goe via OpenVPN server.
Issues: When I use the OpenVPN Server without any network adapter shared with OpenVPN then everything works fine - both LAN clients and external clients can connect to OpenVPN Server, but those clients have no internet. I require a setup that all traffic should go via OpenVPN Server, and it goes successfully, but the default internet that is used on OpenVPN server is not picking up.
I can solve this issue by simply sharing my Wifi(or other network adapters with internet) with OpenVPN Server adapter. In this case my LAN clients have internet, but I cannot connect to OpenVPN Server outside LAN. For example, an OpenVPN Client on my mobile device stops connecting
What could be an issue and how to solve it? I just want to have clients to access a specific internet connection that I share on server
port 1194
proto udp
dev tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\server.crt"
key "C:\\Program Files\\OpenVPN\\config\\server.key"
dh "C:\\Program Files\\OpenVPN\\config\\dh2048.pem"
topology subnet
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1"
client-to-client
duplicate-cn
keepalive 10 120
cipher AES-256-CBC
max-clients 10
persist-key
persist-tun
log
openvpn.log
verb 4
explicit-exit-notify 1
client
dev tun
proto udp
remote <myserverIP> 1194
resolv-retry infinite
keepalive 5 10
nobind
persist-key
persist-tun
verb 4
ca ca.crt
cert Client1.crt
key Client1.key[/olog]