From 32661552ff133fab2bc67b57864ebe8e569e8b41 Mon Sep 17 00:00:00 2001 From: yincongcyincong <648588267@qq.com> Date: Wed, 28 Feb 2018 14:09:23 +0800 Subject: [PATCH 1/7] Update README.md --- README.md | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9ed4873..bdd165e 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,8 @@ This page is the v4.2 manual, and the other version of the manual can be checked - [1.8 KCP protocol transmission](#18kcp-protocol-transmission) - [1.9 HTTP(S) reverse proxy](#19http-reverse-proxy) - [1.10 HTTP(S) transparent proxy](#110http-transparent-proxy) - - [1.11 View help](#111view-help) + - [1.11 Custom DNS](#111custom-dns) + - [1.12 View help](#112view-help) - [2.TCP proxy](#2tcp-proxy) - [2.1 Common TCP first level proxy](#21common-tcp-first-level-proxy) - [2.2 Common TCP second level proxy](#22common-tcp-second-level-proxy) @@ -111,7 +112,8 @@ This page is the v4.2 manual, and the other version of the manual can be checked - [5.6.2 The way of username and key](#562the-way-of-username-and-key) - [5.7 Authentication](#57authentication) - [5.8 KCP protocol transmission](#58kcp-protocol-transmission) - - [5.9 View help](#59view-help) + - [5.9 Custom DNS](#59custom-dns) + - [5.10 View help](#510view-help) ### Fast Start tips:all operations require root permissions. @@ -330,7 +332,13 @@ iptables -t nat -A OUTPUT -p tcp -j PROXY - Deleting the specified chain that user defined command is iptables -X chain name, such as iptables -t NAT -X PROXY - Deleting the rules of the chain command is iptables -D chain name from the selected chain, such as iptables -t nat -D PROXY -d 223.223.192.0/255.255.240.0 -j RETURN -#### **1.11.view help** +#### **1.11.Custom DNS** +--dns-address and --dns-ttl parameters can be used to specify DNS when you use proxy to access to the domain name(--dns-address) +and analytical result cache time (--dns-ttl) which unit is seconds, which can avoid the interference of system DNS to proxy. cache can reduce DNS resolution time and increase access speed. +for example: +`./proxy http -p ":33080" --dns-address "8.8.8.8:53" --dns-ttl 300` + +#### **1.12.view help** `./proxy help http` ### **2.TCP proxy** @@ -639,9 +647,16 @@ HTTP first level proxy(VPS,IP:22.22.22.22) HTTP two level proxy(local os is Linux) `./proxy socks -t tcp -p ":8080" -T kcp -P "22.22.22.22:38080" -B mypassword` -Then access to the local 8080 port is access to the proxy port 38080 on the VPS, and the data is transmitted through the KCP protocol. +Then access to the local 8080 port is access to the proxy port 38080 on the VPS, and the data is transmitted through the KCP protocol. -#### **5.9.view help** +#### **5.9.Custom DNS** +--dns-address and --dns-ttl parameters can be used to specify DNS when you use proxy to access to the domain name(--dns-address) +and analytical result cache time (--dns-ttl) which unit is seconds, which can avoid the interference of system DNS to proxy. cache can reduce DNS resolution time and increase access speed. +for example: +`./proxy http -p ":33080" --dns-address "8.8.8.8:53" --dns-ttl 300` + + +#### **5.10.view help** `./proxy help socks` ### TODO From 8d2e2105224ac33b87be7b75f2e7d9cfcc0c7cc8 Mon Sep 17 00:00:00 2001 From: yincongcyincong <648588267@qq.com> Date: Wed, 28 Feb 2018 16:05:47 +0800 Subject: [PATCH 2/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bdd165e..af4213d 100644 --- a/README.md +++ b/README.md @@ -333,7 +333,7 @@ iptables -t nat -A OUTPUT -p tcp -j PROXY - Deleting the rules of the chain command is iptables -D chain name from the selected chain, such as iptables -t nat -D PROXY -d 223.223.192.0/255.255.240.0 -j RETURN #### **1.11.Custom DNS** ---dns-address and --dns-ttl parameters can be used to specify DNS when you use proxy to access to the domain name(--dns-address) +--dns-address and --dns-ttl parameters can be used to specify DNS when you use proxy to access to a domain name(--dns-address) and analytical result cache time (--dns-ttl) which unit is seconds, which can avoid the interference of system DNS to proxy. cache can reduce DNS resolution time and increase access speed. for example: `./proxy http -p ":33080" --dns-address "8.8.8.8:53" --dns-ttl 300` From 9301c9b49b63bcca3da6b0358c2a0e9c81da30cb Mon Sep 17 00:00:00 2001 From: yincongcyincong <648588267@qq.com> Date: Wed, 28 Feb 2018 16:07:40 +0800 Subject: [PATCH 3/7] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index af4213d..a8ed2a5 100644 --- a/README.md +++ b/README.md @@ -333,8 +333,8 @@ iptables -t nat -A OUTPUT -p tcp -j PROXY - Deleting the rules of the chain command is iptables -D chain name from the selected chain, such as iptables -t nat -D PROXY -d 223.223.192.0/255.255.240.0 -j RETURN #### **1.11.Custom DNS** ---dns-address and --dns-ttl parameters can be used to specify DNS when you use proxy to access to a domain name(--dns-address) -and analytical result cache time (--dns-ttl) which unit is seconds, which can avoid the interference of system DNS to proxy. cache can reduce DNS resolution time and increase access speed. +--dns-address and --dns-ttl parameters can be used to specify DNS when you use proxy to access to a domain name(--dns-address). +they also can specify analytical result cache time (--dns-ttl) which unit is seconds, which can avoid the interference of system DNS to proxy. cache can reduce DNS resolution time and increase access speed. for example: `./proxy http -p ":33080" --dns-address "8.8.8.8:53" --dns-ttl 300` @@ -650,9 +650,9 @@ HTTP two level proxy(local os is Linux) Then access to the local 8080 port is access to the proxy port 38080 on the VPS, and the data is transmitted through the KCP protocol. #### **5.9.Custom DNS** ---dns-address and --dns-ttl parameters can be used to specify DNS when you use proxy to access to the domain name(--dns-address) -and analytical result cache time (--dns-ttl) which unit is seconds, which can avoid the interference of system DNS to proxy. cache can reduce DNS resolution time and increase access speed. -for example: +--dns-address and --dns-ttl parameters can be used to specify DNS when you use proxy to access to a domain name(--dns-address). +they also can specify analytical result cache time (--dns-ttl) which unit is seconds, which can avoid the interference of system DNS to proxy. cache can reduce DNS resolution time and increase access speed. +for example: `./proxy http -p ":33080" --dns-address "8.8.8.8:53" --dns-ttl 300` From 5583b303be777a5d975263e25b739a6aa4548d8f Mon Sep 17 00:00:00 2001 From: yincongcyincong <648588267@qq.com> Date: Wed, 28 Feb 2018 16:11:43 +0800 Subject: [PATCH 4/7] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a8ed2a5..490c643 100644 --- a/README.md +++ b/README.md @@ -334,7 +334,7 @@ iptables -t nat -A OUTPUT -p tcp -j PROXY #### **1.11.Custom DNS** --dns-address and --dns-ttl parameters can be used to specify DNS when you use proxy to access to a domain name(--dns-address). -they also can specify analytical result cache time (--dns-ttl) which unit is seconds, which can avoid the interference of system DNS to proxy. cache can reduce DNS resolution time and increase access speed. +they also can specify analytical result cache time (--dns-ttl) which unit is seconds. they can avoid the interference of system DNS to proxy. cache can reduce DNS resolution time and increase access speed. for example: `./proxy http -p ":33080" --dns-address "8.8.8.8:53" --dns-ttl 300` @@ -651,7 +651,7 @@ Then access to the local 8080 port is access to the proxy port 38080 on the VPS, #### **5.9.Custom DNS** --dns-address and --dns-ttl parameters can be used to specify DNS when you use proxy to access to a domain name(--dns-address). -they also can specify analytical result cache time (--dns-ttl) which unit is seconds, which can avoid the interference of system DNS to proxy. cache can reduce DNS resolution time and increase access speed. +they also can specify analytical result cache time (--dns-ttl) which unit is seconds. they can avoid the interference of system DNS to proxy. cache can reduce DNS resolution time and increase access speed. for example: `./proxy http -p ":33080" --dns-address "8.8.8.8:53" --dns-ttl 300` From 68080539f7a58ff8e23facbc6a3f067fb25a944d Mon Sep 17 00:00:00 2001 From: yincongcyincong <648588267@qq.com> Date: Wed, 28 Feb 2018 16:14:16 +0800 Subject: [PATCH 5/7] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 490c643..3f6211b 100644 --- a/README.md +++ b/README.md @@ -333,7 +333,7 @@ iptables -t nat -A OUTPUT -p tcp -j PROXY - Deleting the rules of the chain command is iptables -D chain name from the selected chain, such as iptables -t nat -D PROXY -d 223.223.192.0/255.255.240.0 -j RETURN #### **1.11.Custom DNS** ---dns-address and --dns-ttl parameters can be used to specify DNS when you use proxy to access to a domain name(--dns-address). +--dns-address and --dns-ttl parameters can be used to specify DNS(--dns-address) when you use proxy to access to a domain name. they also can specify analytical result cache time (--dns-ttl) which unit is seconds. they can avoid the interference of system DNS to proxy. cache can reduce DNS resolution time and increase access speed. for example: `./proxy http -p ":33080" --dns-address "8.8.8.8:53" --dns-ttl 300` @@ -650,10 +650,10 @@ HTTP two level proxy(local os is Linux) Then access to the local 8080 port is access to the proxy port 38080 on the VPS, and the data is transmitted through the KCP protocol. #### **5.9.Custom DNS** ---dns-address and --dns-ttl parameters can be used to specify DNS when you use proxy to access to a domain name(--dns-address). +--dns-address and --dns-ttl parameters can be used to specify DNS(--dns-address) when you use proxy to access to a domain name. they also can specify analytical result cache time (--dns-ttl) which unit is seconds. they can avoid the interference of system DNS to proxy. cache can reduce DNS resolution time and increase access speed. for example: -`./proxy http -p ":33080" --dns-address "8.8.8.8:53" --dns-ttl 300` +`./proxy socks -p ":33080" --dns-address "8.8.8.8:53" --dns-ttl 300` #### **5.10.view help** From 938ddd11411c9767392b7f0b149e937c71bf27a7 Mon Sep 17 00:00:00 2001 From: yincongcyincong <648588267@qq.com> Date: Wed, 28 Feb 2018 16:15:29 +0800 Subject: [PATCH 6/7] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3f6211b..24613cc 100644 --- a/README.md +++ b/README.md @@ -334,7 +334,7 @@ iptables -t nat -A OUTPUT -p tcp -j PROXY #### **1.11.Custom DNS** --dns-address and --dns-ttl parameters can be used to specify DNS(--dns-address) when you use proxy to access to a domain name. -they also can specify analytical result cache time (--dns-ttl) which unit is seconds. they can avoid the interference of system DNS to proxy. cache can reduce DNS resolution time and increase access speed. +they also can specify analytical result cache time (--dns-ttl) which unit is second. they can avoid the interference of system DNS to proxy. cache can reduce DNS resolution time and increase access speed. for example: `./proxy http -p ":33080" --dns-address "8.8.8.8:53" --dns-ttl 300` @@ -651,7 +651,7 @@ Then access to the local 8080 port is access to the proxy port 38080 on the VPS, #### **5.9.Custom DNS** --dns-address and --dns-ttl parameters can be used to specify DNS(--dns-address) when you use proxy to access to a domain name. -they also can specify analytical result cache time (--dns-ttl) which unit is seconds. they can avoid the interference of system DNS to proxy. cache can reduce DNS resolution time and increase access speed. +they also can specify analytical result cache time (--dns-ttl) which unit is second. they can avoid the interference of system DNS to proxy. cache can reduce DNS resolution time and increase access speed. for example: `./proxy socks -p ":33080" --dns-address "8.8.8.8:53" --dns-ttl 300` From 26e9231e488a2580849dc4b31c440fd4f10c137f Mon Sep 17 00:00:00 2001 From: yincongcyincong <648588267@qq.com> Date: Wed, 28 Feb 2018 16:23:30 +0800 Subject: [PATCH 7/7] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 24613cc..f22f040 100644 --- a/README.md +++ b/README.md @@ -333,8 +333,8 @@ iptables -t nat -A OUTPUT -p tcp -j PROXY - Deleting the rules of the chain command is iptables -D chain name from the selected chain, such as iptables -t nat -D PROXY -d 223.223.192.0/255.255.240.0 -j RETURN #### **1.11.Custom DNS** ---dns-address and --dns-ttl parameters can be used to specify DNS(--dns-address) when you use proxy to access to a domain name. -they also can specify analytical result cache time (--dns-ttl) which unit is second. they can avoid the interference of system DNS to proxy. cache can reduce DNS resolution time and increase access speed. +--dns-address and --dns-ttl parameters can be used to specify DNS(--dns-address) when you use proxy to access to a domain. +they also can specify dns result cache time (--dns-ttl) which unit is second. they can avoid the interference of system DNS to proxy. cache can reduce DNS resolution time and increase access speed. for example: `./proxy http -p ":33080" --dns-address "8.8.8.8:53" --dns-ttl 300` @@ -650,8 +650,8 @@ HTTP two level proxy(local os is Linux) Then access to the local 8080 port is access to the proxy port 38080 on the VPS, and the data is transmitted through the KCP protocol. #### **5.9.Custom DNS** ---dns-address and --dns-ttl parameters can be used to specify DNS(--dns-address) when you use proxy to access to a domain name. -they also can specify analytical result cache time (--dns-ttl) which unit is second. they can avoid the interference of system DNS to proxy. cache can reduce DNS resolution time and increase access speed. +--dns-address and --dns-ttl parameters can be used to specify DNS(--dns-address) when you use proxy to access to a domain. +they also can specify dns result cache time (--dns-ttl) which unit is second. they can avoid the interference of system DNS to proxy. cache can reduce DNS resolution time and increase access speed. for example: `./proxy socks -p ":33080" --dns-address "8.8.8.8:53" --dns-ttl 300`