mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Implement review suggestion
This commit is contained in:
parent
e74ca5774c
commit
d7a3d65881
1 changed files with 5 additions and 11 deletions
|
@ -165,17 +165,7 @@ func registerConfiguration() error {
|
|||
cfgOptionDisableAutoPermit = config.Concurrent.GetAsInt(CfgOptionDisableAutoPermitKey, int64(status.SecurityLevelsAll))
|
||||
cfgIntOptions[CfgOptionDisableAutoPermitKey] = cfgOptionDisableAutoPermit
|
||||
|
||||
rulesHelp := strings.ReplaceAll(`Rules are checked from top to bottom, stopping after the first match. Rules are entered in this format:
|
||||
|
||||
- Every rule starts with a "+" or "-" to determine whether to allow or block matching connections.
|
||||
- Then, a matching option for an IP, which are explained in detail below.
|
||||
- The optional third segment can be used to filter by network protocol and port: "TCP/80"
|
||||
- Examples:
|
||||
- "+ example.com TCP/80"
|
||||
- "+ US"
|
||||
- "- *"
|
||||
|
||||
IP address matching options:
|
||||
rulesHelp := strings.ReplaceAll(`Rules are checked from top to bottom, stopping after the first match. They can match:
|
||||
|
||||
- By address: "192.168.0.1"
|
||||
- By network: "192.168.0.1/24"
|
||||
|
@ -188,6 +178,10 @@ IP address matching options:
|
|||
- By country (based on IP): "US"
|
||||
- By filter list - use the filterlist ID prefixed with "L:": "L:MAL"
|
||||
- Match anything: "*"
|
||||
|
||||
Additionally, you may supply a protocol and port just behind that using numbers ("6/80") or names ("TCP/HTTP").
|
||||
In this case the rule is only matched if the protocol and port also match.
|
||||
Example: "192.168.0.1 TCP/HTTP"
|
||||
`, `"`, "`")
|
||||
|
||||
// Endpoint Filter List
|
||||
|
|
Loading…
Add table
Reference in a new issue