Koozali.org: home of the SME Server

Two Sme servers in remote office

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Two Sme servers in remote office
« on: April 14, 2017, 03:22:40 PM »
We have one sme server in our office (let's say Server A). It configured as a Gateway server and local user credentials are saved in this server. Other offices use OpenVpn bridge to connect to this server and save data on ibays.

We have planned to serve a server with Sme serve 9.x  at one office to save relevant documents needed by them. Can i configure this new server to always connected to Server A using Openvpn, then all users in two offices can share files between them.? how to configure this server to implement this senario? What about user loggin process then?

guest22

Re: Two Sme servers in remote office
« Reply #1 on: April 14, 2017, 04:33:40 PM »
Maybe you want to take a look at Nextcloud federation..?

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Two Sme servers in remote office
« Reply #2 on: April 14, 2017, 04:42:05 PM »
I don't think other softwares are needed. But i want to get the fully instructed and recommended help from Contrib products.

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Two Sme servers in remote office
« Reply #3 on: April 14, 2017, 05:18:10 PM »
Can i configure this new server to always connected to Server A using Openvpn, then all users in two offices can share files between them.? how to configure this server to implement this senario? What about user loggin process then?

this is what openvpn-s2s is designed : https://wiki.contribs.org/OpenVPN_SiteToSite

I suppose that you must share the same list of users between the two servers, I must say I never played with this contribs
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Two Sme servers in remote office
« Reply #4 on: April 14, 2017, 05:25:50 PM »
Ok i will pay attention to this answer. And I want to know that if I implement this s2s environment, the users who are not in this relevant two offices (where there is no server) can connect with their normal openvpn logging method?

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Two Sme servers in remote office
« Reply #5 on: April 14, 2017, 09:14:12 PM »
S2s works on the port 1195 and open-vpn bridge on 1194

You can use both at the same time
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Two Sme servers in remote office
« Reply #6 on: April 15, 2017, 07:38:56 AM »
Ok stephdl. Thanks very much foe the advise. I will begin to implement it and let you know. Have a nice day

Offline Jean-Philippe Pialasse

  • *
  • 2,763
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Two Sme servers in remote office
« Reply #7 on: April 15, 2017, 05:12:48 PM »
I have a network of sme server on multiple site using openvpn-s2s. I also have roadwarriors connecting to main site with bridge. Also i have the routed contribs installed to help ios client to connect, as this is the only openvpn protocol they allow.

All working together greatly !


Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Two Sme servers in remote office
« Reply #8 on: April 18, 2017, 09:28:29 AM »
Here I am again, one of my friend (who is also new to Sme server) suggesting me to configure an ip-address range which is in the same subnet, to the openvpn bridge (eg: local ip address range 192.168.200.200-192.168.200.250, openvpn bridge range 192.168.200.50-192.168.200.100). My question is, which will be cause to speed the openvpn or damage the anatomy of structure of Opnvpn? :-( :-( :-(

guest22

Re: Two Sme servers in remote office
« Reply #9 on: April 18, 2017, 09:30:39 AM »
smnirosh, could you please try to create a schema drawing? It would help for clarity and could then be used as an example.

TIA

https://www.draw.io/

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Two Sme servers in remote office
« Reply #10 on: April 18, 2017, 09:54:21 AM »
Indeed, a schema could help us understand what you want to achieve. There are 2 different VPN involved here, and which are completely independant: OpenVPN Site to Site canill be used to setup a permanent VPN between 2 SME servers. OpenVPN Bridge is for clients to connect on one of the SME (but will be able to reach the second one through the permanent, s2s connection too)
C'est la fin du monde !!! :lol:

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Two Sme servers in remote office
« Reply #11 on: April 18, 2017, 10:14:11 AM »
I have attached my network backbone. As explained by Daniel, I am clear with idea. But I want to know is it ok to configure openvpn bridge ip range as same range as LAN side of the server? Same ip range for server (subnet) and same ip range for openvpn (subnet)

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Two Sme servers in remote office
« Reply #12 on: April 18, 2017, 11:30:11 AM »
By design, in bridge mode, you must configure an IP range on the same subnet as the LAN. Just be sure to use a separated range from the standard DHCP. Eg DHCP use 192.168.200.10-192.168.200.50 and VPN 192.168.200.51-192.168.200.80

Note: on your schema, it doesn't make a lot of sense 192.168.200.50/24 and 192.168.200.200/24. Both of those are the same as 192.168.200.0/24
C'est la fin du monde !!! :lol:

guest22

Re: Two Sme servers in remote office
« Reply #13 on: April 18, 2017, 11:32:51 AM »
Note: on your schema, it doesn't make a lot of sense 192.168.200.50/24 and 192.168.200.200/24. Both of those are the same as 192.168.200.0/24


I was looking at that, a complete subnet notation should be 192.168.200.0/24 and NOT specify the complete IP address. Right?

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Two Sme servers in remote office
« Reply #14 on: April 18, 2017, 11:36:15 AM »
I was looking at that, a complete subnet notation should be 192.168.200.0/24 and NOT specify the complete IP address. Right?

Technically it should yes.
C'est la fin du monde !!! :lol:

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Two Sme servers in remote office
« Reply #15 on: April 18, 2017, 11:42:22 AM »
Ok I got an answer. Thanks very much.

guest22

Re: Two Sme servers in remote office
« Reply #16 on: April 18, 2017, 11:52:12 AM »
?

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Two Sme servers in remote office
« Reply #17 on: April 18, 2017, 12:37:25 PM »
 :-?