All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel huhardeaux <daniel.huhardeaux@tootai.com>
To: netfilter@vger.kernel.org
Subject: Re: Using set mark to split traffic against 2 IF
Date: Wed, 27 Feb 2013 23:17:43 +0100	[thread overview]
Message-ID: <512E8607.5020201@tootai.com> (raw)
In-Reply-To: <512B7507.7000008@tootai.com>

Le 25/02/2013 15:28, Daniel huhardeaux a écrit :
> Hello,
>
> I'm running a Debian Squeeze with iptables 1.4.8. The server has 3 
> physical interfaces, local one (eth2) being bridged as br0. Both other 
> interfaces are connected too 2 providers in ADSL (eth0) and SDSL (eth1).
>
> Default route is going out through eth1. Two computers are going out 
> using eth1, ip rule make this setup working.
>
> What I want now, is to mark packets 0x1 for eth0 0x2 (or nothing) for 
> eth1, so I will be able to use the links by services for instane (like 
> ssh and http connections going out using eth0, doesn't matter which 
> computer) rest of traffic using the default route.

I got it, for archives. Two problems:

. -J CONNMARK doesn't do the job as -j MARK does
. have to deativate reverse path filtering which protect from IP 
spoofing ( /etc/sysctl.conf net.ipv4.conf.all.rp_filter =0)

More info here 
http://www.sysresccd.org/Sysresccd-Networking-EN-Iptables-and-netfilter-load-balancing-using-connmark

Regards

-- 
TOOTAi

      reply	other threads:[~2013-02-27 22:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-25 14:28 Using set mark to split traffic against 2 IF Daniel huhardeaux
2013-02-27 22:17 ` Daniel huhardeaux [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=512E8607.5020201@tootai.com \
    --to=daniel.huhardeaux@tootai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.