From: "Larry Flathmann" <larryf@sdintegrators.com>
To: lartc@vger.kernel.org
Subject: [LARTC] Subnet/routing question
Date: Wed, 10 Jul 2002 17:55:29 +0000 [thread overview]
Message-ID: <marc-lartc-102632402821005@msgid-missing> (raw)
Forgive me if this is something so simple that i
should already know it, but i need to understand
if i can accomplish this with Linux routing.
We have a /26 subnet from our ISP, and we have
been using a Linux box as a firewall to put all
our workstations behind NAT, with port forwarding
for any box that's providing a service to the
whole world.
We now need to implement a system which will not
support any kind of NAT - it requires having an external IP.
Is it possible to use Linux routing to break up
the /26 subnet into two /27 subnets, and to do
NAT on addresses in one of the /27 subnets and to
route addresses on the other /27 subnet straight
through to that internal network?
This is what i've tried, which i haven't gotten to work:
ISP
[x.y.z.193/26]
|
|
[x.y.z.194/27 eth0]
[x.y.z.225/27 eth0:0]
Linux Firewall
[192.168.0.0/24 eth1] (for NAT connections through
the x.y.z.192/27 subnet)
[x.y.z.226/27 eth1:0] (for straight through routing
of IP addresses in the
x.y.z.224/27 subnet)
I've added rules to the routing table to create the
connection, but i cannot get a packet with an address
in the x.y.z.224/27 range to cross over between
eth0 and eth1 in either direction. (Connections using
NAT work fine) And the firewall is not stopping them,
because the packets still don't go through even when
i turn the firewall off.
I'm definitely a newbie to the routing area, so maybe
my routing table is wrong. What would i need in it?
BTW, i'm running Mandrake Linux 8.2 right out of the
box. Do i have to recompile the kernel to get some
of these options?
Thanks! I can't tell you how much i'd appreciate
some light on this problem!
Larry
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2002-07-10 17:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-10 17:55 Larry Flathmann [this message]
2002-07-10 20:20 ` [LARTC] Subnet/routing question Michael T. Babcock
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-102632402821005@msgid-missing \
--to=larryf@sdintegrators.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.