<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/data/templates/firewall/nftables-zone.j2, branch feature/T9082-codeql-cpp</title>
<subtitle>VyOS command definitions, scripts, and utilities (mirror of https://github.com/vyos/vyos-1x.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-1x.git/atom?h=feature%2FT9082-codeql-cpp</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=feature%2FT9082-codeql-cpp'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2026-07-01T19:51:21+00:00</updated>
<entry>
<title>firewall: T8761: re-introduce VRF interface names in generated firewall config</title>
<updated>2026-07-01T19:51:21+00:00</updated>
<author>
<name>David Vølker</name>
<email>david@voelker.dk</email>
</author>
<published>2026-06-01T06:09:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=0d3ac22b95cef90e7c54ef823c00bb59b935c158'/>
<id>urn:sha1:0d3ac22b95cef90e7c54ef823c00bb59b935c158</id>
<content type='text'>
This change re-implements the intended behaviour from T4180 aswell as from
T4506, it ensures that both the vrf-member interface aswell as the vrf itself
is added as an oifname -&gt; meaning that traffic traversing and originating from
withing VyOS is matches outbound.

Changes done by c-po:
* re-sort dependency list to keep diff low
* vyos.configdict.is_vrf_changed() should return early and not carry
  over the to-be return value
* keep common coding style (dict by . separation) in nftables-zone.j2

Co-authored-by: Christian Breunig &lt;christian@breunig.cc&gt;
</content>
</entry>
<entry>
<title>firewall: T7739: Default ruleset for firewall zones</title>
<updated>2025-10-21T23:46:37+00:00</updated>
<author>
<name>Adam Schultz</name>
<email>adam.schultz@live.com</email>
</author>
<published>2025-08-17T02:29:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=cc5895fe61f938189e229dffb7746fc93aac0f3b'/>
<id>urn:sha1:cc5895fe61f938189e229dffb7746fc93aac0f3b</id>
<content type='text'>
In large networks with many zones where simple allow/deny rules are not sufficient,
zones become tedious to manage. Many use cases can be simplified by providing an
ability to define a default ruleset for traffic from other zones. This change proposes
adding the follwing syntax:
   set firewall zone &lt;name&gt; default_firewall name &lt;name&gt;
   set firewall zone &lt;name&gt; default_firewall ipv6_name &lt;name&gt;

The proposed behavior is the following:
   local in:
      The default firewall ruleset for the local zone will be appended after all
      from configurations.
   local out:
      If a non-local zone does not have a from local ruleset but does have a
      default_firewall ruleset, the default_firewall ruleset will be appended using
      oifname
   forward:
      The default firewall ruleset for the zone will be appended after all from
      configurations

To keep the behavior consistent with from ruleset configurations, a return is appended
after the default_firewall ruleset.

The proposed behavior differs slightly from the default_policy configuration for the
local out chains. The default_policy applied in the out templates comes from the local
zone, not the actual outbound zone. The proposed change does not amend this, but does
make default_firewall logically consistent with the intent of the out rules.
</content>
</entry>
<entry>
<title>firewall: T7452: update rule generation for Zone-based firewall</title>
<updated>2025-06-30T06:28:40+00:00</updated>
<author>
<name>David Vølker</name>
<email>davvol@davvol.dk</email>
</author>
<published>2025-06-30T06:28:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=e14461a58ba0dd18dff7f9e80da03350ebf1b404'/>
<id>urn:sha1:e14461a58ba0dd18dff7f9e80da03350ebf1b404</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vrf: T7544: Ensure correct quoting for VRF ifnames in nftables</title>
<updated>2025-06-26T14:23:13+00:00</updated>
<author>
<name>Andrew Topp</name>
<email>andrewt@telekinetica.net</email>
</author>
<published>2025-06-26T14:23:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=c741a290261eb53d5f9ca4849109f19ced8fda9f'/>
<id>urn:sha1:c741a290261eb53d5f9ca4849109f19ced8fda9f</id>
<content type='text'>
* For VRF create/delete:
  * Simple dquoting, as before, was parsed away by the shell
  * Just escaping the double quotes could cause issues with the shell mangling
    VRF names (however unlikely)
  * Wrapping original quotes in shell-escaped single quotes is a quick &amp; easy
    way to guard against both improper shell parsing and string names being
    taken as nft keywords.

* Firewall configuration:
  * Firewall "interface name" rules support VRF ifnames and used them unquoted,
    fixed for nft_rule template tags (parse_rule)
  * Went through and quoted all iif/oifname usage by zones and interface
    groups. VRF ifnames weren't available for all cases, but there is
    no harm in completeness.
  * For this, also created a simple quoted_join template filter to replace
    any use of |join(',')

* PBR calls nft but doesn't mind the "vni" name - table IDs used instead

I may have missed some niche nft use-cases that would be exposed to this problem.
</content>
</entry>
<entry>
<title>T6841: firewall: Fixed issues in ZBF when using VRFs</title>
<updated>2025-01-06T11:05:22+00:00</updated>
<author>
<name>aapostoliuk</name>
<email>a.apostoliuk@vyos.io</email>
</author>
<published>2024-12-17T11:39:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=4a194b32509ffcd9574bb7571a5a6347f7dc4e42'/>
<id>urn:sha1:4a194b32509ffcd9574bb7571a5a6347f7dc4e42</id>
<content type='text'>
Improve config parsing for ZBF when using VRFs and interfaces attached to VRFs
</content>
</entry>
<entry>
<title>T6841: firewall: improve config parsing for ZBF when using VRFs and interfaces attached to VRFs</title>
<updated>2025-01-06T11:05:22+00:00</updated>
<author>
<name>Nicolas Fort</name>
<email>nicolasfort1988@gmail.com</email>
</author>
<published>2024-10-29T19:05:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=df176d9b9b4cc67ae509ae2ff17a02f2520cc881'/>
<id>urn:sha1:df176d9b9b4cc67ae509ae2ff17a02f2520cc881</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T5922: firewall: fix intra-zone filtering parsing rules; update firewall smoketest</title>
<updated>2024-01-12T13:52:26+00:00</updated>
<author>
<name>Nicolas Fort</name>
<email>nicolasfort1988@gmail.com</email>
</author>
<published>2024-01-12T13:52:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=5c4c873f9c36459bc7bad73208450ee802440929'/>
<id>urn:sha1:5c4c873f9c36459bc7bad73208450ee802440929</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T5775: firewall: re-add state-policy to firewall. These commands are now included in &lt;set firewall global-options state-policy&gt; node.</title>
<updated>2023-11-24T10:24:48+00:00</updated>
<author>
<name>Nicolas Fort</name>
<email>nicolasfort1988@gmail.com</email>
</author>
<published>2023-11-24T10:24:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=64ee13cf9374d6e726570a8d0083c2e7a386a873'/>
<id>urn:sha1:64ee13cf9374d6e726570a8d0083c2e7a386a873</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T5637: firewall: extend rule for default-action to firewall bridge, in order to be able to catch logs using separte rule for default-action</title>
<updated>2023-11-22T11:38:00+00:00</updated>
<author>
<name>Nicolas Fort</name>
<email>nicolasfort1988@gmail.com</email>
</author>
<published>2023-11-22T11:38:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=c45b695ca068f018910eb7513e01657adb7abbbe'/>
<id>urn:sha1:c45b695ca068f018910eb7513e01657adb7abbbe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T5541: firewall zone: re add firewall zone-base firewall</title>
<updated>2023-10-13T14:12:58+00:00</updated>
<author>
<name>Nicolas Fort</name>
<email>nicolasfort1988@gmail.com</email>
</author>
<published>2023-10-13T14:12:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=c74ecbaaccde377653d2a9daa07556f3b8f7cd3e'/>
<id>urn:sha1:c74ecbaaccde377653d2a9daa07556f3b8f7cd3e</id>
<content type='text'>
</content>
</entry>
</feed>
