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
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.