OpenVPN Server in Windows Server not changing IP address

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
HanMoeHtet
OpenVpn Newbie
Posts: 2
Joined: Sat Jan 21, 2023 3:36 am

OpenVPN Server in Windows Server not changing IP address

Post by HanMoeHtet » Sat Jan 21, 2023 3:58 am

Hello, I am new to OpenVPN. I have been stuck with configuring OpenVPN Server for my Windows Server 2019 data center for over a week. I have also configured NAT in Routing and Remote Access and Firewall too. The client device is also Windows. I don't know what is missing because client's IP address is not changing. I have attached some info about the server and client. Can I get some help? Thanks.

server.ovpn

port 1194
proto udp4
dev tun
ca ca.crt
cert server.crt
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 10.8.0.1"
keepalive 10 120
cipher AES-256-CBC
persist-key
persist-tun
status openvpn-status.log
verb 3
explicit-exit-notify 1


client.ovpn

client
dev tun
proto udp4
remote <my_windows_server_ip_address> 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert bgp_vpn.crt
key bgp_vpn.key
remote-cert-tls server
cipher AES-256-CBC
verb 3


My client and server logs are here. https://drive.google.com/file/d/1wxvWMb ... sp=sharing

HanMoeHtet
OpenVpn Newbie
Posts: 2
Joined: Sat Jan 21, 2023 3:36 am

Re: OpenVPN Server in Windows Server not changing IP address

Post by HanMoeHtet » Mon Jan 23, 2023 7:03 am

Ok, it's weird but I think the problem is related to how Windows handle Network config. First, exit OpenVPN GUI or related processes. Then disable NAT config in "Routing and Remote Access" if enabled before. Re-enable NAT. Then start OpenVPN GUI as administrator. Now client connection uses the server's public ip successfully. Previously, I was doing NAT config after I had started OpenVPN GUI.

Post Reply