Skip to content

Ability for client to specify destination to server #558

@jamesmcm

Description

@jamesmcm

Instead of configuring the server with a fixed destination address with -r, it would be really useful if the client could tell the server which destination it wants, and the server would store this on a per client basis (e.g. by source IP - like NAT).

So instead of having the current situation:

# Client
sudo udp2raw -c -a -l $DUMMY_WIREGUARD_PEER -r $REMOTE:$RPORT -k $KEY --raw-mode faketcp &
# Server
sudo udp2raw -s -l0.0.0.0:$OPEN_LISTEN_PORT -r $REAL_WIREGUARD_PEER -k $KEY --raw-mode faketcp -a

Where all connections are routed to the same -r destination on the udp2raw server, one could do:

# Client
sudo udp2raw -c -a -l $DUMMY_WIREGUARD_PEER -r $REMOTE:$RPORT -k $KEY --raw-mode faketcp --destination $REAL_WIREGUARD_PEER &
# Server
sudo udp2raw -s -l0.0.0.0:$OPEN_LISTEN_PORT -k $KEY --raw-mode faketcp -a

Where the server -r is now specified as --destination on the client.

So multiple clients could tunnel via the same udp2raw server simultaneously, but to different actual Wireguard endpoints.

The udp2raw client would need to send this desired destination address to the server when it first establishes the connection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions