this question is referes to the old post that I've made before about installing openvpn s2s to connect two branches.
As Stephdl advised me, i followed the link he attached : - https://wiki.contribs.org/OpenVPN_SiteToSite.
for reference :
https://forums.contribs.org/index.php/topic,53006.msg273912.html#msg273912I have main server already installed and it has ip address of 192.168.50./24 (domain is MECHDESIGN.IT, server name is MAIN) and I have two doubts of configuring the second server (ip address is 192.168.60.0/24),
1. I must configure the same userlist on this server? is there any specific configuration or just type the names and passwords in web gui (server-manager)?
you could but this is not mandatory.
I mean if you only need the tunnel to allow all the user of the two sites to access to the main server, then you do not need to have all the users also on the second server.
As an example users of site 2 might need to have their own files on server 2, and also access to main server so they wil be on both servers, while users on main site only need to access to main server and will be only on main server.
If you need to have users on both ends, there must be different way (maybe affa), but the easiest way I can think is lazy admin tools. You could backup db accounts and file shadow (with encrypted password). Then filter only the user and group you need to have on second server and restore the user accounts and password. That way you do not need to know their passwords.
https://wiki.contribs.org/Lazy_Admin_ToolsA drawback of this would user having email account on the two servers ... few way to solves this...
- delegate emails to main server so all are connecting to main server to have thei emails
- forward emails to main server on server 2 for users of main site, and smae thing in the other direction for user of site 2.
Also if they want to change their password they will need to do it twice !
2. i am willing to put the server name as PRODU. How can i configure the server name and domain name in server configuration phrase of installation.?
go to console, select configure this server. Enter domain name, then enter server name when asked.