Problem with IPtables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi group.

I have some problems setting up iptables.
Background: RH8 box as firewall and router.
		Second RH8 box as apache server
I can reach the www-server from the internal network, but not from internet.

My script looks basically like this, what am I missing?

$IPTABLES -A INPUT -i lo -s $UNIVERSE -d $UNIVERSE -j ACCEPT
$IPTABLES -A INPUT -i $INTIF -s $INTNET -d $UNIVERSE -j ACCEPT
$IPTABLES -A INPUT -i $EXTIF -s $INTNET -d $UNIVERSE -j drop-and-log-it
$IPTABLES -A INPUT -i $EXTIF -p ICMP -s $UNIVERSE -d $EXTIP -j ACCEPT
$IPTABLES -A INPUT -i $EXTIF -s $UNIVERSE -d $EXTIP -m state --state
ESTABLISHED,RELATED -j ACCEPT


$IPTABLES -t nat -I PREROUTING -i $EXTIF -d $EXTIP -p tcp --dport 80 -j DNAT
--to 192.168.x.x:80


 With best regards

Tomas Larsson

Verus amicus est tamquam alter idem 


All messages originating from me are scanned with the latest updates of
Norton Antivirus 2K2.




-- 
Psyche-list mailing list
Psyche-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux