wiretap icon indicating copy to clipboard operation
wiretap copied to clipboard

Multiple clients in "simple" mode

Open ds-hystax opened this issue 2 years ago • 2 comments

Here is my setup:

  • A client: a mobile phone fully under NAT
  • A server: a container, under NAT as well, but with several ports exposed to the internet.

I was able to create a tunnel between them using the following commands:

# Generate server and client config
./wiretap configure --routes 0.0.0.0/0 --outbound --endpoint SERVER_IP:SERVER_PORT --simple

# Run server inside container
./wiretap serve -f wiretap_server.conf --simple --port SERVER_PORT

It works fine, but now I'm not sure how to add more clients to the same server: the config seems to accept only a single peer. Is it possible to have more clients in such setup? If not, is it possible to be implemented?

ds-hystax avatar Nov 24 '23 12:11 ds-hystax

Hey, sorry this slipped under the radar.

When not using --simple mode you can add as many clients as you want with wiretap add client, but this requires two WireGuard interfaces on each client, which may be difficult to do on a mobile device.

We may consider supporting multiple clients in --simple mode, but I can't give you a timeline for that at the moment.

luker983 avatar Jan 06 '24 03:01 luker983

Got it, thanks!

ds-hystax avatar Jan 08 '24 18:01 ds-hystax