Skip to content

netbird try (and can't) set /proc/sys/net/ipv4/conf/all/src_valid_mark #2290

@lfarkas

Description

@lfarkas

with the latest netbird and on home assistant with netbird addon i've got this error:

2024-07-19T14:57:37+02:00 ERRO client/internal/routemanager/systemops/systemops_linux.go:100: Error setting up sysctl: 1 errors occurred:
	* write sysctl net.ipv4.conf.all.src_valid_mark: open /proc/sys/net/ipv4/conf/all/src_valid_mark: read-only file system
2024-07-19T14:57:37+02:00 INFO client/internal/routemanager/manager.go:135: Routing setup complete

after i google it there are same problems with wireguard:
https://forums.docker.com/t/sysctl-error-setting-key-net-ipv4-conf-all-src-valid-mark-read-only-file-system/92567/8
but even though this container has NET_ADMIN and NET_RAW privileges it's still got this error, although the above
many solution eg this one:
https://community.home-assistant.io/t/wireguard-stopped-working/352348
suggest:
Turns out I can create this error at will with this in the config for a peer:
allowed_ips:
- 0.0.0.0/0
but this does not fail:
allowed_ips: []

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions