Sending packets through different interfaces and with different IPs to the same destination

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

 



Hi all,

I want to monitor the quality of two different interfaces on a
client-server architecture. Let the interfaces be a wired ethernet
(eth0) and a wireless adapter (ath0). I want to use IPERF to get
performance statistics from these two interfaces. In the server I
start two different IPERF processes with two different ports (60301
for ath0 connections and 60302 for eth0 connections) listening to the
client to send dummy packets in order to get statistics.

In the client side I have configured interface ath0 with IP x.x.x.178
and eth0 with IP x.x.x.179 and I want the IPERF process sending
packets to server port 60301 (this is an argument for IPERF) sends
them through the ath0 interface with IP 178 and IPERF process sending
packets to server port 60302 does it through the eth0 interface with
IP 179, just as they are configured. Then the server receives these
packets and process them properly (acknowledging them through the
correct client interface and IP). It could be seen as a sort of
interface load balancing, but all load balancing examples I've found
on the Internet are targeted to router load balancing, and that's not
what I want.

I've been reading some iptables documentation through the official
site and other similar cases found googling and I've tried some
configurations with IPTABLES and IP ROUTE (I have used SNAT, TOS and
MARK) in order to get this working but everything I've tried hasn't
worked. Always some links fail to get the proper IP or MAC and the
configuration becomes unstable after a while, working correctly once
and the next time wrong.

I would like someone to help me with any piece of advice, idea or
similar experience reporting, then I can make this work as desired.
Any help would be much appreciated.


Regards,
Javi
--
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