Need Help PORTFW is giving me a headache.
This is probably an old question but I just cant seem to get this working.
Outbound is a-okay. But all my attempts to route incoming requests though and on to my internal server have failed. I have perused list archive after list archive and tried many things mentioned there. But nothing seems to work...
Here is the basics of what I have done.
-I am running RH 7.2
-Disabled IPCHAINS
-Enabled IPTABLES
-Enabled IPFORWARDING
-Downloaded and modified rc.firewall-2.4 file - FWVER=0.72
here is what I have been led to believe is the pertinent lines of the rc.firewall file.
---------------
echo " clearing any existing rules and setting default policy..!QUOT!
$IPTABLES -P INPUT ACCEPT
$IPTABLES -F INPUT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -F OUTPUT
$IPTABLES -P FORWARD DROP
$IPTABLES -F FORWARD
$IPTABLES -t nat -F
PORTFWIP="10.1.1.13"
$IPTABLES -A FORWARD -i $EXTIF -o $INTIF -p tcp --dport 80 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A PREROUTING -t nat -p tcp -d $EXTIP --dport 80 -j DNAT --to $PORTFWIP:80
# I also experimented with:
$IPTABLES -A POSTROUTING -t nat -d $PORTFWIP -o $INTIF -j SNAT --to $INTIP
# I have seen it written with the -A POSTROUTING and -t nat reversed as well.
----
It seems to me that this should be VERY straight forward. But, alas, it isn't working.
HELP!
Thanks in Advance.
|