PureCarnage
09-25-2001, 09:00 PM
I've set up a gateway/firewall and it's working great... thanks to linuxnewbie.org.
Now I am trying to forward the HTTP port to my internal webserver.
I've installed ipmasqadmin and it installed fine under RH linux 6.2.
Now I have my port 80 open, it's showing a connection to the webserver, but the page isn't displaying.
Which means that the output from the webserver is being blocked... Here's the ipchains and ipmasqadm codes that I am using, maybe I did something wrong and you can notice what I fail to see.
# IP CHAINS opening port 80:HTTP.
#Incomming from the internet
$IPCHAINS -A input -p tcp -s $REMOTENET -d $OUTERNET 80 -i $OUTERIF -j ACCEPT
#Outgoing to the internet
$IPCHAINS -A output -p tcp -s $REMOTENET -d $REMOTENET 80 -i $OUTERIF -j ACCEPT
#IP Port forwarding
$IPMASQADMIN portfw -f
$IPMASQADMIN portfw -a -P tcp -L $OUTERIP 80 -R $WEB_SERVER 80
#DEFFINATIONS
OUTERIF=eth0
REMOTENET=0/0
OUTERNET= IP ADDY/ MASK
WEB_SERVER = 192.168.1.5
Any advice would be great.
PureCarnage. www.gigglesbyte.com/evildnd (http://www.gigglesbyte.com/evildnd) :eek:
[ 25 September 2001: Message edited by: PureCarnage ]
Now I am trying to forward the HTTP port to my internal webserver.
I've installed ipmasqadmin and it installed fine under RH linux 6.2.
Now I have my port 80 open, it's showing a connection to the webserver, but the page isn't displaying.
Which means that the output from the webserver is being blocked... Here's the ipchains and ipmasqadm codes that I am using, maybe I did something wrong and you can notice what I fail to see.
# IP CHAINS opening port 80:HTTP.
#Incomming from the internet
$IPCHAINS -A input -p tcp -s $REMOTENET -d $OUTERNET 80 -i $OUTERIF -j ACCEPT
#Outgoing to the internet
$IPCHAINS -A output -p tcp -s $REMOTENET -d $REMOTENET 80 -i $OUTERIF -j ACCEPT
#IP Port forwarding
$IPMASQADMIN portfw -f
$IPMASQADMIN portfw -a -P tcp -L $OUTERIP 80 -R $WEB_SERVER 80
#DEFFINATIONS
OUTERIF=eth0
REMOTENET=0/0
OUTERNET= IP ADDY/ MASK
WEB_SERVER = 192.168.1.5
Any advice would be great.
PureCarnage. www.gigglesbyte.com/evildnd (http://www.gigglesbyte.com/evildnd) :eek:
[ 25 September 2001: Message edited by: PureCarnage ]