I would like to know if it's possible to tell a Linux kernel to route all packets destinated to X via interface/ip Y but only in case the source IP address would be a specific one.
Any routing decisions based not on destination IP address called PBR (policy-based routing). Usually, PBR is implemented via firewall, so look for possibility to change out interface for packet in iptables.
Yes that's called source routing :
You can have more informations here :
source routing in the lartc guide
Any routing decisions based not on destination IP address called PBR (policy-based routing). Usually, PBR is implemented via firewall, so look for possibility to change out interface for packet in iptables.