discussions icon indicating copy to clipboard operation
discussions copied to clipboard

How do you change OpenVPN IP pool assigned to interface (tun0,tun1) and clients?

Open duncanngenda opened this issue 5 years ago • 0 comments

Hello, My OpenVPN client already has several interfaces that are on the 10.0.0.0 subnet and this is causing routing issues. I would like to use the 172.0.0.1 subnet for OpenVPN. To do so I assumed changing the server lines in server.conf and server-udp.conf lines would do the trick. See illustration below:

server 10.8.0.0 255.255.255.0 -----> server 172.18.0.0 255.255.255.0 push "dhcp-option DNS 10.8.0.1" ------> push "dhcp-option DNS 172.18.0.1"

Restarted OpenVPN, no errors.

However, when I have a look at the tun interfaces they still contain the old IP (10.8.0.1,10.9.0.1)

What am I missing/doing wrong?

Thanks

Duncan

duncanngenda avatar Mar 30 '19 20:03 duncanngenda