Page 1 of 1

IP Range

Posted: Tue Oct 01, 2019 11:56 am
by derekoccland
Hi, I have setup my openvpn server on a VPS. And I controll it with the gui interface. But every time one client reconnect to vpn the ip of client incrase at 1 (for example: my ip is 172.27.248.2 i press reconnect become 172.27.248.3 etc etc) it's dangerous? Can I give you the first available ip? I had thought of setting a static ip, but then if it connects 2 devices with the same profile can it be a problem?

Thanks and sorry for my bad english

Re: IP Range

Posted: Tue Oct 01, 2019 12:36 pm
by TinCanTech
Do not use the same client certificate for all your devices.

Re: IP Range

Posted: Tue Oct 01, 2019 12:39 pm
by derekoccland
TinCanTech wrote:
Tue Oct 01, 2019 12:36 pm
Do not use the same client certificate for all your devices.
Why? Its more "comfortable" for clients

Re: IP Range

Posted: Tue Oct 01, 2019 1:19 pm
by TinCanTech
derekoccland wrote:
Tue Oct 01, 2019 12:39 pm
Its more "comfortable" for clients
No it is not .. it is just easier for a lazy admin.

For further help Please see:
viewtopic.php?f=30&t=22603

Re: IP Range

Posted: Tue Oct 01, 2019 2:49 pm
by derekoccland
TinCanTech wrote:
Tue Oct 01, 2019 1:19 pm
derekoccland wrote:
Tue Oct 01, 2019 12:39 pm
Its more "comfortable" for clients
No it is not .. it is just easier for a lazy admin.

For further help Please see:
viewtopic.php?f=30&t=22603
Okay, but if i use a one profile for device that dosent change. And i dont know i cant setup a static ip
(i follow that guide but dosent work)
https://openvpn.net/vpn-server-resource ... to-a-user/

Re: IP Range

Posted: Tue Oct 01, 2019 3:21 pm
by TinCanTech
derekoccland wrote:
Tue Oct 01, 2019 11:56 am
every time one client reconnect to vpn the ip of client incrase at 1 (for example: my ip is 172.27.248.2 i press reconnect become 172.27.248.3 etc etc)
Add --explicit-exitnotify 3 to your client config file and it will tell the server it is disconnecting and then use disconnect not reconnect.

You should also read the HOWTO:
https://community.openvpn.net/openvpn/wiki/HOWTO