From cac9c56afbc5267b42d4f3342f4467a068b1a31f Mon Sep 17 00:00:00 2001 From: wangyu- Date: Fri, 20 Jul 2018 14:35:22 +0800 Subject: [PATCH 1/4] Update README.md --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index eefafb1..e4d0099 100755 --- a/README.md +++ b/README.md @@ -64,10 +64,10 @@ Assume your UDP is blocked or being QOS-ed or just poorly supported. Assume your ```bash # Run at server side: -./udp2raw_amd64 -s -l0.0.0.0:4096 -r 127.0.0.1:7777 -a -k "passwd" --raw-mode faketcp +./udp2raw_amd64 -s -l0.0.0.0:4096 -r 127.0.0.1:7777 -k "passwd" --raw-mode faketcp -a # Run at client side -./udp2raw_amd64 -c -l0.0.0.0:3333 -r44.55.66.77:4096 -a -k "passwd" --raw-mode faketcp +./udp2raw_amd64 -c -l0.0.0.0:3333 -r44.55.66.77:4096 -k "passwd" --raw-mode faketcp -a ``` (The above commands need to be run as root. For better security, with some extra steps, you can run udp2raw as non-root. Check [this link](https://github.com/wangyu-/udp2raw-tunnel/wiki/run-udp2raw-as-non-root) for more info ) @@ -81,8 +81,7 @@ Now,an encrypted raw tunnel has been established between client and server throu ### Note To run on Android, check [Android_Guide](/doc/android_guide.md) -If you have connection problems. Take a look at `--seq-mode` option. - +`-a` option automatically add an iptable rule for you, udp2raw relys on this iptables rule to work stably. Be aware you dont forget `-a` (its a common mistake). If you dont want udp2raw to add iptables rule automatically, you can add it manually(take a look at `-g` option). # Advanced Topic From 1155f0547ffe52785ce57834e4675d8e152f09af Mon Sep 17 00:00:00 2001 From: wangyu- Date: Fri, 20 Jul 2018 14:42:03 +0800 Subject: [PATCH 2/4] Update README.zh-cn.md --- doc/README.zh-cn.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/doc/README.zh-cn.md b/doc/README.zh-cn.md index e41264d..341d0e4 100644 --- a/doc/README.zh-cn.md +++ b/doc/README.zh-cn.md @@ -75,10 +75,10 @@ https://github.com/wangyu-/udp2raw-tunnel/releases ``` 在server端运行: -./udp2raw_amd64 -s -l0.0.0.0:4096 -r127.0.0.1:7777 -a -k "passwd" --raw-mode faketcp --cipher-mode xor +./udp2raw_amd64 -s -l0.0.0.0:4096 -r127.0.0.1:7777 -k "passwd" --raw-mode faketcp --cipher-mode xor -a 在client端运行: -./udp2raw_amd64 -c -l0.0.0.0:3333 -r44.55.66.77:4096 -a -k "passwd" --raw-mode faketcp --cipher-mode xor +./udp2raw_amd64 -c -l0.0.0.0:3333 -r44.55.66.77:4096 -k "passwd" --raw-mode faketcp --cipher-mode xor -a ``` (以上例子需要用root账号运行。 用非root运行udp2raw需要一些额外的步骤,具体方法请看 [这个](https://github.com/wangyu-/udp2raw-tunnel/wiki/run-udp2raw-as-non-root) 链接。用非root运行更安全) @@ -98,9 +98,7 @@ https://github.com/wangyu-/udp2raw-tunnel/releases 如果要在anroid上运行,请看[Android简明教程](/doc/android_guide.md) -如果要在梅林固件的路由器上使用,添加`--lower-level auto` `--keep-rule` - -如果client和server无法连接,或者连接经常断开,请看一下`--seq-mode`的用法,尝试不同的seq-mode。 +`-a`选项会自动添加一条/几条iptables规则,udp2raw必须和iptables规则配合才能稳定工作,一定要注意不要忘了`-a`(这是个常见错误)。 如果你不想让udp2raw自动添加iptables规则,可以自己手动添加相应的iptables规则(看一下-g选项),然后以不带`-a`的方式运行udp2raw。 # 进阶操作说明 From 4cb60d599768a54f322b31c460778f8ed5e9319b Mon Sep 17 00:00:00 2001 From: wangyu- Date: Fri, 20 Jul 2018 14:43:28 +0800 Subject: [PATCH 3/4] Update README.zh-cn.md --- doc/README.zh-cn.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/README.zh-cn.md b/doc/README.zh-cn.md index 341d0e4..7fafe07 100644 --- a/doc/README.zh-cn.md +++ b/doc/README.zh-cn.md @@ -98,7 +98,7 @@ https://github.com/wangyu-/udp2raw-tunnel/releases 如果要在anroid上运行,请看[Android简明教程](/doc/android_guide.md) -`-a`选项会自动添加一条/几条iptables规则,udp2raw必须和iptables规则配合才能稳定工作,一定要注意不要忘了`-a`(这是个常见错误)。 如果你不想让udp2raw自动添加iptables规则,可以自己手动添加相应的iptables规则(看一下-g选项),然后以不带`-a`的方式运行udp2raw。 +`-a`选项会自动添加一条/几条iptables规则,udp2raw必须和相应的iptables规则配合才能稳定工作,一定要注意不要忘了`-a`(这是个常见错误)。 如果你不想让udp2raw自动添加iptables规则,可以自己手动添加相应的iptables规则(看一下`-g`选项),然后以不带`-a`的方式运行udp2raw。 # 进阶操作说明 From 2f59ce490ecdeb85ba954f2485dbe48cad53a6e0 Mon Sep 17 00:00:00 2001 From: wangyu- Date: Fri, 20 Jul 2018 14:45:53 +0800 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e4d0099..7d94c16 100755 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ Now,an encrypted raw tunnel has been established between client and server throu ### Note To run on Android, check [Android_Guide](/doc/android_guide.md) -`-a` option automatically add an iptable rule for you, udp2raw relys on this iptables rule to work stably. Be aware you dont forget `-a` (its a common mistake). If you dont want udp2raw to add iptables rule automatically, you can add it manually(take a look at `-g` option). +`-a` option automatically adds an iptables rule (or a few iptables rules) for you, udp2raw relys on this iptables rule to work stably. Be aware you dont forget `-a` (its a common mistake). If you dont want udp2raw to add iptables rule automatically, you can add it manually(take a look at `-g` option) and omit `-a`. # Advanced Topic