Skip to contentSkip to conversation

PRE and POST routing ...

DISCUSSION Unknown 1 participant 1 message Nov 15, 2002

lore
Share & tools
lore

Unknown

author
#0 lore raw

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