Updated run udp2raw as non root (markdown)

wangyu- 2018-02-21 05:28:04 +08:00
parent 2e6d1b50a9
commit e8ad293143

@ -18,7 +18,14 @@ sudo iptables -I INPUT -p tcp -m tcp --dport 4096 -j DROP
4. then run udp2raw without `-g` option 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 ./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. It works for both client and server.