I have SBCs with Debian. These SBCs will send data to server (using e.g. REST), but I want to secure the connection using some VPN/tunnel and I want also to be able to remote access the SBCs for maintenance.
Now I want to set some VPN Server, which doesn't require client-specific settings (on the server side nor on the client side). I will have an complete Debian image for these SBC (which will be simply loaded using bootloader) so it will be same on each SBC. Also I don't want that anyone has to edit some setting on the server side, when new SBC is produced and connected.
Each SBC has unique hostname (from serial number).
Is there any option to achieve this? What I searched:
OpenVPN
It should be possible to achieve it. Only disadvantage is, that OVPN use CN in client certificate to identify them. So all clients will look the same on the VPN server.
SoftEth VPN
Each client need unique username.
Wireguard
Clients (peers) must be specified on server side.
SSH
I must specify port for each client.