Re: iptables, DNAT, and SMTP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



<citaat van="Brandon Seaver">
> Hello,
>
> I've been reading for a couple days now and my mind has gone numb.
>
> I'm hoping to get some help from the community, and I'm sure I'm just
> overlooking something simple. My goal is to forward smtp traffic
> destined for one machine to another based on source.
>
> I have done this: echo 1 > /proc/sys/net/ipv4/ip_forward
>
> I've enabled the loading of iptable_nat in the iptables config file.
>
> This is the base of what I'm using in my /etc/sysconfig/iptables
> file. Any direction on what I'm missing would be greatly appreciated.
>

(rules snipped)

Looks fine. Does return traffic go through the same machine? Otherwise it
is never de-DNATted and you would need something like an rinetd solution.

HTH,
M4



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux