All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Stephan Jager" <lartc@medz.org>
To: lartc@vger.kernel.org
Subject: [LARTC] multiple inet and local connectivity
Date: Tue, 06 Aug 2002 19:21:27 +0000	[thread overview]
Message-ID: <marc-lartc-102866175822734@msgid-missing> (raw)

Hi,

I have 1 local network (eth0) and 2 internet connections.
I used the technique described at 4.2 in the LARTC to make a propper
connection to/from the both internet connections. This works fine.

I also use SNAT to provide an internet connection from my local net
(eth0). I use this iptables line:

iptables -A POSTROUTING -t nat -o eth1 -j SNAT --to-source 123.123.123.123
(123.123.123.123 is the IP address of the eth1 interface).

This workes fine. The problem is that I can't connect from my local
network the the IP address of eth1 and eth2!

For example: 10.0.0.2 -> 123.123.123.123 doesn't work, but
             10.0.0.2 -> 10.0.0.1 does work (eth0 address)

Also 10.0.0.2 -> 234.234.234.234 ain't working (eth2 address)

I can't seem to fix it. I think I need some additional routing rules, but
which ones I can't seem to find out.

Anybody got any tips?

Stephan


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

             reply	other threads:[~2002-08-06 19:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-06 19:21 Stephan Jager [this message]
2002-08-06 20:17 ` [LARTC] multiple inet and local connectivity Arthur van Leeuwen

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=marc-lartc-102866175822734@msgid-missing \
    --to=lartc@medz.org \
    --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.