Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi client on 1 VPS #130

Open
Florent4223 opened this issue Jul 2, 2020 · 6 comments
Open

Multi client on 1 VPS #130

Florent4223 opened this issue Jul 2, 2020 · 6 comments

Comments

@Florent4223
Copy link

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
Copy link
Owner

zehome commented Jul 2, 2020

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
Copy link
Author

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
Copy link
Owner

zehome commented Jul 2, 2020

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
Copy link
Author

thanks I try :)

@ascomputer
Copy link

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
Copy link
Owner

zehome commented Jul 15, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants