What is Nostr?
uvok /
npub1k90…ag6a
2023-08-24 14:38:40

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.
Author Public Key
npub1k90996tz8kj3eljxqqsw0k385zrdu7z8xxh82hsth98f78q38jeqdsag6a