[RFC] ipfw named states support
Dmitry Selivanov
sd at rlan.ru
Thu May 26 10:55:19 UTC 2016
18.05.2016 17:46, Andrey V. Elsukov пишет:
> We have the patch that adds named states support to ipfw.
> The idea is that we add a symbolic name-label to each dynamic state in
> addition to IP addresses, protocol and ports.
> This introduces new syntax for check-state and keep-state rules:
>
> check-state { token | default | any }
> keep-state { token | default }
> 1. Is this feature useful?
Yes.
> 2. How to commit it? Due to changed syntax it can break existing
> rulesets. Probably, we can add some mandatory prefix to state name, e.g.
> ':'.
Maybe create new opcode, e.g. "save-state", and deprecate "keep-state" with "save-state default".
I'm sorry I didn't understand what Lev Serebryakov suggests, and I could duplicate his suggestion.
Maybe there is a sense to add "search-state" option and use it instead of "check-state" action. E.g. "allow dst-port 80 search-state NAME".
More information about the freebsd-ipfw
mailing list