Re: Route packets by source IP

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

 



On 03/19/08 13:21, Franck JONCOURT wrote:
This is perhaps not a good way to do, but I was thinking about using the __ip route__ command.

ip route add 192.168.2.0/24 via 192.168.0.2

where 192.168.2.0/24 would be the B1 network and 192.168.0.2 would be the B2 ip address.

Is that wrong ?

"ip route" routes traffic based on destination IP address not necessarily the network that it would pass through to get there. So if you have traffic headed to my web server, you can not use "ip route" to get it there with out specifying my servers IP address / subnet in the ip route command.



Grant. . . .
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux