From: Joel Kleppinger <jkleppinger@earthlink.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Route 2 Internet connections on a local LAN
Date: Tue, 24 Apr 2001 20:34:45 +0000 [thread overview]
Message-ID: <marc-lartc-98814453809368@msgid-missing> (raw)
In-Reply-To: <marc-lartc-98812977523008@msgid-missing>
Ramin, you are my hero.
I've spent the last 6+ months off and on trying to figure this little
problem out and then within an hour of posting the question to this mailing
list, you respond with what I needed.
I compiled iproute2
then did the two ip lines described in that little HOWTO:
ip ru add from my.DSL.ip.x lookup 4
ip ro add 0.0.0.0/0 via my.DSL.ISP.gateway table 4
And it worked. Too sweet.
Now to figure out exactly what that did, how to manipulate it for different
situations, and see what security implications that might have opened up
(since the box is supposed to be theoretically considered a "firewall").
Thanks. You rock.
:)
Joel
At 02:00 PM 4/24/2001 -0400, Ramin Alidousti wrote:
>I can definitely give you the smile :-)
>
>As for your problem; I think that this has already been asked in
>other mailing lists but I haven't seen any answer. What you want
>to do is "policy-routing" based on the source IP (for your outgoing
>traffic). Take a look at "http://kewl.phear.org/policy/". It might
>help.
>
>Ramin
>
>
>On Tue, Apr 24, 2001 at 11:29:12AM -0500, Joel Kleppinger wrote:
>
> > I know it is poor form to ask a question after just joining a mailing
> list,
> > but I searched around for an archive and couldn't find out. I pray you'll
> > forgive my brashness.
> >
> > What I am trying to do is have 2 internet interfaces properly routing on
> > the same box using the 2.4 kernel. I have a cable modem and a DSL modem
> > (eth2) running into a single server which provides a few services to the
> > outside world, including HTTP. This server also is forwarding the cable
> > modem NIC (eth1) to the internal LAN (eth0) using SNAT. If I switch the
> > default route and enable iptables to forward the DSL modem to LAN, then
> > that works fine as well. So all 3 interfaces are effectively working, but
> > only 2 of the Internet interfaces at a time. I've tried making both Net
> > interfaces the default route, but it only routes the interface that was
> > last made default.
> >
> > I want to make it so that someone can access the machine from either
> > Internet IP (both static) so I can use the DSL interface (eth2) as a
> server
> > or route certain ports coming in on eth2 it specifically to another server
> > behind the routing machine. I would like this without interrupting the
> > current cable modem SNAT connection.
> >
> > I have discussed this notion with a lot of people, and it seems that no
> one
> > really knows how to do this. It seems like it really shouldn't be that
> > hard to put services out over specific interfaces. So I ask here. If
> > anyone can give me any sort of guidance, direction, even a smile, I would
> > be IMMENSELY grateful.
> >
> > Thank you,
> >
> > Joel Kleppinger
> >
> >
> > _______________________________________________
> > LARTC mailing list / LARTC@mailman.ds9a.nl
> > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:
> http://ds9a.nl/2.4Routing/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
next prev parent reply other threads:[~2001-04-24 20:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-24 16:29 [LARTC] Route 2 Internet connections on a local LAN Joel Kleppinger
2001-04-24 18:00 ` Ramin Alidousti
2001-04-24 20:34 ` Joel Kleppinger [this message]
2001-04-25 7:27 ` 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-98814453809368@msgid-missing \
--to=jkleppinger@earthlink.net \
--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.