Multiple Simultaneous VPN Connections

vpn
v7

(Captain Bollocks) #1

NethServer Version: NethServer release 7.4.1708
Module: VPN

Is it possible to enable duplicate-cn on Nethserver? I often connect my phone and several desktops at the same time. However, whenever the second connection is established, the previous connection is dropped.

Alternately, I am experimenting with VPN-Only accounts. However, I am unable to figure out how to set a username/password for those accounts. Do I need to switch the vpn server over to certificate-only authentication to use these accounts?

Thank you! Love the software.


(Markus Neuberger) #2

Hi @alienhead,

It should be possible with a custom template (this example writes duplicatecn to host-to-net.conf) but I didn’t try it:

mkdir -p /etc/e-smith/templates-custom/etc/openvpn/host-to-net.conf

Create /etc/e-smith/templates-custom/etc/openvpn/host-to-net.conf/91duplicatecn with your favourite editor:

# 91duplicatecn
duplicatecn

Expand the template with expand-template /etc/openvpn/host-to-net.conf

Apply the changes with signal-event nethserver-openvpn-update

Source:

http://docs.nethserver.org/projects/nethserver-devel/en/v7/nethserver-openvpn.html#templates
http://docs.nethserver.org/projects/nethserver-devel/en/v7/templates.html


(Michael Kicks) #3

I suggest you to not use duplicate-cn.
If desktops are in the same subnet, consider for an endpoint VPN into that subnet (another nethserver via IPsec, for example, or a cheap IPSec-enable router).
Or create one account for every device you need for connect to your NethServer.

Another way could be use the other way around: are the applications that you are using possibly being secured with an higher-security protocol?