Get a new IP from OpenVPN server?

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
sdfsdfsdf
OpenVpn Newbie
Posts: 11
Joined: Tue Nov 15, 2011 4:43 pm

Get a new IP from OpenVPN server?

Post by sdfsdfsdf » Tue Nov 15, 2011 4:44 pm

first of all: Its quite strange, that I have to register at openvpn.net just to be linked to forums.openvpn.net to register again....

Everytime I connect to the OVPN Server, I get the same IP. Is there a config-entry or something else to ask for a new one? or is this handling done by the server and can not be influenced by the client at all?

thank you

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Get a new IP from OpenVPN server?

Post by janjust » Tue Nov 15, 2011 6:21 pm

in general this handling is done by the OpenVPN server ; the client cannot (should not!) be able to really influence this, other than to present a different certificate.

sdfsdfsdf
OpenVpn Newbie
Posts: 11
Joined: Tue Nov 15, 2011 4:43 pm

Re: Get a new IP from OpenVPN server?

Post by sdfsdfsdf » Tue Nov 15, 2011 7:45 pm

but why is this the case? Who wants static IPs (beside from server usage) :) - is it possible for the administrator to change that behaviour?

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Get a new IP from OpenVPN server?

Post by janjust » Wed Nov 16, 2011 12:22 am

the admin can change this behaviour using a 'client-connect' script; normally the server will try to assign the same IP address to the same client. The reason for this is that most connections will automatically be re-established, should the VPN drop out for a few seconds.

sdfsdfsdf
OpenVpn Newbie
Posts: 11
Joined: Tue Nov 15, 2011 4:43 pm

Re: Get a new IP from OpenVPN server?

Post by sdfsdfsdf » Wed Nov 16, 2011 6:53 am

a 'client-connect' script ? what would this look like?!

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Get a new IP from OpenVPN server?

Post by janjust » Wed Nov 16, 2011 11:44 am

read the manual page, or better yet, buy my book :mrgreen:

dayknight
OpenVpn Newbie
Posts: 12
Joined: Tue May 01, 2012 3:24 pm

Re: Get a new IP from OpenVPN server?

Post by dayknight » Sun May 13, 2012 10:16 pm

if i buy your book - will you answer more thoroughly :lol:

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Get a new IP from OpenVPN server?

Post by janjust » Mon May 14, 2012 6:52 am

sure, but I won't have to - it's all explained in chapter 6 8-)

Post Reply