Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Gilad Benjamini" <gilad.benjamini@gmail.com>
To: "'Javier Gálvez Guerrero'" <javier.galvez.guerrero@gmail.com>,
	netfilter@vger.kernel.org
Subject: RE: Sending packets through different interfaces and with different IPs to the same destination
Date: Mon, 1 Dec 2008 12:25:47 -0800	[thread overview]
Message-ID: <49344860.20038e0a.4384.654a@mx.google.com> (raw)
In-Reply-To: <145d4e1a0812011137m69f2d524re51aad494c86064@mail.gmail.com>

Assuming this is a lab environment, and all you want to do is check
performance, your easiest solution is not iptables related.
You can run your tests in two different IP subnets, one for the wired and
one for the wireless.
Optimally, your server would have two physical NICs for a clean test.
Even if it doesn't, you can configure alias addresses on a single NIC on the
server.

> -----Original Message-----
> From: netfilter-owner@vger.kernel.org [mailto:netfilter-
> owner@vger.kernel.org] On Behalf Of Javier G?lvez Guerrero
> Sent: Monday, December 01, 2008 11:38 AM
> To: netfilter@vger.kernel.org
> Subject: Re: Sending packets through different interfaces and with
> different IPs to the same destination
> 
> Any idea about this?
> 
> Any help would be much appreciated. Thanks
> Javi
> 
> 
> 2008/11/28 Javier Gálvez Guerrero <javier.galvez.guerrero@gmail.com>:
> > 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@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


      reply	other threads:[~2008-12-01 20:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-28 15:08 Sending packets through different interfaces and with different IPs to the same destination Javier Gálvez Guerrero
2008-12-01 19:37 ` Javier Gálvez Guerrero
2008-12-01 20:25   ` Gilad Benjamini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49344860.20038e0a.4384.654a@mx.google.com \
    --to=gilad.benjamini@gmail.com \
    --cc=javier.galvez.guerrero@gmail.com \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox