Skip to content

ip rule fwmark doesn't work #11

@xedoc

Description

@xedoc

To reproduce it, add a rule:
ip rule add to 1.1.1.1 fwmark 1 lookup 1
ip route add default via 127.0.0.1

and check route for 1.1.1.1 with and without the mark:
ip route get 1.1.1.1
ip route get 1.1.1.1 mark 1

Both will return the same result and that's wrong behavior.
First command should return default gateway from the main table (ip route show)
Second command should return dev lo

What is weird - it works if I use tos instead of fwmark.

I've tried different distros (ubuntu, debian, centos) for my M2 Berry. It doesn't work. Seems there is some problem with the kernel options or something else.
CONFIG_IP_ADVANCED_ROUTER is set to y in /proc/config.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions