mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-04-24 12:59:34 +08:00
kcptun_step_by_step: warn about root
This commit is contained in:
parent
121e84dbfe
commit
6ae238bc43
@ -18,16 +18,22 @@ https://github.com/wangyu-/udp2raw-tunnel/releases
|
|||||||
解压好后,如图:
|
解压好后,如图:
|
||||||

|

|
||||||
|
|
||||||
|
### 安全
|
||||||
|
|
||||||
|
使用 ROOT 运行 `udp2raw` 可能带来安全隐患,因此,以下 `udp2raw` 命令将全部以非 ROOT 用户执行。请先阅读 [这个文档](/README.md#security-important) 以确保以下指令能够正确执行。
|
||||||
|
|
||||||
### 运行
|
### 运行
|
||||||
1.在远程服务器运行 udp2raw_amd64 server模式:
|
1.在远程服务器运行 udp2raw_amd64 server模式:
|
||||||
```
|
```bash
|
||||||
./udp2raw_amd64 -s -l0.0.0.0:8855 -r 127.0.0.1:4000 -k "passwd" --raw-mode faketcp -a
|
sudo iptables -I INPUT -p tcp --dport 8855 -j DROP
|
||||||
|
./udp2raw_amd64 -s -l0.0.0.0:8855 -r 127.0.0.1:4000 -k "passwd" --raw-mode faketcp
|
||||||
```
|
```
|
||||||

|

|
||||||
|
|
||||||
2.在本地运行udp2raw_amd64 client模式,假设server ip是45.66.77.88:
|
2.在本地运行udp2raw_amd64 client模式,假设server ip是45.66.77.88:
|
||||||
```
|
```bash
|
||||||
./udp2raw_amd64 -c -r45.66.77.88:8855 -l0.0.0.0:4000 --raw-mode faketcp -a -k"passwd"
|
sudo iptables -I INPUT -p tcp -s 45.66.77.88 --sport 8855 -j DROP
|
||||||
|
./udp2raw_amd64 -c -r45.66.77.88:8855 -l0.0.0.0:4000 --raw-mode faketcp -k"passwd"
|
||||||
```
|
```
|
||||||
如果一切正常client端输出如下,显示client_ready:
|
如果一切正常client端输出如下,显示client_ready:
|
||||||

|

|
||||||
|
Loading…
x
Reference in New Issue
Block a user