Re: IP traffic rerouting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 2009-08-14 00:44, Daniel Huhardeaux wrote:
>
> is there a solution to reroute all traffic (icmp, udp, tcp, ...) from
> one IP address to another one?


Routing tables are controlled with iproute2. Replace the variables by 
something appropriate. The freely choosable $number usually wants to be  
>= 1 to avoid surprises.

ip rule add from $srcaddr table $number prio $prio
ip route add default via $toaddr table $number

(The main routing table has number 254, and is usually at the lowest 
prio of 32767. The "prio $prio" part is thus usually optional in 
practice.)
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux