add bind-https option
This commit is contained in:
@@ -5,7 +5,7 @@ hide:
|
||||
|
||||
# 服务端配置
|
||||
|
||||
smartdns目前提供了UDP, TCP, DOT三种服务端模式。
|
||||
smartdns目前提供了UDP, TCP, DOT, DOH四种服务端模式。
|
||||
|
||||
## UDP服务端
|
||||
|
||||
@@ -39,14 +39,20 @@ smartdns目前提供了UDP, TCP, DOT三种服务端模式。
|
||||
tcp-idle-time 120
|
||||
```
|
||||
|
||||
## DOT服务端
|
||||
## DOT,DOH服务端
|
||||
|
||||
1. 通过`bind-tls`参数配置,配置例子如下:
|
||||
1. 通过`bind-tls`, `bind-https`参数配置,配置例子如下:
|
||||
|
||||
```shell
|
||||
bind-tls 0.0.0.0:53@eth0
|
||||
bind-tls [::]:53@eth0
|
||||
bind-tls :53@eth0
|
||||
# DOT 服务器
|
||||
bind-tls 0.0.0.0:853@eth0
|
||||
bind-tls [::]:853@eth0
|
||||
bind-tls :853@eth0
|
||||
|
||||
# DOH 服务器
|
||||
bind-https 0.0.0.0:443@eth0
|
||||
bind-https [::]:443@eth0
|
||||
bind-https :443@eth0
|
||||
|
||||
```
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ hide:
|
||||
| bind | DNS 监听端口号 | [::]:53 | 可绑定多个端口。<br />IP:PORT@DEVICE: 服务器 IP:端口号@设备名<br />[-group]: 请求时使用的 DNS 服务器组<br />[-no-rule-addr]:跳过 address 规则<br />[-no-rule-nameserver]:跳过 Nameserver 规则<br />[-no-rule-ipset]:跳过 ipset 和 nftset 规则<br />[-no-rule-soa]:跳过 SOA(#) 规则<br />[-no-dualstack-selection]:停用双栈测速<br />[-no-speed-check]:停用测速<br />[-no-cache]:停止缓存 <br />[-force-aaaa-soa]: 禁用IPV6查询 <br />[-ipset]: 设置IPSet,参考ipset选项 <br />[-nftset]: 设置nftset,参考nftset选项| bind :53@eth0 |
|
||||
| bind-tcp | DNS TCP 监听端口号 | [::]:53 | 可绑定多个端口。<br />IP:PORT@DEVICE: 服务器 IP:端口号@设备名<br />[-group]: 请求时使用的 DNS 服务器组<br />[-no-rule-addr]:跳过 address 规则<br />[-no-rule-nameserver]:跳过 nameserver 规则<br />[-no-rule-ipset]:跳过 ipset 和 nftset 规则。<br />[-no-rule-soa]:跳过 SOA(#) 规则<br />[-no-dualstack-selection]:停用双栈测速<br />[-no-speed-check]:停用测速<br />[-no-cache]:停止缓存 <br />[-force-aaaa-soa]: 禁用IPV6查询 <br />[-ipset]: 设置IPSet,参考ipset选项 <br />[-nftset]: 设置nftset,参考nftset选项 | bind-tcp :53 |
|
||||
| bind-tls | DNS Over TLS 监听端口号 | [::]:853 | 可绑定多个端口。<br />IP:PORT@DEVICE: 服务器 IP:端口号@设备名<br />[-group]: 请求时使用的 DNS 服务器组<br />[-no-rule-addr]:跳过 address 规则<br />[-no-rule-nameserver]:跳过 nameserver 规则<br />[-no-rule-ipset]:跳过 ipset 和 nftset 规则。<br />[-no-rule-soa]:跳过 SOA(#) 规则<br />[-no-dualstack-selection]:停用双栈测速<br />[-no-speed-check]:停用测速<br />[-no-cache]:停止缓存 <br />[-force-aaaa-soa]: 禁用IPV6查询 <br />[-ipset]: 设置IPSet,参考ipset选项 <br />[-nftset]: 设置nftset,参考nftset选项| bind-tls :853 |
|
||||
| bind-https | DNS Over HTTPS 监听端口号 | [::]:853 | 可绑定多个端口。<br />IP:PORT@DEVICE: 服务器 IP:端口号@设备名<br />[-group]: 请求时使用的 DNS 服务器组<br />[-no-rule-addr]:跳过 address 规则<br />[-no-rule-nameserver]:跳过 nameserver 规则<br />[-no-rule-ipset]:跳过 ipset 和 nftset 规则。<br />[-no-rule-soa]:跳过 SOA(#) 规则<br />[-no-dualstack-selection]:停用双栈测速<br />[-no-speed-check]:停用测速<br />[-no-cache]:停止缓存 <br />[-force-aaaa-soa]: 禁用IPV6查询 <br />[-ipset]: 设置IPSet,参考ipset选项 <br />[-nftset]: 设置nftset,参考nftset选项| bind-https :853 |
|
||||
| bind-cert-file | SSL证书文件路径 | smartdns-cert.pem | 合法路径字符串 | bind-cert-file cert.pem |
|
||||
| bind-cert-key-file | SSL证书KEY文件路径 | smartdns-key.pem | 合法路径字符串 | bind-cert-key-file key.pem |
|
||||
| bind-cert-key-pass | SSL证书KEY文件密码 | 无 | 字符串 | bind-cert-key-pass password |
|
||||
|
||||
Reference in New Issue
Block a user