Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Currently my openvpn server has ip address 10.8.0.1. I want to change it to 10.9.0.1. I tried changing the following lines in server.conf

# Configure server mode and supply a VPN subnet
# for OpenVPN to draw client addresses from.
# The server will take 10.8.0.1 for itself,
# the rest will be made available to clients.
# Each client will be able to reach the server
# on 10.8.0.1. Comment this line out if you are
# ethernet bridging. See the man page for more info.
server 10.9.0.0 255.255.255.0

But when I restart OpenVPN it is still getting the address 10.8.0.1. Is this the right way to do it?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You're doing it all right. Make sure that this address is not overridden later in the configuration file.

You should restart openVPN by executing:

sudo /etc/init.d/openvpn restart

Restarting server.conf only is possible with:

sudo /etc/init.d/openvpn restart server
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.