Okay thanks to some help I have managed to solve my problem and is works
fine.... Well now if I change the IP from 10.0.0.2 to say 10.0.0.3 it
will not accept external requests only internal requests.

This what I added.

$IPTABLES -t nat -A POSTROUTING -p tcp --dport 80 -s 10.0.0.0/24 -d
$LAN_HTTP_IP -j SNAT --to-source 10.0.0.1

and this is what I am using

$IPTABLES -t nat -A PREROUTING -p TCP -i $INET_IFACE -d $INET_IP --dport
80  -j DNAT --to-destination $LAN_HTTP_IP

My forwarding request is as follows

$IPTABLES -A FORWARD -p TCP -i $INET_IFACE -o $LAN_IFACE -d $LAN_HTTP_IP
--dport 80 -j ACCEPT

I am stumped.

Any ideas.

==n



Reply via email to