policy based routing with nftables and networkd

K4PEMODE

New Member
Joined
Feb 5, 2024
Messages
2
Reaction score
0
Credits
19
Hello,

I've been trying to get my head around routing some IP ranges through wireguard client while still have access to my LAN but so far I've not been successful.

Here is some pictures where I am stuck with.

nftables
nftables.png

networkd-wg0-network
wg0-network.png

networkd-wg0-netdev
wg0-netdev.png

ip rule
ip-rule.png

ip route
ip-route.png

conntrack showing 0x2 mark is applied
conntrack.png

I cannot figure this out, any help to right direction is appreciated highly!
 


I have done this with classic iptables and classic static network but this doesnt help you?
I don't know. I've just tried these as they are on base system and I find them easy to use. Just can't figure out whats wrong what I am trying to achieve
 

Members online


Latest posts

Top