Page 1 of 1

IP Address Not Changing for OpenVPN Client

Posted: Mon Jun 20, 2022 12:26 pm
by ebrahimj
Hello.
I am trying to setup an OpenVPN Server on my Windows Machine. I have been able to connect to the Sever with a client on a different PC but have hit a roadblock. The IP address of the client doesn't seem to get updated and this is a requirement I need. Any guidance on this will be highly appreciated.
Here are my 'server.ovpn' and 'client.ovpn' files.

server.ovpn:

Code: Select all

port 1194
proto udp
dev tun

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 3
client.ovpn:

Code: Select all

client

dev tun

proto udp

remote <server_public_ip> 1194

resolv-retry infinite
nobind
persist-key
persist-tun

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

comp-lzo

verb 3

Re: IP Address Not Changing for OpenVPN Client

Posted: Mon Jun 20, 2022 7:02 pm
by TinCanTech
ebrahimj wrote:
Mon Jun 20, 2022 12:26 pm
I am trying to setup an OpenVPN Server on my Windows Machine
World of pain. Windows as a server is a bad idea ..

Re: IP Address Not Changing for OpenVPN Client

Posted: Tue Jun 21, 2022 7:10 am
by ebrahimj
Don't make me cry mahn. The other alternative is a Ubuntu 16 server which is no longer supported by OpenVPN(Ubuntu 16 that is).

Re: IP Address Not Changing for OpenVPN Client

Posted: Tue Jun 21, 2022 8:42 am
by TinCanTech
Then it looks like you have dug your own grave ..

If you insist on using Windows as a VPN server then see bebops posts here:
viewforum.php?f=7

You should probably properly maintain your Ubuntu Server.