uvok on Nostr: #linux #networking I know I can do ip route add ... src <ip> to set the source IP of ...
#linux #networking
I know I can do
ip route add ... src <ip> to set the source IP of a route.
But how can I set the preferred IP address the host should respond with when sending an ICMP reply to a traceroute UDP package (it is *not* on the interface the traceroute packet arrives on), without setting it globally on the computer? Do I need some advaced iptables/netfilter rules for that? Is it possible at all?
It should only do so if the "intended" recipient of the traceroute is within a specific subnet.
I know I can do
ip route add ... src <ip> to set the source IP of a route.
But how can I set the preferred IP address the host should respond with when sending an ICMP reply to a traceroute UDP package (it is *not* on the interface the traceroute packet arrives on), without setting it globally on the computer? Do I need some advaced iptables/netfilter rules for that? Is it possible at all?
It should only do so if the "intended" recipient of the traceroute is within a specific subnet.