From: "Reginald NALLARATNAM" <regi@toolsnottoys.com>
To: netfilter@lists.netfilter.org
Subject: Routing packets with IPTABLES?
Date: Mon, 10 Feb 2003 12:34:16 -0500 [thread overview]
Message-ID: <se479e38.044@mail.toolsnottoys.com> (raw)
Hello,
Hardware Layout:
Firewall #1: (Linux Box)
I have a linux box with 2 nics.
eth1 @ 192.168.20.1
eth0 @ 192.168.30.2
Gateway: 192.168.30.1
Firewall # 2: (Some other router)
interface 1: 192.168.20.2
interface 2: 192.168.30.2
Gateway: 192.168.30.1
Web server:
192.168.20.100
Gateway: 192.168.20.2 (Firewall # 2)
Gateway - is someother Firewall/Router that allows both firewall #1 and #2 to connect to the internet.
192.168.30.1
Question:
Is there a way to route incomming packets from the gateway to eth0 on firewall #1 based on source IP and destination Port to the web server @ 192.168.20.100?
The only way this will work if Firewall # 1 routes or forwards the packets to web server without connection tracking, since the return answer from web server will go through firewall # 2.
Could some give me an example or the command to do this using iptables, if not how else can this be done?
Thanks in advance.
next reply other threads:[~2003-02-10 17:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-10 17:34 Reginald NALLARATNAM [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-02-11 17:17 Routing packets with IPTABLES? Cedric de Launois
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=se479e38.044@mail.toolsnottoys.com \
--to=regi@toolsnottoys.com \
--cc=netfilter@lists.netfilter.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.