mirror of
https://github.com/apernet/OpenGFW.git
synced 2024-12-23 01:19:21 +08:00
docs: update socks rules
This commit is contained in:
parent
e6e9656ec6
commit
3367cccf8c
@ -99,6 +99,10 @@ workers:
|
|||||||
a: "0.0.0.0"
|
a: "0.0.0.0"
|
||||||
aaaa: "::"
|
aaaa: "::"
|
||||||
expr: dns != nil && dns.qr && any(dns.questions, {.name endsWith "v2ex.com"})
|
expr: dns != nil && dns.qr && any(dns.questions, {.name endsWith "v2ex.com"})
|
||||||
|
|
||||||
|
- name: block google socks
|
||||||
|
action: block
|
||||||
|
expr: string(socks?.req?.addr) endsWith "google.com" && socks?.req?.port == 80
|
||||||
```
|
```
|
||||||
|
|
||||||
#### サポートされるアクション
|
#### サポートされるアクション
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
[![License][1]][2]
|
[![License][1]][2]
|
||||||
|
|
||||||
[1]: https://img.shields.io/badge/License-MPL_2.0-brightgreen.svg
|
[1]: https://img.shields.io/badge/License-MPL_2.0-brightgreen.svg
|
||||||
|
|
||||||
[2]: LICENSE
|
[2]: LICENSE
|
||||||
|
|
||||||
**[中文文档](README.zh.md)**
|
**[中文文档](README.zh.md)**
|
||||||
@ -105,9 +104,9 @@ to [Expr Language Definition](https://expr-lang.org/docs/language-definition).
|
|||||||
aaaa: "::"
|
aaaa: "::"
|
||||||
expr: dns != nil && dns.qr && any(dns.questions, {.name endsWith "v2ex.com"})
|
expr: dns != nil && dns.qr && any(dns.questions, {.name endsWith "v2ex.com"})
|
||||||
|
|
||||||
- name: block google.com:80 via SOCKS5
|
- name: block google socks
|
||||||
action: block
|
action: block
|
||||||
expr: string(socks5?.req?.addr) endsWith "google.com" && socks5?.req?.port == 80
|
expr: string(socks?.req?.addr) endsWith "google.com" && socks?.req?.port == 80
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Supported actions
|
#### Supported actions
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
[![License][1]][2]
|
[![License][1]][2]
|
||||||
|
|
||||||
[1]: https://img.shields.io/badge/License-MPL_2.0-brightgreen.svg
|
[1]: https://img.shields.io/badge/License-MPL_2.0-brightgreen.svg
|
||||||
|
|
||||||
[2]: LICENSE
|
[2]: LICENSE
|
||||||
|
|
||||||
OpenGFW 是一个 Linux 上灵活、易用、开源的 [GFW](https://zh.wikipedia.org/wiki/%E9%98%B2%E7%81%AB%E9%95%BF%E5%9F%8E)
|
OpenGFW 是一个 Linux 上灵活、易用、开源的 [GFW](https://zh.wikipedia.org/wiki/%E9%98%B2%E7%81%AB%E9%95%BF%E5%9F%8E)
|
||||||
@ -100,9 +99,9 @@ workers:
|
|||||||
aaaa: "::"
|
aaaa: "::"
|
||||||
expr: dns != nil && dns.qr && any(dns.questions, {.name endsWith "v2ex.com"})
|
expr: dns != nil && dns.qr && any(dns.questions, {.name endsWith "v2ex.com"})
|
||||||
|
|
||||||
- name: block google.com:80 via SOCKS5
|
- name: block google socks
|
||||||
action: block
|
action: block
|
||||||
expr: string(socks5?.req?.addr) endsWith "google.com" && socks5?.req?.port == 80
|
expr: string(socks?.req?.addr) endsWith "google.com" && socks?.req?.port == 80
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 支持的 action
|
#### 支持的 action
|
||||||
|
Loading…
Reference in New Issue
Block a user