From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mohamed Eldesoky Subject: Re: Problem downloading large files from Apache from far Date: Wed, 27 Jul 2005 14:03:34 +0300 Message-ID: <1403218a05072704033f9504e0@mail.gmail.com> References: Reply-To: Mohamed Eldesoky Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii" To: Andrew Cc: netfilter@lists.netfilter.org Is the Cisco PIX blocking ICMP On 7/27/05, Andrew wrote: > Hi, >=20 > I'm running Fedora Core 4 (Linux 2.6.11) with netfilter 1.30. > I've setup apache 2.54 to run at port 80. >=20 > Basically when downloading large files(or pages) from apache, the downloa= d > stalls after the first few kilobytes or so. >=20 > The configuration for the firewall in /etc/sysconfig/iptables is: > *filter > :INPUT ACCEPT [0:0] > :FORWARD ACCEPT [0:0] > :OUTPUT ACCEPT [0:0] > :RH-Firewall-1-INPUT - [0:0] > -A INPUT -j RH-Firewall-1-INPUT > -A FORWARD -j RH-Firewall-1-INPUT > -A OUTPUT -j ACCEPT > -A RH-Firewall-1-INPUT -i lo -j ACCEPT > -A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT > -A RH-Firewall-1-INPUT -p 50 -j ACCEPT > -A RH-Firewall-1-INPUT -p 51 -j ACCEPT > -A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT > -A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT > -A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT > -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j > ACCEPT > -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j > ACCEPT > -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j > ACCEPT > -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-port-unreachable > COMMIT >=20 > The solution is to add set port 80 to allow INVALID packets: >=20 > -A RH-Firewall-1-INPUT -m state --state NEW,ESTABLISHED,RELATED,INVALID -= m > tcp -p tcp --dport 80 -j ACCEPT >=20 > But the question is, why are subsequent packets coming from the remote > machine being identified as INVALID? Will allowing INVALID packets cause > other problems? >=20 > The Linux machine is actually behind another Cisco PIX firewall. Could th= e > hardware firewall be translating the packets wrongly? Any ideas? >=20 > Regards, >=20 > Andrew >=20 >=20 >=20 >=20 --=20 Mohamed Eldesoky www.eldesoky.net RHCE