angt / glorytun

Multipath UDP tunnel
BSD 2-Clause "Simplified" License
683 stars 105 forks source link

Multi client Raspberry on 1 VPS #66

Closed Florent4223 closed 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) potentially at the same time which each will use several internet connections (4G or other) with Glorytun?

Another question at the same time: Can I launch Glorytun from a raspbian (Buster for example)?

Thanks

angt commented 4 years ago

Hi,

No, glorytun focuses on creating a single tunnel capable of handling many paths. However, it is quite easy to configure many tunnels for many clients on a single vps. You just have to change the binded port when starting the tunnel. Each client will have its secret key/dedicated port to connect to.

Never used raspbian but it has to work :)

Florent4223 commented 4 years ago

Thank you for the answer

this confirms what I supposed saw the how to

in fact on the raspbian it works too ... but you must activate the 64bits instructions (natively 32bits) yes in the meantime I found sorry :)

if I understood correctly (in my case I would often have only 2 connections and 4G type): glorytun creates a tunnel and passes the flow (TCP and UDP) of the 2 connections via this tunnel?

By cons I suppose that the overall latency will be that of the worst connection? (in the case of voip)

If yes can we determine THE 4G connection which is weaker to either "disconnect" or change it (for example test with another operator then repeat the test to see if the whole is better)?

thanks

angt commented 4 years ago

Glorytun will create a tunnel over all your path and your system will see it as a standard one path with a bigger jitter, but voip should be able to handle that most of the time. It will also enable/disable degraded path automatically.

For finer control you can use the command glorytun path to get some statistics about each path (bw, rtt, rttvar, loss, ...) and enable/disable path yourself.

Hope this help.

Florent4223 commented 4 years ago

thanks I'm trying to set up the tunnel.

I added my 1st connection: ./glorytun path up 192.168.9.3 rate tx 6mbit rx 6mbit

in the case of a 4G connection with fairly random speed which rate should we put?

moreover I have a doubt on the aggregation. Indeed 2 connection 4G in download I have a maximum at 40kb / s .... In theory I should be between 80 and 100kb / s. So a flow divided by 2 A idea?

Thanks

angt commented 4 years ago

Hi,

I'm sorry, I'm not really sure about your issue. But:

angt commented 4 years ago

I hope you've fixed your problem. Don't hesitate to reopen if necessary with more information if possible.