zehome / MLVPN

Multi-link VPN (ADSL/SDSL/xDSL/Network aggregation / bonding)
http://www.mlvpn.fr/
BSD 2-Clause "Simplified" License
523 stars 130 forks source link

Multi client on 1 VPS #130

Open Florent4223 opened 4 years ago

Florent4223 commented 4 years ago

Hello,

My title sums up my question but in detail is that on a single VPS, it is possible to connect several clients (in my case raspberry) which each will use several internet connections (4G or other) with MLVPN?

Thanks

zehome commented 4 years ago

Yes, but you will need to launch a matching server instance on your VPS.

This can be done by using multiple configurations, one for each client and by launching multiple mlvpn instances using the systemd generator.

Florent4223 commented 4 years ago

Thank you for the answer.

If I understand correctly, it would be necessary to launch several mlvpn configuration, for exemple mlvpn0.conf , mlvpn1.conf etc, and: mlvpn -v --user mlvpn -c /etc/mlvpn/mlvpn0.conf mlvpn -v --user mlvpn -c /etc/mlvpn/mlvpn1.conf mlvpn -v --user mlvpn -c /etc/mlvpn/mlvpn(n).conf

did i understand correctly?

and the client will automatically take the addresses 10.42.42.2, 10.42.42.3 ...?

thanks

zehome commented 4 years ago

yes, but naming configurations like /etc/mlvpn/barcelona.conf /etc/mlvpn/mlvpn/paris.conf etc would be better. IP addresses must be unique, so choose /30 accordingly.

You also need to select unique binding ports on every configuration.

Florent4223 commented 4 years ago

thanks I try :)

ascomputer commented 4 years ago

hello everyone this project is interesting ... I would like to know one thing, if I have a vps with 2 public ip I can tell client 1 to use ip 1 of vps and to client 2 to use ip 2 of vps? Thank you

zehome commented 4 years ago

Basically, yes, you need to use "bind=" for the server endpoint ip address. For the outgoing IP, you'll need to use IPTables accordingly