Zone Configuration to Redirect SMTP
Laurent CARON
email hidden
Sat Apr 12 18:59:06 CEST 2008
On Fri, Apr 11, 2008 at 04:33:20PM +0200, I/P/B/ Ertan Gönülal wrote:
> Hi all,
>
> i have a problem witch a Zone configuration
>
> I have a zone for vlan and a Debian Vserver with exim4
>
> The vserver has an internal IP 172.16.xx.xx
>
> The Mainsystem where the vserver runs has an IP 192.xxx.xxx
> When i write the Rule:
>
> REDIRECT_SMTP="tcp smtp 0.0.0.0/0=>192.xxx.xxx.xxx/32 172.16.xxx.xxx smtp"
>
> I become the Error:
>
> iptables -t nat -A PREROUTING_NAT_ZONENAME -p tcp --dport smtp -d
> 192.xxx.xxx.xxx/32 -j DNAT --to-destination 172.16.xxx.xxx:25 465
>
> The Port 465 is for SSMTP but i dont want to use this.
>
> If i change the rule and give the Port 25 and not the name smtp anything
> work correctly.
>
> REDIRECT_SMTP="tcp 25 0.0.0.0/0=>192.xxx.xxx.xxx/32 172.16.xxx.xxx 25"
>
> The /etc/services includes the correct description:
>
> smtp 25/tcp mail
>
> I can use it (smtp) in any other zones but in this, it fails.
Hi,
did you try:
REDIRECT_SMTP="tcp smtp 0.0.0.0/0=>192.xxx.xxx.xxx/32 172.16.xxx.xxx"
or
REDIRECT_MAIL="tcp mail 0.0.0.0/0=>192.xxx.xxx.xxx/32 172.16.xxx.xxx"
Can't you be more specific on the source of packets instead of any
(0.0.0.0/0) ?
Laurent
More information about the fiaif
mailing list