Persist rp_filter=0 on every router interface #539

Merged
benvin merged 1 commits from benvin/router-sysctl into develop 2026-10-04 16:02:01 +11:00
Member

Effective rp_filter is max(all, ). Setting all/default to 0 is not enough after a reboot: /usr/lib/sysctl.d/50-redhat.conf sets net.ipv4.conf.*.rp_filter = 1, which udev applies to every interface as it is created, so routed asymmetric traffic gets dropped once shorewall goes.

  • add net.ipv4.conf.*.rp_filter: 0 to the router role, overriding the vendor glob
  • disable enforce for it, since sysctl -n cannot read glob keys
Effective rp_filter is max(all, <iface>). Setting `all`/`default` to 0 is not enough after a reboot: `/usr/lib/sysctl.d/50-redhat.conf` sets `net.ipv4.conf.*.rp_filter = 1`, which udev applies to every interface as it is created, so routed asymmetric traffic gets dropped once shorewall goes. - add `net.ipv4.conf.*.rp_filter: 0` to the router role, overriding the vendor glob - disable `enforce` for it, since `sysctl -n` cannot read glob keys
unkin-agent added 1 commit 2026-10-04 15:51:14 +11:00
Persist rp_filter=0 on every router interface
ci/woodpecker/pr/puppet-lint Pipeline was successful
ci/woodpecker/pr/ruby-validate Pipeline was successful
ci/woodpecker/pr/yamllint Pipeline was successful
ci/woodpecker/pr/bolt-validate Pipeline was successful
ci/woodpecker/pr/erb-validate Pipeline was successful
ci/woodpecker/pr/epp-validate Pipeline was successful
ci/woodpecker/pr/ruby-check Pipeline was successful
ci/woodpecker/pr/puppet-validate Pipeline was successful
c3cf5b2693
Author
Member

No findings.

No findings.
benvin merged commit b74bced771 into develop 2026-10-04 16:02:01 +11:00
benvin deleted branch benvin/router-sysctl 2026-10-04 16:02:01 +11:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/puppet-prod#539