diff --git a/docs/graph_legend.png b/docs/graph_legend.png index b6d626f..9f80d23 100644 Binary files a/docs/graph_legend.png and b/docs/graph_legend.png differ diff --git a/docs/md__r_e_a_d_m_e.html b/docs/md__r_e_a_d_m_e.html index 98d45b0..768eb26 100644 --- a/docs/md__r_e_a_d_m_e.html +++ b/docs/md__r_e_a_d_m_e.html @@ -92,7 +92,7 @@
udp-redirect
-

A simple yet flexible and very fast UDP redirector. Tested to run on Linux x64 and MacOS / Darwin arm64.

+

A simple yet flexible and very fast UDP redirector. Tested on Linux x64 and MacOS / Darwin arm64.

Useful for redirecting UDP traffic (e.g., Wireguard VPN) where doing it at a different layer (e.g., from a firewall) is challenging / impossible. Does not modify the redirected packets.

GitHub CI License: GPL v2

Community contributions are welcome.

@@ -108,8 +108,7 @@

Run

./udp-redirect \
--listen-port 51821 \
-
--connect-host example.endpoint.net --connect-port 51822 \
-
--ignore-errors
+
--connect-host example.endpoint.net --connect-port 51822
./udp-redirect \
--debug \
--listen-address 192.168.1.32 --listen-port 51821 --listen-interface en0 \
@@ -117,8 +116,7 @@

--connect-host example.endpoint.net --connect-port 51822 \
--connect-address-strict \
--send-interface utun5 \
-
--listen-sender-address 192.168.1.1 --listen-sender-port 51820 \
-
--ignore-errors
+
--listen-sender-address 192.168.1.1 --listen-sender-port 51820

graph TD
A["Wireguard Client <br/><br/>Send from:<br/>IP: 192.168.1.1<br/>Port: 51820"] <--> B("Receive on:<br/>IP: 192.168.1.32 (--listen-address) (optional)<br/>Port: 51821 (--listen-port)<br/>Interface: en0 (--listen-interface) (optional)<br/><br/>Receive from: (optional)<br/>IP: 192.168.1.1 (--listen-sender-address) (optional)<br/>Port: 51820 (--listen-sender-port) (optional)<br/>Only receive from Wireguard Client (--listen-address-strict) (optional)<br/><br/>UDP Redirector<br/><br/>Send to:<br/>Host: example.endpoint.net (--connect-host)</br>Port: 51822 (--connect-port)<br/>Only receive from Wireguard Server (--connect-address-strict) (optional)<br/><br/>Send from:<br/>Interface: utun5 (--sender-interface) (optional)<br/><br/>")
B <--> C["Listen on:<br/>Host: example.endpoint.net<br/>Port: 51822<br/><br/>Wireguard Server"]
@@ -163,11 +161,11 @@

--connect-address address required Connect address. ---connect-host address required Connect host, overwrites caddr if both are specified. +--connect-host address required Connect host, overwrites connect-host if both are specified. --connect-port port required Connect port. ---connect-address-strict optional Security: Only accept packets from the connect caddr / cport, otherwise accept from all sources. +--connect-address-strict optional Security: Only accept packets from connect-host / connect-port, otherwise accept from all sources.

Sender

@@ -199,7 +197,9 @@

Argument Parameters Req/Opt Description ---ignore-errors optional Ignore most receive or send errors (host / network unreachable, etc.) instead of exiting. +--ignore-errors optional Ignore most receive or send errors (host / network unreachable, etc.) instead of exiting. *(default)* + +--stop-errors optional Stop on most receive or send errors (host / network unreachable, etc.)

diff --git a/docs/udp-redirect_8c.html b/docs/udp-redirect_8c.html index 7a247e6..90636ca 100644 --- a/docs/udp-redirect_8c.html +++ b/docs/udp-redirect_8c.html @@ -619,9 +619,10 @@

{ "listen-sender-address", required_argument, NULL, 'k' },

{ "listen-sender-port", required_argument, NULL, 'l' },
-
{ "ignore-errors", no_argument, NULL, 'z' },
+
{ "ignore-errors", no_argument, NULL, 'r' },
+
{ "stop-errors", no_argument, NULL, 's' },
-
{ NULL, 0, NULL, 0 }
+
{ NULL, 0, NULL, 0 }
}

Command line options.

diff --git a/docs/udp-redirect_8c__incl.png b/docs/udp-redirect_8c__incl.png index b3282fb..a4ed477 100644 Binary files a/docs/udp-redirect_8c__incl.png and b/docs/udp-redirect_8c__incl.png differ diff --git a/docs/udp-redirect_8c_a0ddf1224851353fc92bfbff6f499fa97_cgraph.png b/docs/udp-redirect_8c_a0ddf1224851353fc92bfbff6f499fa97_cgraph.png index 02c1088..c891298 100644 Binary files a/docs/udp-redirect_8c_a0ddf1224851353fc92bfbff6f499fa97_cgraph.png and b/docs/udp-redirect_8c_a0ddf1224851353fc92bfbff6f499fa97_cgraph.png differ