<OT> Merry Christmas
Shawn Tayler
stayler
Mon May 17 11:57:19 PDT 2004
On Wed, 24 Dec 2003 12:37:51 -0500 Tim Wunder <tim at thewunders.org> prattled on about:
> A Merry Christmas to you too.
>
> And I'd feel better about this community after it helps me figger out %$&@!
> iptables...
> ;-)
Hi Tim,
I used this for external access to an internal mailserver, maybe it'll help you out?
Shawn
$IPTABLES -A FORWARD -d $MAILSERVER -j ACCEPT
$IPTABLES -A FORWARD -s $MAILSERVER -j ACCEPT
$IPTABLES -A PREROUTING -t nat -p tcp -d $EXTIP --dport 25 -j DNAT --to $MAILSERVER
$IPTABLES -t nat -A POSTROUTING -o $EXTIF -j SNAT --to-source $EXTIP
More information about the Linux-users
mailing list