<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/src/helpers/vyos-nft-time-refresh.py, branch rolling</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=rolling</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=rolling'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2026-10-17T19:43:27+00:00</updated>
<entry>
<title>firewall: T9474: keep time windows correct across UTC offset changes</title>
<updated>2026-10-17T19:43:27+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2026-10-17T19:43:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=c10229f44ed96b07a41014a7c8552c285d44a379'/>
<id>urn:sha1:c10229f44ed96b07a41014a7c8552c285d44a379</id>
<content type='text'>
nft converts hour matches to UTC when the ruleset is loaded, using the
offset of that moment. After a daylight saving change, or a change of the
system time-zone, every hour window was off until the next firewall commit.

- A new helper loads only the rules with an hour match again, in place, so
  sets such as dynamic, domain and GeoIP groups and all counters are kept.
  It is scheduled as a systemd timer for the next UTC offset change and
  re-arms itself; firewall and policy route commits arm or remove it.
- Changing the time-zone re-runs firewall and policy route.

The smoketest moves the clock to just before a change in Europe/Berlin and
checks that the window is refreshed and a dynamic group entry survives. It
only runs in the smoketest harness, as it changes the system clock.
</content>
</entry>
</feed>
