Answer the question
In order to leave comments, you need to log in
Why does it substitute the wrong source ip when using policy-routing?
I'm trying to let the traffic of a specific user past the VPN in this way:
iptables -t mangle -A OUTPUT -m owner --uid-owner 1001 -j MARK --set-xmark 0xaaa
ip rule add fwmark 0xaaa table torrent
ip route add default via 192.168.0.1 dev enp2s0 src 192.168.0.125 table torrent
ip route add 192.168.0.0/24 dev enp2s0 table torrent
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question