All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Patrick Ahler" <patrick@vikus.com>
To: Ray Leach <raymondl@knowledgefactory.co.za>,
	Netfilter Mailing List <netfilter@lists.netfilter.org>
Subject: RE: passive mode ftp
Date: Fri, 23 May 2003 08:12:51 -0400	[thread overview]
Message-ID: <ABEKJILKOKKGGDJKHKDFMEODCBAA.patrick@vikus.com> (raw)
In-Reply-To: <1053684294.1787.6.camel@raylinux.internal>

http://slacksite.com/other/ftp.html

Read the article above... about active vs. passive ftp.

Also, most ftp servers allow you to specify which ports to use for passive
ftp, that way you would only have to open those.

-Patrick

-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org]On Behalf Of Ray Leach
Sent: Friday, May 23, 2003 6:05 AM
To: Netfilter Mailing List
Subject: Re: passive mode ftp


On Fri, 2003-05-23 at 10:56, Eric Constantineau wrote:
> Hi !
>
> I want to be able to use passive ftp under my firewall...
>
> Right now passive mode does not function because I allow only packets
> WITH port 21 as a destination OR source.  When in normal mode, packets
> from the ftp server have 21 for the source port and the packets from the
> client have 21 for the destination port so it works.  But, entering
> passive mode, the destination and source ports are not 21, so my
> firewall blocks.
>
> Using a ftp client such as leechftp, cuteftp, wsftp is okay, but using
> the browser (iexplore) does not because it use passive mode.
>
> I don't want to open too much my ports, it would mean that someone could
> use those ports to get access to inside networks...  But I want to be
> able to use passive mode, some users do not want to use ftp client
> software, or are not even able to install them...
>
> Is there a specific range of ports that all passive ftp use ?
No, passive mode uses random ports from 1024 upwards.

You could use a web proxy like squid. You can force squid to always use
active mode.

Alternatively, you could use the state inspection of iptables and the
ftp connection tracking module to configure passive ftp.

>
> Thanks for helping me
>
> Eric
>
>
>
>




  reply	other threads:[~2003-05-23 12:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-23  8:56 passive mode ftp Eric Constantineau
2003-05-23  9:12 ` Cedric Blancher
2003-05-23 10:04 ` Ray Leach
2003-05-23 12:12   ` Patrick Ahler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-05-23  9:21 George Vieira

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=ABEKJILKOKKGGDJKHKDFMEODCBAA.patrick@vikus.com \
    --to=patrick@vikus.com \
    --cc=netfilter@lists.netfilter.org \
    --cc=raymondl@knowledgefactory.co.za \
    /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.