Job description
Refers to setting up an OpenVPN server (aka OpenVPN subnets).
I have several client groups, and I would like the connected computers to only see those computers within their 'group'.
In principle, the ends connect to the server. Not networks.
For example:
GROUP A:
-pc1
-pc2
-pc3
GROUP B:
-pc4
-pc5
I want computers from GROUP A to be seen only by computers from GROUP A. The same applies to GROUP B, etc.
I would need some script (or a series of commands to be executed from the terminal) to 1) define a new group, 2) add a new suffix and generate openvpn files
Configure endpoints so that VPNs only use internal communication, without using the server as a gateway (internet traffic is not to pass through the OpenVPN server).
Configuration file for logging into OpenVPN network: no password required, based on key
The server is a choice (Debian, Ubuntu, CentOS, FreeBSD). Virtual on the digital ocean. Yields ssh, server is clean.