On 11/07/08 14:02, Henrique Netfilter wrote:
It actually worked, but only when I also added my PREROUTING DNAT
rule. So the final solution is like this:
*nod*
You have to have both the PREROUTING rule to DNAT the traffic to the new
destination /and/ the POSTROUTING rule to cause the destination to send
the reply traffic back through your router.
iptables -t nat -I PREROUTING -i <internal_network_interface> -d
<Internet_Address> -j DNAT --to <Internal_Server_Address>
iptables -t nat -I POSTROUTING -o <internal_network_interface> -s
<LAN_address> -d <Internal_Server_Address> -j SNAT --to
<internal_network_IP>
Thanks once again.
You are welcome.
I'm glad that it worked the way that you needed it to. :)
Grant. . . .
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html