IP Range

Need help configuring your VPN? Just post here and you'll get that help.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
derekoccland
OpenVpn Newbie
Posts: 6
Joined: Tue Oct 01, 2019 11:51 am

IP Range

Post by derekoccland » Tue Oct 01, 2019 11:56 am

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

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 6145
Joined: Fri Jun 03, 2016 1:17 pm

Re: IP Range

Post by TinCanTech » Tue Oct 01, 2019 12:36 pm

Do not use the same client certificate for all your devices.

derekoccland
OpenVpn Newbie
Posts: 6
Joined: Tue Oct 01, 2019 11:51 am

Re: IP Range

Post by derekoccland » Tue Oct 01, 2019 12:39 pm

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

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 6145
Joined: Fri Jun 03, 2016 1:17 pm

Re: IP Range

Post by TinCanTech » 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

derekoccland
OpenVpn Newbie
Posts: 6
Joined: Tue Oct 01, 2019 11:51 am

Re: IP Range

Post by derekoccland » Tue Oct 01, 2019 2:49 pm

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/

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 6145
Joined: Fri Jun 03, 2016 1:17 pm

Re: IP Range

Post by TinCanTech » Tue Oct 01, 2019 3:21 pm

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

Post Reply