PRE and POST routing ...
Hi
If I have a web server in my DMZ, then I have a PREROUTING rule to redirect incoming traffic to the server, like :
$IPTABLES -t nat -A PREROUTING -i $IFACE_INET -p tcp --dport 80 -d $IP_INET_WEB1 -j DNAT --to $IP_INT_WEB1
I also have the FORWARDing rules ...
Do I need a POSTROUTING rule in the nat table for return/reply traffic, or is that automagically handled by nat?
Obviously I have the FORWARD rule to forward the replies from $IP_INT_WEB1 back to the source.
Ray