Multiple Simultaneous VPN Connections


(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

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

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


(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?