跳转到内容
shoes

http_host_sniffing.yaml

所有示例

使用前请修改地址、凭据、证书路径和其他部署相关的值。这是完整的源文件,但不保证未经修改即可在你的机器上运行。请阅读文件中的注释了解前置条件,然后对修改后的文件运行 shoes check。

examples/http_host_sniffing.yaml
# Host selects the initial route, never a replacement destination or port.
# Later requests on the same stream keep that route, even if Host changes.
# Host is chosen by the client, not an authenticated destination identity.
- address: '0.0.0.0:1080'
protocol:
type: socks
username: "proxy-user"
password: "replace-this-password"
sniff: true
rules:
- masks:
- "0.0.0.0/8"
- "10.0.0.0/8"
- "172.16.0.0/12"
- "192.168.0.0/16"
- "127.0.0.0/8"
- "169.254.0.0/16"
- "::/128"
- "::1/128"
- "fc00::/7"
- "fe80::/10"
action: block
- masks: example.com
action: allow

查看此修订版本的源文件