User & Settings sync between multiple non clustered VPN srvs

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
SeventhSin
Posts: 9
Joined: Mon Sep 19, 2016 2:52 pm

User & Settings sync between multiple non clustered VPN srvs

Post by SeventhSin » Mon Sep 19, 2016 3:15 pm

Hello guys (and girls).

I want to create an IPSEC/L2TP VPN network, containing multiple servers for horizontal elasticity. As you well know, IPSEC/L2TP does not support redirection, therefore the clustering functionality offered by EtherSoft Server out of the box can't be used.

Now imagine 3 virtual machines, each running a VPN server instance. What is the easiest way to share a configuration file among these machines, so that a modification performed on one server gets reflected in the the other servers settings ? Is this even achievable ?

raafat
Posts: 223
Joined: Fri Jul 03, 2015 2:21 pm

Re: User & Settings sync between multiple non clustered VPN

Post by raafat » Wed Sep 21, 2016 12:33 am

SeventhSin wrote:
> Hello guys (and girls).
>
> I want to create an IPSEC/L2TP VPN network, containing multiple servers for
> horizontal elasticity. As you well know, IPSEC/L2TP does not support
> redirection, therefore the clustering functionality offered by EtherSoft
> Server out of the box can't be used.

May you explain more about this ?

SeventhSin
Posts: 9
Joined: Mon Sep 19, 2016 2:52 pm

Re: User & Settings sync between multiple non clustered VPN

Post by SeventhSin » Wed Sep 21, 2016 3:43 pm

Yes, it means that I have multiple virtual machines, each one of them provisioned with an SoftEther Server installation.

These VMs come online or go offline based on vpn user activity: more users online - more machines, less users online - less machines.

Now, each vpn server is configured for IPSEC/L2TP, which means I cannot cluster them to share the users and settings between instances.

My question is: is it possible to have these machines replicate their settings and users to each other or use some sort of central repository (like a database or common config file) that can be shared among instances ?

I hope this clears it up.

SeventhSin
Posts: 9
Joined: Mon Sep 19, 2016 2:52 pm

Re: User & Settings sync between multiple non clustered VPN

Post by SeventhSin » Thu Sep 22, 2016 1:08 am

Never mind, I just noticed one could use RADIUS authentication.

raafat
Posts: 223
Joined: Fri Jul 03, 2015 2:21 pm

Re: User & Settings sync between multiple non clustered VPN

Post by raafat » Thu Sep 22, 2016 4:04 pm

SeventhSin wrote:

>
> Now, each vpn server is configured for IPSEC/L2TP, which means I cannot
> cluster them to share the users and settings between instances.

Where did you get that from ?. Enabling L2TP/IPSec function results in preventing you from clustering SE servers. Or may be I understood you incorrectly ):.

SeventhSin
Posts: 9
Joined: Mon Sep 19, 2016 2:52 pm

Re: User & Settings sync between multiple non clustered VPN

Post by SeventhSin » Thu Sep 29, 2016 7:40 am

The sharing of user data comes built in SE's clustering functionality. As I mentioned, I do know it is not supported for IPSEC/L2TP connections due to lack of redirection support in those protocols. SE's clustering capabilities are *much more* than mere sharing of user settings though.

Since sharing user data between instances != clustering, my question pertained to alternative solutions, like for example the possibility to share a database between instances.

I hope this clarifies what I asked. :)

raafat
Posts: 223
Joined: Fri Jul 03, 2015 2:21 pm

Re: User & Settings sync between multiple non clustered VPN

Post by raafat » Fri Sep 30, 2016 10:40 am

Hello There!. you didn't answer my question (:. you said, in meaning, "Enabling L2TP/IPSec function results in preventing you from clustering SE servers. ", right ?, if it's right, my second question : Where did you get that information from ?.



Good luck (:

SeventhSin
Posts: 9
Joined: Mon Sep 19, 2016 2:52 pm

Re: User & Settings sync between multiple non clustered VPN

Post by SeventhSin » Fri Sep 30, 2016 1:27 pm

raafat wrote:
> Hello There!. you didn't answer my question (:.
> Where did you get that information from ?.

> Good luck (:

Sorry about that, I was distracted. :)

Here you go:
http://www.vpnusers.com/viewtopic.php?p=2679

raafat
Posts: 223
Joined: Fri Jul 03, 2015 2:21 pm

Re: User & Settings sync between multiple non clustered VPN

Post by raafat » Fri Sep 30, 2016 1:40 pm

Are you looking for a load-balancing or fail-over functionality ?

moatazelmasry
Posts: 336
Joined: Sat Aug 15, 2015 7:41 pm

Re: User & Settings sync between multiple non clustered VPN

Post by moatazelmasry » Sun Oct 02, 2016 6:04 pm

Hi all,

@rafaat. Yes. Enabling L2TP functionality automatically prevents you from using Clustering. Try this in the GUI

@SeventhSin. I had a similar issue, and here's how I solved it by saving the settings into a database. Here are the details:
- I wrote a nodejs program that is able to save and load vpn_server.config file into a mysql database
- Any configuration changes, I do directly into the database
- When a new VPN server comes up, it generates the configuration from the DB
- When the configurations in the DB are changed, I fire a small program that stops the VPN server, regenrates the configuration then starts the server. DO NOT rewrite the configuration while the server is running, because SoftEther will rewrite your file

Nevertheless, these servers can't be 100% in sync. They differ in counters, stats etc.., but this was unimportant for me

Cheers
Moataz

SeventhSin
Posts: 9
Joined: Mon Sep 19, 2016 2:52 pm

Re: User & Settings sync between multiple non clustered VPN

Post by SeventhSin » Wed Oct 05, 2016 12:23 pm

Thank you all for chiming in.

I ended up going for another technology capable to offer me the capabilities sought for.

moatazelmasry
Posts: 336
Joined: Sat Aug 15, 2015 7:41 pm

Re: User & Settings sync between multiple non clustered VPN

Post by moatazelmasry » Wed Oct 05, 2016 5:53 pm

Which technology is that?

Post Reply