From e8ad293143dfb93fc9561b1955742416f49ea32f Mon Sep 17 00:00:00 2001 From: wangyu- Date: Wed, 21 Feb 2018 05:28:04 +0800 Subject: [PATCH] Updated run udp2raw as non root (markdown) --- run-udp2raw-as-non-root.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/run-udp2raw-as-non-root.md b/run-udp2raw-as-non-root.md index 5df4ab1..273a11b 100644 --- a/run-udp2raw-as-non-root.md +++ b/run-udp2raw-as-non-root.md @@ -18,7 +18,14 @@ sudo iptables -I INPUT -p tcp -m tcp --dport 4096 -j DROP 4. then run udp2raw without `-g` option ``` +# run udp2raw with current user ./udp2raw_amd64 -s -l0.0.0.0:4096 -r 127.0.0.1:7777 -k "passwd" --raw-mode faketcp ``` +or + +``` +# run udp2raw as nobody +sudo -u nobody ./udp2raw_amd64 -s -l0.0.0.0:4096 -r 127.0.0.1:7777 -k "passwd" --raw-mode faketcp +``` It works for both client and server. \ No newline at end of file