Update README.md

This commit is contained in:
yincongcyincong
2018-02-28 14:09:23 +08:00
committed by GitHub
parent 28947a0352
commit 32661552ff

View File

@ -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**
@ -641,7 +649,14 @@ 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.
#### **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