From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: netfilter@lists.netfilter.org
Subject: Re: tcp packets on 25 port FORWARDING
Date: Fri, 12 Mar 2004 09:57:16 +0000 [thread overview]
Message-ID: <200403120957.16154.Antony@Soft-Solutions.co.uk> (raw)
In-Reply-To: <E1B1jEu-0002TS-U9@vishnu.netfilter.org>
On Friday 12 March 2004 9:46 am, Stanislav Puffler DiS. wrote:
> Hi there,
>
> I need to forward all tcp packets with port 25 (SMTP) from Internet to
> machine in my network. My settings (eth0 = internet IP, eth1 =
> 192.168.200.1 - dmz IP connected to another machine with Postfix, eth2 =
> 192.168.0.1 - gateway - LAN). Have opened port 25 and setup rule :
>
> iptables -t nat -A PREROUTING -p tcp -dport 25 - i eth0 -j DNAT -to
> 192.168.200.2:85
That should be "--dport", not "-dport", and why are you changing the
destination port number to 85? Is Postfix listening on port 25?
> iptables -A FORWARD -i eth0 -p tcp -d 192:168.200.2 -dport 25 -m state
> -state NEW,ESTABLISHED,RELATED -j ACCEPT
That should also read "--dport", not "-dport", also "--state", not "-state".
If you have typed out your rules in this email and made some mistakes, then
please *cut and paste* your ruleset so we really know what is running.
Regards,
Antony.
--
Ramdisk is not an installation procedure.
Please reply to the list;
please don't CC me.
next prev parent reply other threads:[~2004-03-12 9:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-12 9:46 tcp packets on 25 port FORWARDING Stanislav Puffler DiS.
2004-03-12 9:57 ` Antony Stone [this message]
2004-03-12 10:47 ` Stanislav Puffler DiS.
-- strict thread matches above, loose matches on Subject: below --
2004-03-12 10:03 peter.gehle
2004-03-12 10:21 ` Antony Stone
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=200403120957.16154.Antony@Soft-Solutions.co.uk \
--to=antony@soft-solutions.co.uk \
--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