diff options
| author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-08-31 12:46:51 +0300 |
|---|---|---|
| committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-08-31 17:30:57 +0000 |
| commit | 3489089000a43a533fcd89282b0ced2434851c03 (patch) | |
| tree | 24b42a02eedbfaa2323ec65a148848f996ecf3b5 /python/vyos/firewall.py | |
| parent | 69bcdb9a680b33422d041fd03e70c25094bfa6a2 (diff) | |
| parent | 69f79beee2070906b68f2b910296c362e7216278 (diff) | |
| download | veeos-1x-3489089000a43a533fcd89282b0ced2434851c03.tar.gz veeos-1x-3489089000a43a533fcd89282b0ced2434851c03.zip | |
nat: T538: Move nat configs to /run directory
Diffstat (limited to 'python/vyos/firewall.py')
| -rw-r--r-- | python/vyos/firewall.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/vyos/firewall.py b/python/vyos/firewall.py index 3e2de4c3f..663c4394a 100644 --- a/python/vyos/firewall.py +++ b/python/vyos/firewall.py @@ -297,6 +297,11 @@ def parse_rule(rule_conf, fw_name, rule_id, ip_name): if tcp_flags: output.append(parse_tcp_flags(tcp_flags)) + # TCP MSS + tcp_mss = dict_search_args(rule_conf, 'tcp', 'mss') + if tcp_mss: + output.append(f'tcp option maxseg size {tcp_mss}') + output.append('counter') if 'set' in rule_conf: |
