All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nelson Castillo <nelsoneci@gmail.com>
To: lartc@vger.kernel.org
Subject: [LARTC] routing for multiple uplinks + DNAT (LVS in my case)
Date: Mon, 20 Jun 2005 16:42:58 +0000	[thread overview]
Message-ID: <2accc2ff050620094252b9dd2b@mail.gmail.com> (raw)

Hi.

Contents:

1) Introduction
2) 2 Questions

* Introduction:

I used this HOWTO to use multiple providers.

http://lartc.org/howto/lartc.rpdb.multiple-links.html

The box is a load balancer, using the Linux Virtual Server.

We have a problem with lost connections, and it seems you
get issues when you combine this setup with DNAT [1].

The proposed solution [1] is to use these rules to mark packages with the
conntrack module ... so I guess you mark all the packages that belong to
the connection when it's established (and every package before they
get DNATted).

# iptables -t mangle -A PREROUTING -m conntrack --ctorigdst $IP1 -j
MARK --set-mark=1
# iptables -t mangle -A PREROUTING -m conntrack --ctorigdst $IP2 -j
MARK --set-mark=2

And then use the mark to route the outgoing packages correctly.

# ip rule add fwmark 1 table T1
# ip rule add fwmark 2 table T2

[1] (Spanish) http://bulma.net/body.phtml?nIdNoticia!45&nIdPage=last

*  Questions

- Has anybody in this list experienced similar problems?

- I haven't tried this solution but I will today. I'd like to know if
there's a way to
  solve this problem without using fwmark.

  I'm using fwmarks already to ease the configuration of keepalived
and I'll need
  to find a workaround to another problem if I have to use fwmarks. It
is: I have 2
  redundant routers and I use heartbeat to set up the real (internet) IPs.

http://cgi.afc.no-ip.info/svnwiki.cgi/default/Keepalived%20with%20fwmark%20and%20no%20VIP

Regards,
Nelson.-

BTW: There should be a warning in the HOWTO for this DNAT issue, since this
         setup if fair common (I guess).

-- 
Homepage : http://geocities.com/arhuaco

The first principle is that you must not fool yourself
and you are the easiest person to fool.
     -- Richard Feynman.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

                 reply	other threads:[~2005-06-20 16:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=2accc2ff050620094252b9dd2b@mail.gmail.com \
    --to=nelsoneci@gmail.com \
    --cc=lartc@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.