This commit is contained in:
Nick Peng
2023-04-05 00:17:30 +08:00
parent d6bf537cd8
commit 60ded57afd
2 changed files with 15 additions and 14 deletions

View File

@@ -59,9 +59,10 @@ flowchart
## SmartDNS分流配置
在上述流程图中SmartDNS分流数据需要做如下设置
* 内部域名从内部DNS服务器查询并对IP进行测速将最快IP地址返回客户端。
* 部域名从外部服务器查询,进行测速将IP地址放入IPSet/NFTSet中供数据转发
1. 在上述流程图中SmartDNS分流数据需要做如下设置
* 部域名从内部DNS服务器查询,并对IP进行测速,将最快IP地址返回客户端
* 外部域名从外部服务器查询不进行测速将IP地址放入IPSet/NFTSet中供数据转发。
1. 基本配置
@@ -101,7 +102,7 @@ flowchart
1. 配置域名规则
配置名单域名对名单中的域名走public服务器组并关闭测速关闭IPV6加入IPSET。
配置名单域名对名单中的域名走public服务器组并关闭测速关闭IPV6加入IPSET。
```shell
# 添加域名列表,格式为一行一个域名
@@ -211,7 +212,7 @@ flowchart
1. 方式一仅TCP转发 (容易)
1. 创建nftable的nftset集合集合名称为`#4:ip#nat:public_set`
1. 创建nftable的nftset集合集合名称为`#4:ip#nat#public_set`
```shell
nft add set ip nat public_set { type ipv4_addr\; flags interval\; auto-merge\; }
@@ -226,7 +227,7 @@ flowchart
1. smartdns中配置nftable规则
```shell
nftset /example.com/#4:ip:nat:public_set
nftset /example.com/#4:ip#nat#public_set
```
1. 启用转发程序
@@ -282,7 +283,7 @@ flowchart
1. smartdns配置nftset
```shell
nftset /example.com/#4:ip#smartdns:public
nftset /example.com/#4:ip#smartdns#public
```
1. 启用转发程序

View File

@@ -59,10 +59,10 @@ flowchart
## 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 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 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.
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
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
# 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. 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
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
```shell
nftset /example.com/#4:ip:nat:public_set
nftset /example.com/#4:ip#nat#public_set
```
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
```shell
nftset /example.com/#4:ip#smartdns:public
nftset /example.com/#4:ip#smartdns#public
```
1. Enable forwarding program