fix typo
This commit is contained in:
@@ -59,9 +59,10 @@ flowchart
|
|||||||
|
|
||||||
## SmartDNS分流配置
|
## SmartDNS分流配置
|
||||||
|
|
||||||
在上述流程图中,SmartDNS分流数据,需要做如下设置
|
1. 在上述流程图中,SmartDNS分流数据,需要做如下设置
|
||||||
* 内部域名从内部DNS服务器查询,并对IP进行测速,将最快IP地址返回客户端。
|
|
||||||
* 外部域名从外部服务器查询,不进行测速,将IP地址放入IPSet/NFTSet中供数据转发。
|
* 内部域名从内部DNS服务器查询,并对IP进行测速,将最快IP地址返回客户端。
|
||||||
|
* 外部域名从外部服务器查询,不进行测速,将IP地址放入IPSet/NFTSet中供数据转发。
|
||||||
|
|
||||||
1. 基本配置
|
1. 基本配置
|
||||||
|
|
||||||
@@ -101,7 +102,7 @@ flowchart
|
|||||||
|
|
||||||
1. 配置域名规则
|
1. 配置域名规则
|
||||||
|
|
||||||
配置黑名单域名,对名单中的域名走public服务器组,并关闭测速,关闭IPV6,加入IPSET。
|
配置白名单域名,对名单中的域名走public服务器组,并关闭测速,关闭IPV6,加入IPSET。
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# 添加域名列表,格式为一行一个域名
|
# 添加域名列表,格式为一行一个域名
|
||||||
@@ -211,7 +212,7 @@ flowchart
|
|||||||
|
|
||||||
1. 方式一:仅TCP转发 (容易)
|
1. 方式一:仅TCP转发 (容易)
|
||||||
|
|
||||||
1. 创建nftable的nftset集合,集合名称为`#4:ip#nat:public_set`
|
1. 创建nftable的nftset集合,集合名称为`#4:ip#nat#public_set`
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
nft add set ip nat public_set { type ipv4_addr\; flags interval\; auto-merge\; }
|
nft add set ip nat public_set { type ipv4_addr\; flags interval\; auto-merge\; }
|
||||||
@@ -226,7 +227,7 @@ flowchart
|
|||||||
1. smartdns中配置nftable规则
|
1. smartdns中配置nftable规则
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
nftset /example.com/#4:ip:nat:public_set
|
nftset /example.com/#4:ip#nat#public_set
|
||||||
```
|
```
|
||||||
|
|
||||||
1. 启用转发程序
|
1. 启用转发程序
|
||||||
@@ -282,7 +283,7 @@ flowchart
|
|||||||
1. smartdns配置nftset
|
1. smartdns配置nftset
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
nftset /example.com/#4:ip#smartdns:public
|
nftset /example.com/#4:ip#smartdns#public
|
||||||
```
|
```
|
||||||
|
|
||||||
1. 启用转发程序
|
1. 启用转发程序
|
||||||
|
|||||||
@@ -59,10 +59,10 @@ flowchart
|
|||||||
|
|
||||||
## SmartDNS forward configuration
|
## SmartDNS forward configuration
|
||||||
|
|
||||||
In the above process diagram, SmartDNS forward data needs to be set as follows
|
1. In the above process diagram, SmartDNS forward data needs to be set as follows
|
||||||
|
|
||||||
* The internal domain obtains IP by querying the internal DNS server, and measures the speed of IP to return the fastest IP address to the client.
|
* The internal domain obtains IP by querying the internal DNS server, and measures the speed of IP to return the fastest IP address to the client.
|
||||||
* The external domain queries from the external server, does not measure the speed, and adds the IP address to the IPSet/NFTSet for data forwarding.
|
* The external domain queries from the external server, does not measure the speed, and adds the IP address to the IPSet/NFTSet for data forwarding.
|
||||||
|
|
||||||
1. Basic configuration
|
1. Basic configuration
|
||||||
|
|
||||||
@@ -102,7 +102,7 @@ In the above process diagram, SmartDNS forward data needs to be set as follows
|
|||||||
|
|
||||||
1. Configure domain name policy
|
1. Configure domain name policy
|
||||||
|
|
||||||
Configure blacklist domain names, use the `public` server group for domain names in the list, turn off speed measurement, turn off IPV6, and join IPSET.
|
Configure whitelist domain names, use the `public` server group for domain names in the list, turn off speed measurement, turn off IPV6, and join IPSET.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Add domain name list, format one domain name per line
|
# Add domain name list, format one domain name per line
|
||||||
@@ -213,7 +213,7 @@ To cooperate with smartdns to complete the forwarding of external requests, it i
|
|||||||
|
|
||||||
1. Method 1: TCP forwarding only (easier)
|
1. Method 1: TCP forwarding only (easier)
|
||||||
|
|
||||||
1. Create nftable's nftset collection, collection name is `#4:ip#nat:public_set`
|
1. Create nftable's nftset collection, collection name is `#4:ip#nat#public_set`
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
nft add set ip nat public_set { type ipv4_addr\; flags interval\; auto-merge\; }
|
nft add set ip nat public_set { type ipv4_addr\; flags interval\; auto-merge\; }
|
||||||
@@ -228,7 +228,7 @@ To cooperate with smartdns to complete the forwarding of external requests, it i
|
|||||||
1. Configure nftable rules in smartdns
|
1. Configure nftable rules in smartdns
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
nftset /example.com/#4:ip:nat:public_set
|
nftset /example.com/#4:ip#nat#public_set
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Enable forwarding program
|
1. Enable forwarding program
|
||||||
@@ -284,7 +284,7 @@ To cooperate with smartdns to complete the forwarding of external requests, it i
|
|||||||
1. Configure nftset in smartdns
|
1. Configure nftset in smartdns
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
nftset /example.com/#4:ip#smartdns:public
|
nftset /example.com/#4:ip#smartdns#public
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Enable forwarding program
|
1. Enable forwarding program
|
||||||
|
|||||||
Reference in New Issue
Block a user