My desktop (F42) has a secondary LAN IP, in the same subnet as the primary, sharing the same network adapter, added via Network Manager. It works for incoming traffic because I’ve used it as the destination address for some game servers that were hosted in a Windows VM, with the necessary firewall rules to make that work, and that all still works. I also had used it as an outgoing IP, manually choosing it as an interface, to route traffic out my router to the internet through a VPN. But I’ve only just discovered at some point that stopped working, and it just defaulted to sending traffic out the primary IP, thus not exiting the VPN. Also doing something simple as “ping -I ” refuses to use the secondary IP. Based on ~4 hours of trying everything I know how to do and that google can help me find, with the ‘ip’ command, I cannot make this work again.
However I can login to a Fedora 40 server on my LAN, run 2 ‘ip’ commands (ip addr add/ip route add) to add a secondary address, and route, and successfully run a ping from either IP of my choosing. Thats it, 2 commands. I’ve tried to replicate this on my F42 machine just removing it from network manager and doing it from the command line, but still same behavior. Google really wants me to use ‘ip rule’ to add a new lookup table, I’ve tried that unsuccessfully. I’ve used that in the past with netfilter ‘mark’ extension to achieve similar things, but not sure here how its useful here.
If I ping myself, from my other self, the results come in ‘lo’ interface, from and to the requested IPs, but they wont leave the LAN adapter as anything other than the primary IP.
I’m assuming now since my upgrade from F40->F42 this has probably been broken.
So I’m just at a loss at the moment, I dont know what else to try, and google cant suggest anything new. sysctl setting change? As far as I can see I disabled nftables and just kept using iptables, and I dont see anything in there that should modify my traffic.
This is either so simple I can’t see the obvious in front of my face, or so obscure I’m never going to figure it out myself. Appreciate any advice.