*filter :INPUT ACCEPT [0:0] {% if salt["pillar.get"]("control-plane-protection:bgp:IPv6",None) != None %} -A INPUT -p tcp --dport 179 -m set --match-set control-plane-bgp-v6 src -j ACCEPT -A INPUT -p tcp --dport 179 -m tcp -j REJECT --reject-with tcp-reset {% endif %} :FORWARD ACCEPT [0:0] -A FORWARD -m set --match-set bcp38-cone-oface-v6 src,dst -j ACCEPT -A FORWARD -m set --match-set bcp38-else-oface-v6 src,dst -j DROP :OUTPUT ACCEPT [0:0] COMMIT *raw :PREROUTING ACCEPT [0:0] :OUTPUT ACCEPT [0:0] :VYATTA_CT_PREROUTING_HOOK - [0:0] -A PREROUTING -j NOTRACK COMMIT *nat :PREROUTING ACCEPT [0:0] :INPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] COMMIT *mangle :PREROUTING ACCEPT [0:0] {% for iface_name, iface_data in pillar['netbox']['interfaces'].items() %}{% if salt['pillar.get']('interfaces:'+iface_name+':netflow') %} -A PREROUTING -i {{ iface_name }} -m statistic --mode nth --packet 1 --every {{ salt['pillar.get']('netflow:sampling-rate',64) }} -j NFLOG --nflog-group 2 {% if salt['grains.get']('kernelrelease','') in ["4.19.52-amd64-vyos","4.19.84-amd64-vyos","4.19.106-amd64-vyos"] %}--nflog-range 64{% else %}--nflog-size 64{% endif %} --nflog-threshold 64 {% endif %}{% endfor %} :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] {% for iface_name, iface_data in pillar['netbox']['interfaces'].items() %}{% if salt['pillar.get']('interfaces:'+iface_name+':netflow') %} -A POSTROUTING -o {{ iface_name }} -m statistic --mode nth --packet 1 --every {{ salt['pillar.get']('netflow:sampling-rate',64) }} -j NFLOG --nflog-group 2 {% if salt['grains.get']('kernelrelease','') in ["4.19.52-amd64-vyos","4.19.84-amd64-vyos","4.19.106-amd64-vyos"] %}--nflog-range 64{% else %}--nflog-size 64{% endif %} --nflog-threshold 64 {% endif %}{% endfor %} COMMIT