mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-10-14 01:45:35 +08:00
update chinese readme.md
This commit is contained in:
@@ -103,7 +103,7 @@ https://github.com/wangyu-/udp2raw-tunnel/releases
|
|||||||
### 命令选项
|
### 命令选项
|
||||||
```
|
```
|
||||||
udp2raw-tunnel
|
udp2raw-tunnel
|
||||||
git version:6e1df4b39f build date:Oct 24 2017 09:21:15
|
git version:4623f878e0 build date:Nov 3 2024 23:15:46
|
||||||
repository: https://github.com/wangyu-/udp2raw-tunnel
|
repository: https://github.com/wangyu-/udp2raw-tunnel
|
||||||
|
|
||||||
usage:
|
usage:
|
||||||
@@ -111,14 +111,16 @@ usage:
|
|||||||
run as server : ./this_program -s -l server_listen_ip:server_port -r remote_address:remote_port [options]
|
run as server : ./this_program -s -l server_listen_ip:server_port -r remote_address:remote_port [options]
|
||||||
|
|
||||||
common options,these options must be same on both side:
|
common options,these options must be same on both side:
|
||||||
--raw-mode <string> available values:faketcp(default),udp,icmp
|
--raw-mode <string> available values:faketcp(default),udp,icmp and easy-faketcp
|
||||||
-k,--key <string> password to gen symetric key,default:"secret key"
|
-k,--key <string> password to gen symetric key,default:"secret key"
|
||||||
--cipher-mode <string> available values:aes128cbc(default),xor,none
|
--cipher-mode <string> available values:aes128cfb,aes128cbc(default),xor,none
|
||||||
--auth-mode <string> available values:hmac_sha1,md5(default),crc32,simple,none
|
--auth-mode <string> available values:hmac_sha1,md5(default),crc32,simple,none
|
||||||
-a,--auto-rule auto add (and delete) iptables rule
|
-a,--auto-rule auto add (and delete) iptables rule
|
||||||
-g,--gen-rule generate iptables rule then exit,so that you can copy and
|
-g,--gen-rule generate iptables rule then exit,so that you can copy and
|
||||||
add it manually.overrides -a
|
add it manually.overrides -a
|
||||||
--disable-anti-replay disable anti-replay,not suggested
|
--disable-anti-replay disable anti-replay,not suggested
|
||||||
|
--fix-gro try to fix huge packet caused by GRO. this option is at an early stage.
|
||||||
|
make sure client and server are at same version.
|
||||||
client options:
|
client options:
|
||||||
--source-ip <ip> force source-ip for raw socket
|
--source-ip <ip> force source-ip for raw socket
|
||||||
--source-port <port> force source-port for raw socket,tcp/udp only
|
--source-port <port> force source-port for raw socket,tcp/udp only
|
||||||
@@ -134,6 +136,7 @@ other options:
|
|||||||
--disable-color disable log color
|
--disable-color disable log color
|
||||||
--disable-bpf disable the kernel space filter,most time its not necessary
|
--disable-bpf disable the kernel space filter,most time its not necessary
|
||||||
unless you suspect there is a bug
|
unless you suspect there is a bug
|
||||||
|
--dev <string> bind raw socket to a device, not necessary but improves performance
|
||||||
--sock-buf <number> buf size for socket,>=10 and <=10240,unit:kbyte,default:1024
|
--sock-buf <number> buf size for socket,>=10 and <=10240,unit:kbyte,default:1024
|
||||||
--force-sock-buf bypass system limitation while setting sock-buf
|
--force-sock-buf bypass system limitation while setting sock-buf
|
||||||
--seq-mode <number> seq increase mode for faketcp:
|
--seq-mode <number> seq increase mode for faketcp:
|
||||||
@@ -146,11 +149,14 @@ other options:
|
|||||||
--lower-level <string> send packets at OSI level 2, format:'if_name#dest_mac_adress'
|
--lower-level <string> send packets at OSI level 2, format:'if_name#dest_mac_adress'
|
||||||
ie:'eth0#00:23:45:67:89:b9'.or try '--lower-level auto' to obtain
|
ie:'eth0#00:23:45:67:89:b9'.or try '--lower-level auto' to obtain
|
||||||
the parameter automatically,specify it manually if 'auto' failed
|
the parameter automatically,specify it manually if 'auto' failed
|
||||||
|
--wait-lock wait for xtables lock while invoking iptables, need iptables v1.4.20+
|
||||||
--gen-add generate iptables rule and add it permanently,then exit.overrides -g
|
--gen-add generate iptables rule and add it permanently,then exit.overrides -g
|
||||||
--keep-rule monitor iptables and auto re-add if necessary.implys -a
|
--keep-rule monitor iptables and auto re-add if necessary.implys -a
|
||||||
|
--hb-len <number> length of heart-beat packet, >=0 and <=1500
|
||||||
|
--mtu-warn <number> mtu warning threshold, unit:byte, default:1375
|
||||||
--clear clear any iptables rules added by this program.overrides everything
|
--clear clear any iptables rules added by this program.overrides everything
|
||||||
|
--retry-on-error retry on error, allow to start udp2raw before network is initialized
|
||||||
-h,--help print this help message
|
-h,--help print this help message
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### iptables 规则,`-a`和`-g`
|
### iptables 规则,`-a`和`-g`
|
||||||
@@ -269,3 +275,4 @@ raw_mode: faketcp cipher_mode: aes128cbc auth_mode: md5
|
|||||||
|
|
||||||
https://github.com/wangyu-/udp2raw-tunnel/wiki
|
https://github.com/wangyu-/udp2raw-tunnel/wiki
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user