GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — sysctl.d: switch net.ipv4.conf.all.rp_filter from 1 to 2 by lkundrak · Pull Request #10971 · systemd/systemd

Conversation

@lkundrak

@lkundrak lkundrak commented Nov 28, 2018

Copy link
Copy Markdown
Contributor

This switches the RFC3704 Reverse Path filtering from Strict mode to Loose
mode. The Strict mode breaks some pretty common and reasonable use cases,
such as keeping connections via one default route alive after another one
appears (e.g. plugging an Ethernet cable when connected via Wi-Fi).

The strict filter also makes it impossible for NetworkManager to do
connectivity check on a newly arriving default route (it starts with a
higher metric and is bumped lower if there's connectivity).

Kernel's default is 0 (no filter), but a Loose filter is good enough. The
few use cases where a Strict mode could make sense can easily override
this.

The distributions that don't care about the client use cases and prefer a
strict filter could just ship a custom configuration in
/usr/lib/sysctl.d/ to override this.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@lkundrak
sysctl.d: switch net.ipv4.conf.all.rp_filter from 1 to 2
6caa14f
This switches the RFC3704 Reverse Path filtering from Strict mode to Loose
mode. The Strict mode breaks some pretty common and reasonable use cases,
such as keeping connections via one default route alive after another one
appears (e.g. plugging an Ethernet cable when connected via Wi-Fi).

The strict filter also makes it impossible for NetworkManager to do
connectivity check on a newly arriving default route (it starts with a
higher metric and is bumped lower if there's connectivity).

Kernel's default is 0 (no filter), but a Loose filter is good enough. The
few use cases where a Strict mode could make sense can easily override
this.

The distributions that don't care about the client use cases and prefer a
strict filter could just ship a custom configuration in
/usr/lib/sysctl.d/ to override this.
@keszybz

keszybz commented Nov 28, 2018

Copy link
Copy Markdown
Member

LGTM.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@keszybz

keszybz commented Nov 28, 2018

Copy link
Copy Markdown
Member

Bonus points for the branch name ;)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@poettering poettering added the sysctl label Nov 28, 2018
@poettering
poettering merged commit 230450d into systemd:master Nov 28, 2018
@lucab lucab mentioned this pull request Jul 18, 2019
Default reverse packet filter setting (rp_filter) coreos/fedora-coreos-tracker#219
Closed
@superseb superseb mentioned this pull request Oct 22, 2019
Canal fails to start on a Ubuntu 19.04 nodes when added to a custom cluster. rancher/rancher#23316
Closed
@dghubble dghubble mentioned this pull request Jun 21, 2020
Fedora CoreOS 32.x breaks pod-to-host and pod-to-external cilium/cilium#12217
Closed
@BerriJ BerriJ mentioned this pull request Aug 7, 2026
Change networking.firewall.checkReversePath to "loose" NixOS/nixpkgs#550306
Merged
2 of 13 tasks
BerriJ added a commit to BerriJ/nixpkgs that referenced this pull request Aug 7, 2026
@BerriJ
nixos/firewall: change networking.firewall.checkReversePath to "loose"
5585e99
The current default strict is neither the default of the linux kernel nor the default of systemd. Furthermore strict can break valid setups involving split DNS where the DNS resolver is not in the same broadcast domain as the client.

Systemd changed the default value in November 2018 from strict to loose so this PR aligns the module with upstream (see systemd/systemd#10971).

The Kernel default is 0 (see https://sysctl-explorer.net/net/ipv4/rp_filter/). Note that such an option does not exist for IPV6.
BerriJ added a commit to BerriJ/nixpkgs that referenced this pull request Aug 10, 2026
@BerriJ
Change networking.firewall.checkReversePath to "loose"
68bd3f3
The current default strict is neither the default of the linux kernel
nor the default of systemd. Furthermore strict can break valid setups
involving split DNS where the DNS resolver is not in the same broadcast
domain as the client.

Systemd changed the default value in November 2018 from strict to loose
so this PR aligns the module with upstream (see systemd/systemd#10971).

The Kernel default is 0:
https://sysctl-explorer.net/net/ipv4/rp_filter/

Note that such an option does not exist for IPV6.
BerriJ added a commit to BerriJ/nixpkgs that referenced this pull request Aug 10, 2026
@BerriJ
nixos/firewall: change networking.firewall.checkReversePath to "loose"
432b5c8
The current default strict is neither the default of the linux kernel
nor the default of systemd. Furthermore strict can break valid setups
involving split DNS where the DNS resolver is not in the same broadcast
domain as the client.

Systemd changed the default value in November 2018 from strict to loose
so this PR aligns the module with upstream (see systemd/systemd#10971).

The Kernel default is 0:
https://sysctl-explorer.net/net/ipv4/rp_filter/

Note that such an option does not exist for IPV6.
BerriJ added a commit to BerriJ/nixpkgs that referenced this pull request Aug 13, 2026
@BerriJ
nixos/firewall: change networking.firewall.checkReversePath to "loose"
de02cdd
The current default strict is neither the default of the linux kernel
nor the default of systemd. Furthermore strict can break valid setups
involving split DNS where the DNS resolver is not in the same broadcast
domain as the client.

Systemd changed the default value in November 2018 from strict to loose
so this PR aligns the module with upstream (see systemd/systemd#10971).

The Kernel default is 0:
https://sysctl-explorer.net/net/ipv4/rp_filter/

Note that such an option does not exist for IPV6.
BerriJ added a commit to BerriJ/nixpkgs that referenced this pull request Aug 23, 2026
@BerriJ
nixos/firewall: change networking.firewall.checkReversePath to "loose"
e95469e
The current default strict is neither the default of the linux kernel
nor the default of systemd. Furthermore strict can break valid setups
involving split DNS where the DNS resolver is not in the same broadcast
domain as the client.

Systemd changed the default value in November 2018 from strict to loose
so this PR aligns the module with upstream (see systemd/systemd#10971).

The Kernel default is 0:
https://sysctl-explorer.net/net/ipv4/rp_filter/

Note that such an option does not exist for IPV6.
BerriJ added a commit to BerriJ/nixpkgs that referenced this pull request Aug 23, 2026
@BerriJ
nixos/firewall: change networking.firewall.checkReversePath to "loose"
75be2a4
The current default strict is neither the default of the linux kernel
nor the default of systemd. Furthermore strict can break valid setups
involving split DNS where the DNS resolver is not in the same broadcast
domain as the client.

Systemd changed the default value in November 2018 from strict to loose
so this PR aligns the module with upstream (see systemd/systemd#10971).

The Kernel default is 0:
https://sysctl-explorer.net/net/ipv4/rp_filter/

Note that such an option does not exist for IPV6.
BerriJ added a commit to BerriJ/nixpkgs that referenced this pull request Aug 26, 2026
@BerriJ
nixos/firewall: change networking.firewall.checkReversePath to "loose"
fb53ac9
The current default strict is neither the default of the linux kernel
nor the default of systemd. Furthermore strict can break valid setups
involving split DNS where the DNS resolver is not in the same broadcast
domain as the client.

Systemd changed the default value in November 2018 from strict to loose
so this PR aligns the module with upstream (see systemd/systemd#10971).

The Kernel default is 0:
https://sysctl-explorer.net/net/ipv4/rp_filter/

Note that such an option does not exist for IPV6.
BerriJ added a commit to BerriJ/nixpkgs that referenced this pull request Sep 2, 2026
@BerriJ
nixos/firewall: change networking.firewall.checkReversePath to "loose"
f5c829e
The current default strict is neither the default of the linux kernel
nor the default of systemd. Furthermore strict can break valid setups
involving split DNS where the DNS resolver is not in the same broadcast
domain as the client.

Systemd changed the default value in November 2018 from strict to loose
so this PR aligns the module with upstream (see systemd/systemd#10971).

The Kernel default is 0:
https://sysctl-explorer.net/net/ipv4/rp_filter/

Note that such an option does not exist for IPV6.
BerriJ added a commit to BerriJ/nixpkgs that referenced this pull request Sep 4, 2026
@BerriJ
nixos/firewall: change networking.firewall.checkReversePath to "loose"
fa581aa
The current default strict is neither the default of the linux kernel
nor the default of systemd. Furthermore strict can break valid setups
involving split DNS where the DNS resolver is not in the same broadcast
domain as the client.

Systemd changed the default value in November 2018 from strict to loose
so this PR aligns the module with upstream (see systemd/systemd#10971).

The Kernel default is 0:
https://sysctl-explorer.net/net/ipv4/rp_filter/

Note that such an option does not exist for IPV6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

sysctl

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@lkundrak @keszybz @poettering
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.