From: "Ilo Lorusso" <sneak@ipnoc.co.za>
To: Rob Sterenborg <rob@sterenborg.info>
Cc: netfilter@lists.netfilter.org
Subject: Re: Redirecting mail
Date: Fri, 8 Apr 2005 13:38:06 +0200 [thread overview]
Message-ID: <001701c53c2f$6f97dc80$648045ac@sneak> (raw)
In-Reply-To: MS_LEU1tDJt12e1s8HA000007ef@smtp.ttp.nl
> The networks seem to be connected, so can't you just configure a
> smtp-forwarder in your MTA configuration ? That would be easier I think.
I'd prefer just using iptables, so i can redirect when i need to..
> There is no need to use multiport because you only DNAT 1 port : smtp.
> But that should not be a problem.
>
> iptables -t nat -A OUTPUT -p tcp --dports smtp \
> -j DNAT --to-destination 192.168.12.56
if I try it without the multiport option i get the following error..
[root@posjia0h01 root]# iptables -t nat -A OUTPUT -p tcp --dports smtp -j
DNAT --to-destination 192.168.12.56
iptables v1.2.5: Unknown arg `--dports'
Try `iptables -h' or 'iptables --help' for more information.
And no I dont have any rules blocking this from working as shown below, but
would i need any iptables rules to make it work maybe? (like enable
ipforwarding and maybe a forward rule, im not sure)
[root@prxsaa0z02 root]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@prxsaa0z02 root]# iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
next prev parent reply other threads:[~2005-04-08 11:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-08 10:26 Redirecting mail Ilo Lorusso
2005-04-08 10:58 ` Rob Sterenborg
2005-04-08 11:38 ` Ilo Lorusso [this message]
2005-04-08 12:06 ` Rob Sterenborg
2005-04-08 18:57 ` Taylor, Grant
2005-04-08 11:43 ` Ilo Lorusso
2005-04-08 19:29 ` Taylor, Grant
2005-04-09 15:59 ` Ilo Lorusso
2005-04-09 18:58 ` Grant Taylor
2005-04-11 15:05 ` Ilo Lorusso
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='001701c53c2f$6f97dc80$648045ac@sneak' \
--to=sneak@ipnoc.co.za \
--cc=netfilter@lists.netfilter.org \
--cc=rob@sterenborg.info \
/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