diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-08-18 17:09:17 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-08-18 21:28:28 +0000 |
commit | fd15f9d2ab6a7e5bbc07ff2e8b10c064984492ce (patch) | |
tree | 2861f3aa5edb1f67bf52ac7f6daefe3290952efa /interface-definitions/include/firewall | |
parent | 1f880973e221b91ac843a27d2e4c0b3de1880b97 (diff) | |
download | vyos-1x-fd15f9d2ab6a7e5bbc07ff2e8b10c064984492ce.tar.gz vyos-1x-fd15f9d2ab6a7e5bbc07ff2e8b10c064984492ce.zip |
firewall: T4622: Add TCP MSS option
Ability to drop|accept packets based on TCP MSS size
set firewall name <tag> rule <tag> tcp mss '501-1460'
Diffstat (limited to 'interface-definitions/include/firewall')
-rw-r--r-- | interface-definitions/include/firewall/tcp-flags.xml.i | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/interface-definitions/include/firewall/tcp-flags.xml.i b/interface-definitions/include/firewall/tcp-flags.xml.i index b99896687..5a7b5a8d3 100644 --- a/interface-definitions/include/firewall/tcp-flags.xml.i +++ b/interface-definitions/include/firewall/tcp-flags.xml.i @@ -114,6 +114,23 @@ </node> </children> </node> + <leafNode name="mss"> + <properties> + <help>Maximum segment size (MSS)</help> + <valueHelp> + <format>u32:1-16384</format> + <description>Maximum segment size</description> + </valueHelp> + <valueHelp> + <format><min>-<max></format> + <description>TCP MSS range (use '-' as delimiter)</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--range 1-16384"/> + <validator name="range" argument="--min=1 --max=16384"/> + </constraint> + </properties> + </leafNode> </children> </node> <!-- include end --> |