From 42fb66894f9824eff12dd9c8ee7af778476afae7 Mon Sep 17 00:00:00 2001 From: wangyu- Date: Sat, 26 Aug 2017 06:37:19 -0700 Subject: [PATCH] Update README.md --- README.md | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e0c5ce2..f8e015e 100755 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ To run on Android, check [Android_Guide](/doc/android_guide.md) ### Usage ``` udp2raw-tunnel -version: Aug 18 2017 00:29:11 +version: Aug 26 2017 08:30:48 repository: https://github.com/wangyu-/udp2raw-tunnel usage: @@ -84,14 +84,16 @@ common options,these options must be same on both side: --cipher-mode avaliable values:aes128cbc(default),xor,none --auth-mode avaliable values:md5(default),crc32,simple,none -a,--auto-rule auto add (and delete) iptables rule - -g,--gen-rule generate iptables rule then exit + -g,--gen-rule generate iptables rule then exit,so that you can copy and + add it manually.overrides -a --disable-anti-replay disable anti-replay,not suggested client options: --source-ip force source-ip for raw socket --source-port force source-port for raw socket,tcp/udp only this option disables port changing while re-connecting other options: - --conf-file read options from a configuration file instead of command line + --conf-file read options from a configuration file instead of command line. + check example.conf in repo for format --log-level 0:never 1:fatal 2:error 3:warn 4:info (default) 5:debug 6:trace --log-position enable file name,function name,line number in log @@ -101,11 +103,16 @@ other options: --sock-buf buf size for socket,>=10 and <=10240,unit:kbyte,default:1024 --seqmode seq increase mode for faketcp: 0:dont increase - 1:increase every packet - 2:increase randomly, about every 3 packets (default) - --lower-level send packet at OSI level 2, format:'if_name#dest_mac_adress' - ie:'eth0#00:23:45:67:89:b9'.Beta. + 1:increase every packet(default) + 2:increase randomly, about every 3 packets + --lower-level 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 + the parameter automatically,specify it manually if 'auto' failed + --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 + --clear clear any iptables rules added by this program.overrides everything -h,--help print this help message + ``` ### Iptables rules,`-a` and `-g`