From: Shawn <core@enodev.com>
To: "Brei, Matt" <mbrei@medclaiminc.com>
Cc: "netfilter@lists.netfilter.org" <netfilter@lists.netfilter.org>
Subject: Re: port 25 & 110 forward
Date: 14 Jul 2003 13:55:34 -0500 [thread overview]
Message-ID: <1058208934.24132.60.camel@localhost> (raw)
In-Reply-To: <091A6DF13847F44395B31658ED61C19C63A449@yellowstone.medclaim.local>
Can you telnet to port 25, and does it connect you to your private host?
If so, you have an SMTP issue.
On Mon, 2003-07-14 at 13:43, Brei, Matt wrote:
> I’m trying to forward smtp and pop3 from my router to my mail server
> at 10.13.110.1. I’ve tried both of the following iptables commands,
> neither has worked.
>
>
>
> $IPTABLES -t nat -A PREROUTING -i eth1 -p tcp --dport 25 -j DNAT --to
> 10.13.110.1
>
> $IPTABLES -t nat -A PREROUTING -i eth1 -p tcp --dport 110 -j DNAT --to
> 10.13.110.1
>
> $IPTABLES -A FORWARD -p tcp -d 10.13.110.1 --dport 25 -j ACCEPT
>
> $IPTABLES -A FORWARD -p tcp -d 10.13.110.1 --dport 110 -j ACCEPT
>
>
>
>
>
> $IPTABLES -t nat -A PREROUTING -d <public_ip> -p tcp --dport 25 -j
> DNAT --to 10.13.110.1:25
>
> $IPTABLES -A FORWARD -p tcp --dport 25 -j ACCEPT
>
> $IPTABLES -t nat -A PREROUTING -d <public_ip> -p tcp --dport 110 -j
> DNAT --to 10.13.110.1:110
>
> $IPTABLES -A FORWARD -p tcp --dport 110 -j ACCEPT
>
>
>
> The later works great for ftp and http forwards. Why won’t it work
> for 25 and 110?
>
>
>
> eth0= 10.13.110.1
>
> eth2= <public_ip>
>
>
>
> Matt Brei
>
>
>
>
next prev parent reply other threads:[~2003-07-14 18:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-14 18:43 port 25 & 110 forward Brei, Matt
2003-07-14 18:55 ` Shawn [this message]
2003-07-15 8:17 ` Rob Sterenborg
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=1058208934.24132.60.camel@localhost \
--to=core@enodev.com \
--cc=mbrei@medclaiminc.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox