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.
Published at
2023-08-24 14:38:40Event JSON
{
"id": "577b2671dca4d888588e53c4f86d1dfff444e414c7d32508af8bcb5e7af96aae",
"pubkey": "b15e52e9623da51cfe460020e7da27a086de784731ae755e0bb94e9f1c113cb2",
"created_at": 1692887920,
"kind": 1,
"tags": [
[
"t",
"linux"
],
[
"t",
"networking"
],
[
"proxy",
"https://furry.engineer/users/uvok/statuses/110945102742551483",
"activitypub"
]
],
"content": "#linux #networking\n\nI know I can do\n\nip route add ... src \u003cip\u003e to set the source IP of a route.\n\nBut 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?\n\nIt should only do so if the \"intended\" recipient of the traceroute is within a specific subnet.",
"sig": "24fa6bec9818406ed6b6a6d02d833fa4deb0673e39baa002ec9dd06d256ce69cfc201c7dc318f64d0e8533551461f247c68047d5a7e0d8cfc68bac4450b18573"
}