angt / glorytun

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

does glorytun support multi-client interaction #71

Closed rjdpantara closed 4 years ago

rjdpantara commented 4 years ago

Hi ,sorry for the silly question, but does glorytun support multi-client with one vps,what configuration is required for dhcp to alloacate ip to all respective client, Also will it support client to client interaction through one vps

angt commented 4 years ago

Hello, there is no "silly question" don't worry :)

glorytun does one job: it creates a tunnel where many connections are aggregated to secure your connectivity. It's not a VPN in the sense that you're going to create a private network over Internet like wireguard.

That said, you don't really need a dedicated tool for that. You can simply create multiple glorytun servers on your VPS and connect each client to its own server (with its own key). Then, by configuring the routing with the usual tools, you can get the same functionality.

rjdpantara commented 4 years ago

Hi ,Thanks for the quick reply, you saved my days, Is there a way we have a single vps glorytun server and it acts as dhcp server and each glorytun client connects to it and gets an IP address to its tun0 assigned from the VPS(just like openvpn).This will simplify the use case as we do not know how many clients will be there in advance and configuration of each client and spawning each server is an overhead.

angt commented 4 years ago

Yes, you can look at the systemd network config. This will also automatically select a free /24 prefix for the server.

rjdpantara commented 4 years ago

Thanks a lot. Is there any similar configuration on openwrt? I guess the one you shared is ubuntu/linux specific

angt commented 4 years ago

Sorry for the late response, I don't have this but you should be able to something similar on OpenWrt. You can look at https://github.com/ovh/overthebox to see how things are done.