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
IP Range
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: IP Range
Do not use the same client certificate for all your devices.
-
- OpenVpn Newbie
- Posts: 6
- Joined: Tue Oct 01, 2019 11:51 am
Re: IP Range
Why? Its more "comfortable" for clientsTinCanTech wrote: ↑Tue Oct 01, 2019 12:36 pmDo not use the same client certificate for all your devices.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: IP Range
No it is not .. it is just easier for a lazy admin.
For further help Please see:
viewtopic.php?f=30&t=22603
-
- OpenVpn Newbie
- Posts: 6
- Joined: Tue Oct 01, 2019 11:51 am
Re: IP Range
Okay, but if i use a one profile for device that dosent change. And i dont know i cant setup a static ipTinCanTech wrote: ↑Tue Oct 01, 2019 1:19 pmNo it is not .. it is just easier for a lazy admin.
For further help Please see:
viewtopic.php?f=30&t=22603
(i follow that guide but dosent work)
https://openvpn.net/vpn-server-resource ... to-a-user/
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: IP Range
Add --explicit-exitnotify 3 to your client config file and it will tell the server it is disconnecting and then use disconnect not reconnect.derekoccland wrote: ↑Tue Oct 01, 2019 11:56 amevery 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)
You should also read the HOWTO:
https://community.openvpn.net/openvpn/wiki/HOWTO