2 instances on the same server but disallow cross connect

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
phille05
OpenVpn Newbie
Posts: 5
Joined: Mon Jun 06, 2016 11:48 am

2 instances on the same server but disallow cross connect

Post by phille05 » Wed Mar 25, 2020 2:29 pm

Hi All,

Maybe the Subject isn't that all clear, so I try to explain my question using an example

1 server
2 instances (A and B) running both on a different port 1194 and 1195

When I create keys for a client this client can connect to both instances, I don't want this
I want to prevent a user to connect to both, and only to 1 that I choose

The reason : I have tech users and administrative emps, it's qute obvious an office manager should not be able o connect to a tech lan :-)

User avatar
Pippin
Forum Team
Posts: 717
Joined: Wed Jul 01, 2015 8:03 am

Re: 2 instances on the same server but disallow cross connect

Post by Pippin » Wed Mar 25, 2020 2:32 pm


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

Re: 2 instances on the same server but disallow cross connect

Post by TinCanTech » Wed Mar 25, 2020 2:58 pm

I don't think he has any configs to share .. mostly on account of having not read the howto.

This is work which I can setup for a fee.

phille05
OpenVpn Newbie
Posts: 5
Joined: Mon Jun 06, 2016 11:48 am

Re: 2 instances on the same server but disallow cross connect

Post by phille05 » Wed Mar 25, 2020 3:08 pm

this shouldn't be hard to do myself, I think I need to initiate a server setup for both instance from scratch, problem is : how to create the keys

phille05
OpenVpn Newbie
Posts: 5
Joined: Mon Jun 06, 2016 11:48 am

Re: 2 instances on the same server but disallow cross connect

Post by phille05 » Wed Mar 25, 2020 3:10 pm

question has been discussed in the past, just noticed this post
viewtopic.php?t=21967

phille05
OpenVpn Newbie
Posts: 5
Joined: Mon Jun 06, 2016 11:48 am

Re: 2 instances on the same server but disallow cross connect

Post by phille05 » Thu Mar 26, 2020 8:13 am

I've been playing around a bit and actually it's very and quite simple

if you know how to start and configure all instances everything else is just a matter of 4 important files : ca.crt xxxx.pem server.key and server.crt
use these 4 files on the correct instance and simply keep using your client keys and crt

Post Reply