Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-13 22:03:09 +00:00

update docs

This commit is contained in:
bol-van
2026-02-10 12:06:26 +03:00
parent 7db676e02c
commit d981391120
2 changed files with 17 additions and 0 deletions

View File

@@ -5203,6 +5203,15 @@ ipt_first_packets()
Outputs to stdout: `-m connbytes --connbytes-dir=original --connbytes-mode=packets --connbytes $RANGE`. `RANGE` is defined as "1:$1". If `$1` is "keepalive", nothing is output (no connbytes filter).
```
ipt_port_ipset()
# $1 - ipset name
# $2 - comma separated port or port range list. ranges are por1-port2
```
Creates "bitmap:port" ipset filled with the supplied port list. If the set already exists it's elements are replaced.
##### Working with nftables
```

View File

@@ -5382,6 +5382,14 @@ ipt_first_packets()
Выдает в stdout "-m connbytes --connbytes-dir=original --connbytes-mode=packets --connbytes $RANGE". RANGE определяется как "1:$1". Если $1 = "keepalive", не выдается ничего (нет фильтра по connbytes).
```
ipt_port_ipset()
# $1 - имя ipset
# $2 - список портов через запятую. диапазоны через "-"
```
Создает ipset типа bitamp:port со списком портов. Если ipset уже существует, заменяет в нем элементы.
##### Работа с nftables
```