doc: correct mistakes in README file

This commit is contained in:
nadoo committed 2017-09-03 01:18:01 +08:00
1 parent e34b787ea5
commit efb1029793
3 files changed
+8 -9

No files matched your search

@@ -72,18 +72,17 @@ iptables -t nat -I OUTPUT -p tcp -m set --match-set glider dst -j REDIRECT --to-
```
#### Client DNS settings
use the linux server'ip as your dns server
use the linux server's ip as your dns server
#### When client requesting to access http://example1.com(in office.rule), the whole process:
- dns resolving:
#### When client requesting to access http://example1.com (in office.rule), the whole process:
- Dns resolving:
1. client sends a udp dns request to linux server, and glider will receive the request(as it listen on default dns port :53)
2. upstream dns server choice: glider will lookup it's rule config and find out the dns server to use for this domain(matched "example1.com" in office.rule, so 208.67.222.222:53 will be choosen)
3. glider uses the forwarder in office.rule to ask 208.67.222.222:53 for the resolve answers
4. glider updates it's office rule config, add the resolved ip address to it
5. glider adds the resolved ip into ipset "glider", and return the dns answer to client
- destination accessing:
- Destination accessing:
1. client sends http request to the resolved ip of example1.com
2. linux gateway server will get the request
3. iptabes matches the ip in ipset "glider" and redirect this request to :1081(glider)
4. glider finds the ip in office rule, and then choose a forwarder in office.rule to complete the request