From: Sasa Stupar <sasa@stupar.homelinux.net>
To: netfilter@lists.netfilter.org
Subject: Re: Redirection question
Date: Mon, 20 Dec 2004 18:05:49 +0100 [thread overview]
Message-ID: <41C7066D.7050604@stupar.homelinux.net> (raw)
In-Reply-To: <41C705A1.2040107@stupar.homelinux.net>
Sasa Stupar a écrit :
> Hi!
>
> I have installed mail server on my lan. Now I would like to redirect all
> lan users to use that mail server as smtp (similar as transparent proxy
> with squid). How do I do that smtp redirection?
> I was thinking something like:
> -------------
> iptables -t nat -A PREROUTING -i eth0 -s ! smtp-box -p tcp --dport 25 -j
> DNAT --to smtp-box:25
> iptables -t nat -A POSTROUTING -o eth0 -s local-network -d smtp-box -j
> SNAT --to iptables-box
> iptables -A FORWARD -s local-network -d smtp-box -i eth0 -o eth0 -p tcp
> --dport 25 -j ACCEPT
> --------------
> Is this correct?
>
> Regards,
> Sasa
>
I forgot some more infos:
running on FC3 with sendmail. This is also a router with 2 NIC
installed: one for internet and one for LAN.
Sasa
next prev parent reply other threads:[~2004-12-20 17:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-20 17:02 Redirection question Sasa Stupar
2004-12-20 17:05 ` Sasa Stupar [this message]
2004-12-20 21:33 ` Sasa Stupar
-- strict thread matches above, loose matches on Subject: below --
2004-12-20 22:47 Hudson Delbert J Contr 61 CS/SCBN
2004-12-21 7:52 ` Sasa Stupar
2003-03-11 15:04 Hernán Mailluquet
2003-03-11 15:20 ` Jesper Lund
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=41C7066D.7050604@stupar.homelinux.net \
--to=sasa@stupar.homelinux.net \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox