All of lore.kernel.org
 help / color / mirror / Atom feed
From: aristo7514 aristo7514 <aristo7514@gmail.com>
To: lartc@vger.kernel.org
Subject: [LARTC] Multiple gateways
Date: Fri, 10 Jun 2005 12:54:30 +0000	[thread overview]
Message-ID: <bb042488050610055427ab5a1f@mail.gmail.com> (raw)

Hello,

Since I could not figure out my previous problem, let me ask in a different way.

I have 3 networks inside my LAN. They are 172.16.55.0/24 ,
172.16.56.0/24 and 172.16.57.0/24 respectively. They all use eth0 as
an alias.

I also have 2 uplinks to different ISPs. One of them is leased line
and the other one is ADSL.

One of my uplink is 81.8.120.18/30 with gateway 81.8.120.17 on eth1
and the other one is 172.18.10.30/24 with gateway 172.18.10.2 on eth3.

I am trying to split my internal networks to these two providers.

So,
iptables -t nat -A POSTROUTING -s 172.16.55.0/24 -i eth1 -j MASQUERADE

iptables -t nat -A POSTROUTING -s 172.16.56.0/24 -i eth3 -j MASQUERADE

iptables -t nat -A POSTROUTING -s 172.16.55.0/24 -i eth1 -j MASQUERADE

This is what I am trying to set up. I also looked at the lartc.org and
tried to implement split access.

ip route add default scope global nexthop via 81.8.124.17 dev eth1
weight 1 nexthop via 172.18.10.2 dev eth3 weight 1

This command works if I ping from the linux router itself. It chooses
a path and successfully returns ping results.

But the NAT does not work.
I got a message;

MASQUERADE : Route sent us somewhere else.

What would be the solution to this problem?

Best Regards,
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

             reply	other threads:[~2005-06-10 12:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-10 12:54 aristo7514 aristo7514 [this message]
2005-06-10 13:23 ` [LARTC] Multiple gateways Edesio Costa e Silva
2005-06-12 20:24 ` aristo7514 aristo7514
2005-06-13  5:37 ` gypsy

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=bb042488050610055427ab5a1f@mail.gmail.com \
    --to=aristo7514@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.