Как найти правило по номеру вывода pfctl во FreeBSD?

The answer is: In Unix-like systems, file names are composed of bytes, not characters. At least from the perspective of the kernel and its APIs.

A Unix-like kernel is normally neutral about any byte value but 000 (ASCII: NUL) and 057 (ASCII: slash). In Linux, there are no other restrictions at the filesystem layer, but certain FS drivers and certain their modes lead to the rejection of some names, usually due to the impossibility of translation. For example, one can’t create a filename with invalid UTF-8 on anything mounted with -o iocharset=utf8 (e. g. types cifs or vfat). None of DOS/Windows-compatible FSes will allow you to make 134 (ASCII: backslash) a part of a name. Or the msdos type will apply DOS restrictions concerning 8.3 names.

Ext3/ext4 isn’t known to have restrictions but aforementioned 000 and 057.

1
19.03.2018, 18:20
1 ответ
pfctl -s rules -vv

выведет что-то вроде:

@71 pass out quick on igb1.100 inet from 209.51.186.0/26 to 192.168.0.0/23 no state
[ Evaluations: 1064257   Packets: 354523    Bytes: 149293726   States: 0     ]
[ Inserted: uid 0 pid 1053 State Creations: 0     ]

@71 — это номер правила

0
28.01.2020, 00:38

Теги

Похожие вопросы