Re: Firewall


Subject: Re: Firewall
From: Michael Gillson (Michael_Gillson@chugachelectric.com)
Date: Mon Apr 29 2002 - 11:25:14 AKDT


I have a linux/apache web server behind a linux firewall (Red Hat
7.2).

IPTABLES="/sbin/iptables"

$IPTABLES -A tcp_packets -p TCP -s 0/0 --dport 80 -j allowed
$IPTABLES -t nat -A PREROUTING -p TCP -i $INET_IFACE --dport 80 -j DNAT
--to-destination $LAN_SERVER_IP
$IPTABLES -A FORWARD -p TCP -i $INET_IFACE -o $LAN_IFACE -d
$LAN_SERVER_IP --dport 80 -j allowed

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Mon Apr 29 2002 - 11:25:54 AKDT