From: Askar <askarali@gmail.com>
To: Maxime Ducharme <mducharme@cybergeneration.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: slow ftp
Date: Thu, 17 Feb 2005 22:11:55 +0500 [thread overview]
Message-ID: <a0f69e505021709116d1ee760@mail.gmail.com> (raw)
In-Reply-To: <030e01c51511$cf9c6e10$b000a8c0@cybergeneration.com>
Hello Maxime,
Thanks for your quick reply, I added the above rules for all our
company DNS servers but no luck still it takes times on
Connecting.......
flushing firewall rules makes a difference that is "quick" connection :)
regards
On Thu, 17 Feb 2005 11:57:49 -0500, Maxime Ducharme
<mducharme@cybergeneration.com> wrote:
> Hello Askar
>
> Usually it is because of reverse DNS done
> when a client connects.
>
> If your firewall doesnt have access to any DNS
> and tries to resolve the client hostname, each time
> a client connects, it will have to wait until the server
> times out on DNS requests.
>
> Configure DNS and add
> iptables -A OUTPUT -p udp --dport 53 -d $DNS_SERVER -j ACCEPT
> iptables -A OUTPUT -p tcp --dport 53 -d $DNS_SERVER -j ACCEPT
>
> Replace $DNS_SERVER with your DNS server's IP.
> If you have more, add as much rules as needed.
>
> You may also take a look into proftpd config, maybe
> you can simply deactivate reverse DNS lookup on connect.
>
> Hope this helps
>
> Have a nice day
>
> Maxime Ducharme
> Programmeur / Spécialiste en sécurité réseau
>
> ----- Original Message -----
> From: "Askar" <askarali@gmail.com>
> To: <netfilter@lists.netfilter.org>
> Sent: Thursday, February 17, 2005 11:48 AM
> Subject: slow ftp
>
> > hi list
> >
> > we are running ftp "proftpd" server it takes times when a user
> > connects to ftp server however when I flush the iptables rules
> > connection doesn't takes time, iptables firewall on the same machine,
> > default policies are DROP,
> > firewall script is very straight forward
> >
> > rules
> > .
> > .
> > # Using Connection State to By-pass Rule Checking
> > iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
> > iptables -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
> > iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
> > .
> > .
> > .iptables -A INPUT -p tcp --dport 20:21 -m state --state NEW -j ACCEPT
> > .
> > .
> >
> > # Load the FTP connection state helper module.
> > modprobe ip_conntrack_ftp
> > # Load the FTP NAT module.
> > modprobe ip_nat_ftp
> >
> > any idea?
> >
> > regards
> >
> > --
> > I love deadlines. I like the whooshing sound they make as they fly by.
> > Douglas Adams
> >
>
>
--
I love deadlines. I like the whooshing sound they make as they fly by.
Douglas Adams
next prev parent reply other threads:[~2005-02-17 17:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-17 16:48 slow ftp Askar
[not found] ` <030e01c51511$cf9c6e10$b000a8c0@cybergeneration.com>
2005-02-17 17:11 ` Askar [this message]
2005-02-17 17:15 ` Jason Opperisano
2005-02-17 17:51 ` R. DuFresne
2005-02-18 4:51 ` Askar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a0f69e505021709116d1ee760@mail.gmail.com \
--to=askarali@gmail.com \
--cc=mducharme@cybergeneration.com \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.