From: Payal Rathod <payal-iptables@staticky.com>
To: netfilter@lists.netfilter.org
Subject: redirection and nat
Date: Fri, 22 Aug 2003 17:12:35 +0530 [thread overview]
Message-ID: <20030822114235.GA1500@linux.local> (raw)
Hi,
In my friend's office where I am trying to put a Linux server, I am
facing some problems.
They have connectivity from 2 ISPs thru' Router A and Router B.
Now in office people from 192.168.10.1 - 192.168.10.7 use Router B to
reach internet and the rest Router A.
I want Linux to be put in such a way so that it accepts connections from
all machines and redirects them to router A and B. Before this they will
be checked against some rules like whether they are allowed to access
external SMTP or not etc. Is this setup possible?
How will I use redirection here? I can redirect for a particular port
but am not getting the syntax for directing any package to particular
router's ip.
Do I need NAT here? If so, kindly tell the logic I have to use this with
NAT. In NAT I have to specify an interface like,
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
But here I will be using 2 interfaces. What will I use then in above
rule? And what should be my default gateway? Does it bind to a
particular ip? BTW, I will be using squid too here. Please remember this
too.
Thanks a lot and eagerly waiting for any input on this.
With warm regards,
-Payal
reply other threads:[~2003-08-22 11:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20030822114235.GA1500@linux.local \
--to=payal-iptables@staticky.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.