Page 1 of 1

OpenVPN client can not use the internet IP from openvpn server for internet access

Posted: Mon Nov 20, 2023 2:22 pm
by piaakit
Dear All,

i'm new in Openvpn, and currently i installed openvpn on server 2019 std in routing mode, my openvpn client could connect to the server, but the client computer still accessing the internet locally whereas using the openvpn server IP for internet access, in the openvpn server side i have enabled
ICS and checked allow other network users to connect through this computer's internet connection - with "openVPN TAP-windows6" selected under home networking connection, and edited the registry "Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" - IPEnableRouter value from 0 to 1, but still no luck, any help would be appreicated


and below is the config file:

Server.ovpn

port 1194
proto udp
dev tun

ca ca.crt
cert server.crt
key server.key
dh dh.pem

server 10.0.1.0 255.255.255.0
ifconfig-pool-persist ipp.txt

keepalive 10 120

comp-lzo

persist-key
persist-tun

status openvpn-status.log

verb 3




Client.ovpn

client

dev tun

proto udp

remote openvpn ip 1194

resolv-retry infinite
nobind
persist-key
persist-tun

ca ca.crt
cert client01.crt
key client01.key

comp-lzo

verb 3


Keith