Skip to content

Commit

Permalink
fixup! 86df020 network: domains: add firewall rules for multidomain a…
Browse files Browse the repository at this point in the history
…nd v6upstream
  • Loading branch information
herbetom committed Nov 30, 2020
1 parent 86df020 commit f356569
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion network/domains.sls
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ include:

dom{{ domain_id }}-network-up-cron:
cron:
{%- if not ("roles" in pillar and 'gateway' in pillar.roles and with_fastd) %}
{%- if not ("roles" in pillar and 'gateway4' in pillar.roles and with_fastd) %}
- present
{%- else %}
- absent
Expand Down
2 changes: 1 addition & 1 deletion network/files/nftables-gw-domain.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ table inet mangle {

{%- if "roles" in pillar and 'gateway6' in pillar.roles %}
# mss = transport mtu - (batman-adv + ether) - ipv6 - tcp
ip version 6 iifname "dom{{ domain_id }}-br" oifname "{{ public_interface) }}" meta l4proto tcp tcp flags & (syn|rst) == syn counter tcp option maxseg size set {{ mtu - 32 - 40 - 20 }}
ip version 6 iifname "dom{{ domain_id }}-br" oifname "{{ public_interface }}" meta l4proto tcp tcp flags & (syn|rst) == syn counter tcp option maxseg size set {{ mtu - 32 - 40 - 20 }}
ip version 6 iifname "{{ public_interface }}" oifname "dom{{ domain_id }}-br" meta l4proto tcp tcp flags & (syn|rst) == syn counter tcp option maxseg size set {{ mtu - 32 - 40 - 20 }}
{%- endif %}
}
Expand Down

0 comments on commit f356569

Please sign in to comment.