All of lore.kernel.org
 help / color / mirror / Atom feed
* ftp
@ 2002-05-27 10:44 Azie Jamilah
  2002-05-28  1:57 ` ftp Karthik Vishwanath
  0 siblings, 1 reply; 32+ messages in thread
From: Azie Jamilah @ 2002-05-27 10:44 UTC (permalink / raw)
  To: Linux Newbie Mailing List

Hi,

I just wanna know if I can download or upload a whole directory using 
ftp. I know I can do it using some of Windows software like WSFTP and 
CuteFTP, and so far I can only transfer files within the same directory 
only using put/mput or get/mget. Most of the time I would like to 
transfer the whole thing including subdirectories if available. Any 
help would be greatly appreciated. Thanks.

-- Aziah --
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: ftp
  2002-05-27 10:44 ftp Azie Jamilah
@ 2002-05-28  1:57 ` Karthik Vishwanath
  2002-05-28 15:22   ` ftp G Anna
  0 siblings, 1 reply; 32+ messages in thread
From: Karthik Vishwanath @ 2002-05-28  1:57 UTC (permalink / raw)
  To: Azie Jamilah; +Cc: Linux Newbie Mailing List

try gftp, has a gui and options for sub-directory tranfers. Alternatively,
ncftp is another great non-gui ftp client. 

-K

On Mon, 27 May 2002, Azie Jamilah wrote:

> Hi,
> 
> I just wanna know if I can download or upload a whole directory using 
> ftp. I know I can do it using some of Windows software like WSFTP and 
> CuteFTP, and so far I can only transfer files within the same directory 
> only using put/mput or get/mget. Most of the time I would like to 
> transfer the whole thing including subdirectories if available. Any 
> help would be greatly appreciated. Thanks.
> 
> -- Aziah --
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
> 

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: ftp
  2002-05-28  1:57 ` ftp Karthik Vishwanath
@ 2002-05-28 15:22   ` G Anna
  0 siblings, 0 replies; 32+ messages in thread
From: G Anna @ 2002-05-28 15:22 UTC (permalink / raw)
  To: Karthik Vishwanath; +Cc: linux-newbie


> Date: Mon, 27 May 2002 21:57:51 -0400
> From: Karthik Vishwanath <karthik@northstar.dartmouth.edu>
> Subj: Re: ftp
> 
> try gftp, has a gui and options for sub-directory
> tranfers. Alternatively, ncftp is another great non-gui ftp client.

wget

Cheers,
anna

-- 

(16) I  will  never  utter the sentence "But before I kill you, there's
     just one thing I want to know." - Peter Anspach in "The Top 100 
     Things I'd Do If I Ever Became An Evil Overlord"

                                            http://www.eviloverlord.com

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 32+ messages in thread

* FTP
@ 2003-03-07 16:35 Patrick Ahler
  2003-03-07 18:28 ` FTP Alistair Tonner
  0 siblings, 1 reply; 32+ messages in thread
From: Patrick Ahler @ 2003-03-07 16:35 UTC (permalink / raw)
  To: netfilter EMAIL

Can't get my BulletProof FTP server to work through the firewall. I opened
ports 20,21 and 5100-5200 (configured for passive ftp), still doesn't work.
I can log onto the server but it won't display the directory unless I take
the firewall down. Any suggestions?



^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: FTP
  2003-03-07 16:35 FTP Patrick Ahler
@ 2003-03-07 18:28 ` Alistair Tonner
  2003-03-10 20:42   ` FTP Patrick Ahler
  0 siblings, 1 reply; 32+ messages in thread
From: Alistair Tonner @ 2003-03-07 18:28 UTC (permalink / raw)
  To: Patrick Ahler, netfilter EMAIL


	Do you have ip_nat_ftp and ip_conntrack_ftp 
	loaded as modules or built into the kernel?

Alistair Tonner
	nerdnet.ca
	Senior Systems Analyst - RSS
	
     Any sufficiently advanced technology will have the appearance of magic.
	Lets get magical!

On March 7, 2003 11:35 am, Patrick Ahler wrote:
> Can't get my BulletProof FTP server to work through the firewall. I opened
> ports 20,21 and 5100-5200 (configured for passive ftp), still doesn't work.
> I can log onto the server but it won't display the directory unless I take
> the firewall down. Any suggestions?

-- 

	


^ permalink raw reply	[flat|nested] 32+ messages in thread

* RE: FTP
  2003-03-07 18:28 ` FTP Alistair Tonner
@ 2003-03-10 20:42   ` Patrick Ahler
  2003-03-11 12:02     ` FTP Maciej Soltysiak
  0 siblings, 1 reply; 32+ messages in thread
From: Patrick Ahler @ 2003-03-10 20:42 UTC (permalink / raw)
  To: netfilter EMAIL

I figured out what the problem was with my FTP server... it needed a port
range of 2095-2300 open for some reason. I figured this out by narrowing
down the ports that it would work on. What a pain! oh well

-----Original Message-----
From: Alistair Tonner [mailto:Alistair@nerdnet.ca]
Sent: Friday, March 07, 2003 1:28 PM
To: Patrick Ahler; netfilter EMAIL
Subject: Re: FTP



	Do you have ip_nat_ftp and ip_conntrack_ftp
	loaded as modules or built into the kernel?

Alistair Tonner
	nerdnet.ca
	Senior Systems Analyst - RSS

     Any sufficiently advanced technology will have the appearance of magic.
	Lets get magical!

On March 7, 2003 11:35 am, Patrick Ahler wrote:
> Can't get my BulletProof FTP server to work through the firewall. I opened
> ports 20,21 and 5100-5200 (configured for passive ftp), still doesn't
work.
> I can log onto the server but it won't display the directory unless I take
> the firewall down. Any suggestions?

--





^ permalink raw reply	[flat|nested] 32+ messages in thread

* RE: FTP
  2003-03-10 20:42   ` FTP Patrick Ahler
@ 2003-03-11 12:02     ` Maciej Soltysiak
  0 siblings, 0 replies; 32+ messages in thread
From: Maciej Soltysiak @ 2003-03-11 12:02 UTC (permalink / raw)
  To: Patrick Ahler; +Cc: netfilter EMAIL

> I figured out what the problem was with my FTP server... it needed a port
> range of 2095-2300 open for some reason.
Well, are you using the ip_conntrack_ftp module?
It should let you use the -m state --state RELATED, ESTABLISHED with ftp.

Unless you are doing NAT.

Regards,
Maciej


^ permalink raw reply	[flat|nested] 32+ messages in thread

* ftp
@ 2003-07-29 18:12 Gary Metcalf
  2003-07-31 13:50 ` ftp Cedric Blancher
  0 siblings, 1 reply; 32+ messages in thread
From: Gary Metcalf @ 2003-07-29 18:12 UTC (permalink / raw)
  To: netfilter

I set my INPUT tables to DROP all tcp entries. Before that line I put in 
some ports to ACCEPT such as port 80 for http. This works as I had a 
friend run nmap to my ip and it came back with all blocked except for 
port 80. He could also get my Web page via a browser. I Have one problem 
still. When I try to ftp out to a site I can get loged in but if I enter 
any command such as 'ls' or '?' I get the message back that 200 PORT 
command successfull but I never see the list of files or commands. I 
can't even execute a 'bye' command and get out. What port do I need 
opened up to use ftp from my computer to another.
   I tried ports 20, 21, 69 and 115 but they did no good. I found these 
in the /etc/services file.
Gary



^ permalink raw reply	[flat|nested] 32+ messages in thread

* ftp
@ 2003-07-30 20:30 Gary Metcalf
  0 siblings, 0 replies; 32+ messages in thread
From: Gary Metcalf @ 2003-07-30 20:30 UTC (permalink / raw)
  To: netfilter

I set my INPUT tables to DROP all tcp entries. Before that line I put in 
some ports to ACCEPT such as port 80 for http. This works as I had a 
friend run nmap to my ip and it came back with all blocked except for 
port 80. He could also get my Web page via a browser. I Have one problem 
still. When I try to ftp out to a site, and I don't have any entries in 
OUTPUT, I can get loged in but if I enter any command such as 'ls' or 
'?' I get the message back that 200 PORT command successfull but I never 
see the list of files or commands. It's like my commands go out but any 
messages returned are blocked. I can't even execute a 'bye' command and 
get out. What port do I need opened up to use ftp from my computer to 
another.
  I tried ports 20, 21, 25,69 and 115 but they did no good. I found 
these in the /etc/services file.
Gary



^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: ftp
  2003-07-29 18:12 ftp Gary Metcalf
@ 2003-07-31 13:50 ` Cedric Blancher
  0 siblings, 0 replies; 32+ messages in thread
From: Cedric Blancher @ 2003-07-31 13:50 UTC (permalink / raw)
  To: Gary Metcalf; +Cc: netfilter

Le mar 29/07/2003 à 20:12, Gary Metcalf a écrit :
> I set my INPUT tables to DROP all tcp entries. Before that line I put in 
> some ports to ACCEPT such as port 80 for http. This works as I had a 
> friend run nmap to my ip and it came back with all blocked except for 
> port 80. He could also get my Web page via a browser. I Have one problem 
> still. When I try to ftp out to a site I can get loged in but if I enter 
> any command such as 'ls' or '?' I get the message back that 200 PORT 
> command successfull but I never see the list of files or commands. I 
> can't even execute a 'bye' command and get out. What port do I need 
> opened up to use ftp from my computer to another.
>    I tried ports 20, 21, 69 and 115 but they did no good. I found these 
> in the /etc/services file.

This a VFAQ...

	modprobe ip_conntrack_ftp.

Then use state matching aginst ESTABLISHED and RELATED packets to let
them get in.

	iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

(quick and dirty, but it works ;)).

-- 
http://www.netexit.com/~sid/
PGP KeyID: 157E98EE FingerPrint: FA62226DA9E72FA8AECAA240008B480E157E98EE


^ permalink raw reply	[flat|nested] 32+ messages in thread

* ftp
@ 2004-05-19 21:05 azeem ahmad
  2004-05-19 21:17 ` ftp Antony Stone
                   ` (2 more replies)
  0 siblings, 3 replies; 32+ messages in thread
From: azeem ahmad @ 2004-05-19 21:05 UTC (permalink / raw)
  To: netfilter

hi all
i m unable to browse ftp. it says
---------------------------------------------------------------------------------------------------------------------------------------
an error occured opening that folder on the ftp server. make sure you have 
permissions to access that folder
details
200 type set to A
500 Illegal port command
500 LPRT not understood
--------------------------------------------------------------------------------------------------------------------------------------

while i m running with this only one iptables rule

iptables -t nat -A POSTROUTING -j MASQUERADE

there is no other rule in my firewall in any table any chain. every other 
things are being masqueraded well

Regards
Azeem

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail



^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: ftp
  2004-05-19 21:05 ftp azeem ahmad
@ 2004-05-19 21:17 ` Antony Stone
  2004-05-19 21:19 ` ftp Antony Stone
  2004-05-21  2:41 ` ftp Andrew E. Mileski
  2 siblings, 0 replies; 32+ messages in thread
From: Antony Stone @ 2004-05-19 21:17 UTC (permalink / raw)
  To: netfilter

On Wednesday 19 May 2004 10:05 pm, azeem ahmad wrote:

> hi all
> i m unable to browse ftp. it says
> an error occured opening that folder on the ftp server. make sure you have
> permissions to access that folder
> details
> 200 type set to A
> 500 Illegal port command
> 500 LPRT not understood

Do you get the same error when accessing the server from a machine not via the 
netfilter firewall (eg localhost, or some other client on the same subnet)?

Regards,

Antony.

-- 
RTFM may be the appropriate reply, but please specify exactly which FM to R.

                                                     Please reply to the list;
                                                           please don't CC me.



^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: ftp
  2004-05-19 21:05 ftp azeem ahmad
  2004-05-19 21:17 ` ftp Antony Stone
@ 2004-05-19 21:19 ` Antony Stone
  2004-05-21  2:41 ` ftp Andrew E. Mileski
  2 siblings, 0 replies; 32+ messages in thread
From: Antony Stone @ 2004-05-19 21:19 UTC (permalink / raw)
  To: netfilter

On Wednesday 19 May 2004 10:05 pm, azeem ahmad wrote:

> iptables -t nat -A POSTROUTING -j MASQUERADE

Sorry - I forgot this bit in my last posting...

It would be a good idea to restrict the above rule to only your external 
interface:

iptables -A POSTROUTING -t nat -o $extIF -j MASQUERADE

Regards,

Antony.

-- 
Software development can be quick, high quality, or low cost.

The customer gets to pick any two out of three.

                                                     Please reply to the list;
                                                           please don't CC me.



^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: ftp
@ 2004-05-20  4:41 azeem ahmad
  2004-05-20  9:19 ` ftp Antony Stone
  0 siblings, 1 reply; 32+ messages in thread
From: azeem ahmad @ 2004-05-20  4:41 UTC (permalink / raw)
  To: netfilter

>From: Antony Stone <Antony@Soft-Solutions.co.uk>
>Reply-To: netfilter@lists.netfilter.org
>To: netfilter@lists.netfilter.org
>Subject: Re: ftp
>Date: Wed, 19 May 2004 22:17:02 +0100
>
>On Wednesday 19 May 2004 10:05 pm, azeem ahmad wrote:
>
> > hi all
> > i m unable to browse ftp. it says
> > an error occured opening that folder on the ftp server. make sure you 
>have
> > permissions to access that folder
> > details
> > 200 type set to A
> > 500 Illegal port command
> > 500 LPRT not understood
>
>Do you get the same error when accessing the server from a machine not via 
>the
>netfilter firewall (eg localhost, or some other client on the same subnet)?
>
>Regards,
>
>Antony.
>
>--
>RTFM may be the appropriate reply, but please specify exactly which FM to 
>R.
>
>                                                      Please reply to the 
>list;
>                                                            please don't CC 
>me.
>
only one box is accessing ftp that is firewall box itself. no other box 
behind the firewall can access the ftp outside.

Regards
Azeem

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail



^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: ftp
  2004-05-20  4:41 ftp azeem ahmad
@ 2004-05-20  9:19 ` Antony Stone
  0 siblings, 0 replies; 32+ messages in thread
From: Antony Stone @ 2004-05-20  9:19 UTC (permalink / raw)
  To: netfilter

On Thursday 20 May 2004 5:41 am, azeem ahmad wrote:

> From: Antony Stone <Antony@Soft-Solutions.co.uk>
>
> >On Wednesday 19 May 2004 10:05 pm, azeem ahmad wrote:
> > > hi all
> > > i m unable to browse ftp. it says
> > > an error occured opening that folder on the ftp server. make sure you
> > > have permissions to access that folder
> > > details
> > > 200 type set to A
> > > 500 Illegal port command
> > > 500 LPRT not understood
> >
> > Do you get the same error when accessing the server from a machine not via
> > the netfilter firewall (eg localhost, or some other client on the same
> > subnet)?
> >
> only one box is accessing ftp that is firewall box itself. no other box
> behind the firewall can access the ftp outside.

Okay - let me rephrase the question.

Do you get the same error message from the server if you access it from some 
machine which does not go through the firewall (and is not the firewall 
itself)?   Even if you have to temporarily set up a client to test this, I 
think it would be useful, because it would be good to know if the server 
generates this error independently of anything the firewall is doing to the 
packets.

Also, have you tried adjusting the MASQUERADE rule as I suggested, so it 
applies to the external interface only, as this may have a bearing on the 
problem?

Regards,

Antony.

-- 
Success is a lousy teacher.  It seduces smart people into thinking they can't 
lose.

 - William H Gates III

                                                     Please reply to the list;
                                                           please don't CC me.



^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: ftp
@ 2004-05-20 15:18 azeem ahmad
  2004-05-20 15:43 ` ftp Antony Stone
  0 siblings, 1 reply; 32+ messages in thread
From: azeem ahmad @ 2004-05-20 15:18 UTC (permalink / raw)
  To: netfilter




>From: Antony Stone <Antony@Soft-Solutions.co.uk>
>Reply-To: netfilter@lists.netfilter.org
>To: netfilter@lists.netfilter.org
>Subject: Re: ftp
>Date: Thu, 20 May 2004 10:19:31 +0100
>
>On Thursday 20 May 2004 5:41 am, azeem ahmad wrote:
>
> > From: Antony Stone <Antony@Soft-Solutions.co.uk>
> >
> > >On Wednesday 19 May 2004 10:05 pm, azeem ahmad wrote:
> > > > hi all
> > > > i m unable to browse ftp. it says
> > > > an error occured opening that folder on the ftp server. make sure 
>you
> > > > have permissions to access that folder
> > > > details
> > > > 200 type set to A
> > > > 500 Illegal port command
> > > > 500 LPRT not understood
> > >
> > > Do you get the same error when accessing the server from a machine not 
>via
> > > the netfilter firewall (eg localhost, or some other client on the same
> > > subnet)?
> > >
> > only one box is accessing ftp that is firewall box itself. no other box
> > behind the firewall can access the ftp outside.
>
>Okay - let me rephrase the question.
>
>Do you get the same error message from the server if you access it from 
>some
>machine which does not go through the firewall (and is not the firewall
>itself)?   Even if you have to temporarily set up a client to test this, I
>think it would be useful, because it would be good to know if the server
>generates this error independently of anything the firewall is doing to the
>packets.
>
>Also, have you tried adjusting the MASQUERADE rule as I suggested, so it
>applies to the external interface only, as this may have a bearing on the
>problem?
>
>Regards,
>
>Antony.
>
>--
>Success is a lousy teacher.  It seduces smart people into thinking they 
>can't
>lose.
>
>  - William H Gates III
>

the server is accesible from other machines. for an example i goto squid 
mirror sites
http://www.squid-cache.org/Mirrors/ftp-mirrors.html
but even no server here can be accessed. here is a long list of ftp mirror 
servers. and also i set the rule up as u said. but still no luck

and i wanna ask something that is not relevant to list is that u quote very 
good quotations. can u tell me from where i can get quotes like this and 
also quotes that are relevant to computer science. infact i m a student and 
some time i need such material. sorry for this irrelevant question

Regards
Azeem

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: ftp
  2004-05-20 15:18 ftp azeem ahmad
@ 2004-05-20 15:43 ` Antony Stone
  0 siblings, 0 replies; 32+ messages in thread
From: Antony Stone @ 2004-05-20 15:43 UTC (permalink / raw)
  To: netfilter

On Thursday 20 May 2004 4:18 pm, azeem ahmad wrote:

> From: Antony Stone <Antony@Soft-Solutions.co.uk>
>
> > Do you get the same error message from the server if you access it from
> > some machine which does not go through the firewall (and is not the
> > firewall itself)?   Even if you have to temporarily set up a client to
> > test this, I think it would be useful, because it would be good to know if
> > the server generates this error independently of anything the firewall is
> > doing to the packets.

> the server is accesible from other machines. for an example i goto squid
> mirror sites
> http://www.squid-cache.org/Mirrors/ftp-mirrors.html
> but even no server here can be accessed. here is a long list of ftp mirror
> servers. and also i set the rule up as u said. but still no luck

I am confused :(

Are we talking about one ftp server which you are getting the previously- 
quoted error message from (and about which I have asked whether the same 
error message gets generated when you access that particular server without 
going through your firewall rules), or are you saying that you cannot access 
any ftp server through the rules on your firewall?

> and i wanna ask something that is not relevant to list is that u quote very
> good quotations.

Thank you :)

> can u tell me from where i can get quotes like this

Steal them from my postings :) ?

> and also quotes that are relevant to computer science. infact i m a student
> and some time i need such material.

Google?

The quotes on my emails have been built up over some time, from a mixture of 
articles I've read online, books and magazines I've read in print, a couple 
I've thought up myself, and a couple I've stolen from other people's emails.

I wrote a simple bash script which pseudo-randomly selects which one to add to 
each email I send, which is why you see different ones at different times.

Regards,

Antony.

-- 
If builders made buildings the way programmers write programs, then the first 
woodpecker to come along would destroy civilisation.

                                                     Please reply to the list;
                                                           please don't CC me.



^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: ftp
@ 2004-05-20 20:10 azeem ahmad
  2004-05-20 20:31 ` ftp Antony Stone
  0 siblings, 1 reply; 32+ messages in thread
From: azeem ahmad @ 2004-05-20 20:10 UTC (permalink / raw)
  To: netfilter




>From: Antony Stone <Antony@Soft-Solutions.co.uk>
>Reply-To: netfilter@lists.netfilter.org
>To: netfilter@lists.netfilter.org
>Subject: Re: ftp
>Date: Thu, 20 May 2004 16:43:33 +0100
>
>On Thursday 20 May 2004 4:18 pm, azeem ahmad wrote:
>
> > From: Antony Stone <Antony@Soft-Solutions.co.uk>
> >
> > > Do you get the same error message from the server if you access it 
>from
> > > some machine which does not go through the firewall (and is not the
> > > firewall itself)?   Even if you have to temporarily set up a client to
> > > test this, I think it would be useful, because it would be good to 
>know if
> > > the server generates this error independently of anything the firewall 
>is
> > > doing to the packets.
>
> > the server is accesible from other machines. for an example i goto squid
> > mirror sites
> > http://www.squid-cache.org/Mirrors/ftp-mirrors.html
> > but even no server here can be accessed. here is a long list of ftp 
>mirror
> > servers. and also i set the rule up as u said. but still no luck
>
>I am confused :(
>
>Are we talking about one ftp server which you are getting the previously-
>quoted error message from (and about which I have asked whether the same
>error message gets generated when you access that particular server without
>going through your firewall rules), or are you saying that you cannot 
>access
>any ftp server through the rules on your firewall?
>
> > and i wanna ask something that is not relevant to list is that u quote 
>very
> > good quotations.
>
>Thank you :)
>
> > can u tell me from where i can get quotes like this
>
>Steal them from my postings :) ?
>
> > and also quotes that are relevant to computer science. infact i m a 
>student
> > and some time i need such material.
>
>Google?
>
>The quotes on my emails have been built up over some time, from a mixture 
>of
>articles I've read online, books and magazines I've read in print, a couple
>I've thought up myself, and a couple I've stolen from other people's 
>emails.
>
>I wrote a simple bash script which pseudo-randomly selects which one to add 
>to
>each email I send, which is why you see different ones at different times.
>
>Regards,
>
>Antony.
>
>--
>If builders made buildings the way programmers write programs, then the 
>first
>woodpecker to come along would destroy civilisation.
>

no single server of ftp is accessible. wheather any server is near to me or 
far away if it is ftp then it isnt accessible from my network.
and may i have ur collection of quotes

Regards
Azeem

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail



^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: ftp
  2004-05-20 20:10 ftp azeem ahmad
@ 2004-05-20 20:31 ` Antony Stone
  0 siblings, 0 replies; 32+ messages in thread
From: Antony Stone @ 2004-05-20 20:31 UTC (permalink / raw)
  To: netfilter

On Thursday 20 May 2004 9:10 pm, azeem ahmad wrote:

> no single server of ftp is accessible. wheather any server is near to me or
> far away if it is ftp then it isnt accessible from my network.

Okay - now that I clearly understand the problem, please post the output of:

iptables -L -nvx; iptables -L -t nat -nvx

> and may i have ur collection of quotes

Sure - they are all available from 
http://lists.netfilter.org/pipermail/netfilter or 
http://lists.netfilter.org/pipermail/netfilter.mbox/netfilter.mbox (which is 
quite a large file, but they're all in there somewhere).

Regards,

Antony.

-- 
In Heaven, the police are British, the chefs are Italian, the beer is Belgian, 
the mechanics are German, the lovers are French, the entertainment is 
American, and everything is organised by the Swiss.

In Hell, the police are German, the chefs are British, the beer is American, 
the mechanics are French, the lovers are Swiss, the entertainment is Belgian, 
and everything is organised by the Italians.

                                                     Please reply to the list;
                                                           please don't CC me.



^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: ftp
  2004-05-19 21:05 ftp azeem ahmad
  2004-05-19 21:17 ` ftp Antony Stone
  2004-05-19 21:19 ` ftp Antony Stone
@ 2004-05-21  2:41 ` Andrew E. Mileski
  2 siblings, 0 replies; 32+ messages in thread
From: Andrew E. Mileski @ 2004-05-21  2:41 UTC (permalink / raw)
  To: netfilter

azeem ahmad wrote:
> hi all
> i m unable to browse ftp. it says
> --------------------------------------------------------------------------------------------------------------------------------------- 
> 
> an error occured opening that folder on the ftp server. make sure you 
> have permissions to access that folder
> details
> 200 type set to A
> 500 Illegal port command
> 500 LPRT not understood
> -------------------------------------------------------------------------------------------------------------------------------------- 

By any chance are you browsing with IE?

If so, go into Tools->Internet Options->Advanced
and check the box to enable: "Use Passive FTP (for firewall
and DSL modem compatibility)", then click OK.

If not, ignore me ;)

-- 
Andrew E. Mileski


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: ftp
@ 2004-05-21  2:49 azeem ahmad
  2004-05-21  8:26 ` ftp Antony Stone
  0 siblings, 1 reply; 32+ messages in thread
From: azeem ahmad @ 2004-05-21  2:49 UTC (permalink / raw)
  To: netfilter




>From: Antony Stone <Antony@Soft-Solutions.co.uk>
>Reply-To: netfilter@lists.netfilter.org
>To: netfilter@lists.netfilter.org
>Subject: Re: ftp
>Date: Thu, 20 May 2004 21:31:06 +0100
>
>On Thursday 20 May 2004 9:10 pm, azeem ahmad wrote:
>
> > no single server of ftp is accessible. wheather any server is near to me 
>or
> > far away if it is ftp then it isnt accessible from my network.
>
>Okay - now that I clearly understand the problem, please post the output 
>of:
>
>iptables -L -nvx; iptables -L -t nat -nvx
>
> > and may i have ur collection of quotes
>
>Sure - they are all available from
>http://lists.netfilter.org/pipermail/netfilter or
>http://lists.netfilter.org/pipermail/netfilter.mbox/netfilter.mbox (which 
>is
>quite a large file, but they're all in there somewhere).
>
>Regards,
>
>Antony.
>
>--
>In Heaven, the police are British, the chefs are Italian, the beer is 
>Belgian,
>the mechanics are German, the lovers are French, the entertainment is
>American, and everything is organised by the Swiss.
>
>In Hell, the police are German, the chefs are British, the beer is 
>American,
>the mechanics are French, the lovers are Swiss, the entertainment is 
>Belgian,
>and everything is organised by the Italians.
>

it is a very simple firewall with only one rule as
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
any ways the outout of the two commands is as follow

iptables -L -nvx
--------------------------------------------------------------------------------------------------------------------------------------
Chain INPUT (policy ACCEPT 64966 packets, 22320338 bytes)
    pkts      bytes target     prot opt in     out     source               
destination

Chain FORWARD (policy ACCEPT 48691 packets, 11603504 bytes)
    pkts      bytes target     prot opt in     out     source               
destination

Chain OUTPUT (policy ACCEPT 154653 packets, 66215691 bytes)
    pkts      bytes target     prot opt in     out     source
-----------------------------------------------------------------------------------------------------------------------------------------

iptables -L -t nat -nvx
-----------------------------------------------------------------------------------------------------------------------------------------
Chain PREROUTING (policy ACCEPT 9221 packets, 586315 bytes)
    pkts      bytes target     prot opt in     out     source               
destination

Chain POSTROUTING (policy ACCEPT 2693 packets, 178591 bytes)
    pkts      bytes target     prot opt in     out     source               
destination
       0        0 MASQUERADE  all  --  *      ppp0    0.0.0.0/0            
0.0.0.0/0

Chain OUTPUT (policy ACCEPT 6008 packets, 382374 bytes)
    pkts      bytes target     prot opt in     out     source               
destination
-----------------------------------------------------------------------------------------------------------------------------------------

i m showing you the different firewall rules in different questions beacuse 
i m a student and i m working on firewall these days. but wheni try to 
access ftp then only this single rule works nothing else has been added.

Regards
Azeem

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail



^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: ftp
  2004-05-21  2:49 ftp azeem ahmad
@ 2004-05-21  8:26 ` Antony Stone
  0 siblings, 0 replies; 32+ messages in thread
From: Antony Stone @ 2004-05-21  8:26 UTC (permalink / raw)
  To: netfilter

On Friday 21 May 2004 3:49 am, azeem ahmad wrote:

> it is a very simple firewall with only one rule as
> iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
> any ways the outout of the two commands is as follow
>
> iptables -L -nvx
> Chain INPUT
> (policy ACCEPT 64966 packets, 22320338 bytes)
>     pkts      bytes target     prot opt in     out     source
> destination
>
> Chain FORWARD (policy ACCEPT 48691 packets, 11603504 bytes)
>     pkts      bytes target     prot opt in     out     source
> destination
>
> Chain OUTPUT (policy ACCEPT 154653 packets, 66215691 bytes)
>     pkts      bytes target     prot opt in     out     source
>
> iptables -L -t nat -nvx
> Chain
> PREROUTING (policy ACCEPT 9221 packets, 586315 bytes)
>     pkts      bytes target     prot opt in     out     source
> destination
>
> Chain POSTROUTING (policy ACCEPT 2693 packets, 178591 bytes)
>     pkts      bytes target     prot opt in     out     source
> destination
>        0        0 MASQUERADE  all  --  *      ppp0    0.0.0.0/0
> 0.0.0.0/0
>
> Chain OUTPUT (policy ACCEPT 6008 packets, 382374 bytes)
>     pkts      bytes target     prot opt in     out     source
> destination
>
> i m showing you the different firewall rules in different questions beacuse
> i m a student and i m working on firewall these days. but wheni try to
> access ftp then only this single rule works nothing else has been added.

Have you loaded, or compiled in, the ftp nat and ftp connection tracking 
modules?

You probably don't need the conntrack module since with the above ruleset 
you're not doing connection tracking, hiowever if you're natting ftp then you 
need the ftp nat helper loaded (or compiled into your kernel).

Regards,

Antony.

-- 
Behind the counter a boy with a shaven head stared vacantly into space,
a dozen spikes of microsoft protruding from the socket behind his ear.

 - William Gibson, Neuromancer (1984)

                                                     Please reply to the list;
                                                           please don't CC me.



^ permalink raw reply	[flat|nested] 32+ messages in thread

* ftp
@ 2004-05-27 16:21 Peter Marshall
  2004-05-27 16:43 ` ftp Rob Sterenborg
  0 siblings, 1 reply; 32+ messages in thread
From: Peter Marshall @ 2004-05-27 16:21 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 470 bytes --]

Sorry to post the same question again .... I am at a loss as to what to put for rules for my ftp server (which is behind the firewall).
I know they go on the forward chain ....
There are going to be people connecting to it with a username / password and also anonymously from outside ...

My main question I guess is should I set it up for passive or active transfers ....
Or, does the RELATED option take care of those problems >

Thank you for the help

Peter

[-- Attachment #2: Type: text/html, Size: 1194 bytes --]

^ permalink raw reply	[flat|nested] 32+ messages in thread

* RE: ftp
  2004-05-27 16:21 ftp Peter Marshall
@ 2004-05-27 16:43 ` Rob Sterenborg
  2004-05-27 17:59   ` ftp Peter Marshall
  0 siblings, 1 reply; 32+ messages in thread
From: Rob Sterenborg @ 2004-05-27 16:43 UTC (permalink / raw)
  To: netfilter

> Sorry to post the same question again .... I am at a loss as 
> to what to put for rules for my ftp server (which is behind 
> the firewall).
> I know they go on the forward chain ....
> There are going to be people connecting to it with a username 
> / password and also anonymously from outside ...
>  
> My main question I guess is should I set it up for passive or 
> active transfers ....
> Or, does the RELATED option take care of those problems >

Use ip_conntrack_ftp and ip_nat_ftp.
Something like (with information from your previous post) :

modprobe ip_conntrack_ftp
modprobe ip_nat_ftp

$IPT -P FORWARD DROP
$IPT -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
$IPT -A FORWARD -i eth0 -o eth1 -d <ip_ftpsvr> -p tcp \
  --dport 21 --j ACCEPT
$IPT -t nat -A PREROUTING -i eth0 -p tcp --dport 21 \
  -j DNAT <ip_ftpsvr>


Gr,
Rob



^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: ftp
  2004-05-27 16:43 ` ftp Rob Sterenborg
@ 2004-05-27 17:59   ` Peter Marshall
  2004-05-27 18:06     ` ftp Antony Stone
  0 siblings, 1 reply; 32+ messages in thread
From: Peter Marshall @ 2004-05-27 17:59 UTC (permalink / raw)
  To: Rob Sterenborg, netfilter

I actually don't need the dnat as I have internet routable ip's in my dmz
.... Thank you for the info.  My question now is, will your rule take care
of both passive and active ftp ?  I would prefer to just use active .. but I
know many clients would have their own issues .. grr .. stupid ftp ....

Peter.

----- Original Message ----- 
From: "Rob Sterenborg" <rob@sterenborg.info>
To: <netfilter@lists.netfilter.org>
Sent: Thursday, May 27, 2004 1:43 PM
Subject: RE: ftp


> Sorry to post the same question again .... I am at a loss as
> to what to put for rules for my ftp server (which is behind
> the firewall).
> I know they go on the forward chain ....
> There are going to be people connecting to it with a username
> / password and also anonymously from outside ...
>
> My main question I guess is should I set it up for passive or
> active transfers ....
> Or, does the RELATED option take care of those problems >

Use ip_conntrack_ftp and ip_nat_ftp.
Something like (with information from your previous post) :

modprobe ip_conntrack_ftp
modprobe ip_nat_ftp

$IPT -P FORWARD DROP
$IPT -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
$IPT -A FORWARD -i eth0 -o eth1 -d <ip_ftpsvr> -p tcp \
  --dport 21 --j ACCEPT
$IPT -t nat -A PREROUTING -i eth0 -p tcp --dport 21 \
  -j DNAT <ip_ftpsvr>


Gr,
Rob




^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: ftp
  2004-05-27 17:59   ` ftp Peter Marshall
@ 2004-05-27 18:06     ` Antony Stone
  2004-05-27 18:46       ` ftp Peter Marshall
  0 siblings, 1 reply; 32+ messages in thread
From: Antony Stone @ 2004-05-27 18:06 UTC (permalink / raw)
  To: netfilter

On Thursday 27 May 2004 6:59 pm, Peter Marshall wrote:

> I actually don't need the dnat as I have internet routable ip's in my dmz
> .... Thank you for the info.  My question now is, will your rule take care
> of both passive and active ftp ?  I would prefer to just use active .. but
> I know many clients would have their own issues .. grr .. stupid ftp ....

ip_conntrack_ftp does handle both passive and active ftp.

Obviously if you're not doing DNAT then you don't need the ip_nat_ftp module 
either.

Regards,

Antony.

-- 
Software development can be quick, high quality, or low cost.

The customer gets to pick any two out of three.

                                                     Please reply to the list;
                                                           please don't CC me.



^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: ftp
  2004-05-27 18:06     ` ftp Antony Stone
@ 2004-05-27 18:46       ` Peter Marshall
  2004-05-27 19:14         ` ftp Antony Stone
  2004-05-27 19:34         ` ftp Rob Sterenborg
  0 siblings, 2 replies; 32+ messages in thread
From: Peter Marshall @ 2004-05-27 18:46 UTC (permalink / raw)
  To: netfilter

hmm .. i suppose that is right as well ....

Any thoughts on my last question ?

Thanks again,
Peter

----- Original Message ----- 
From: "Antony Stone" <Antony@Soft-Solutions.co.uk>
To: <netfilter@lists.netfilter.org>
Sent: Thursday, May 27, 2004 3:06 PM
Subject: Re: ftp


On Thursday 27 May 2004 6:59 pm, Peter Marshall wrote:

> I actually don't need the dnat as I have internet routable ip's in my dmz
> .... Thank you for the info.  My question now is, will your rule take care
> of both passive and active ftp ?  I would prefer to just use active .. but
> I know many clients would have their own issues .. grr .. stupid ftp ....

ip_conntrack_ftp does handle both passive and active ftp.

Obviously if you're not doing DNAT then you don't need the ip_nat_ftp module
either.

Regards,

Antony.

-- 
Software development can be quick, high quality, or low cost.

The customer gets to pick any two out of three.

                                                     Please reply to the
list;
                                                           please don't CC
me.




^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: ftp
  2004-05-27 18:46       ` ftp Peter Marshall
@ 2004-05-27 19:14         ` Antony Stone
  2004-05-27 19:34         ` ftp Rob Sterenborg
  1 sibling, 0 replies; 32+ messages in thread
From: Antony Stone @ 2004-05-27 19:14 UTC (permalink / raw)
  To: netfilter

On Thursday 27 May 2004 7:46 pm, Peter Marshall wrote:

> hmm .. i suppose that is right as well ....
>
> Any thoughts on my last question ?

Sorry, what is your last question?   I can't see anything in your previous 
postings which remains unanswered....

Regards,

Antony.

-- 
Bill Gates has personally assured the Spanish Academy that he will never allow 
the upside-down question mark to disappear from Microsoft word-processing 
programs, which must be reassuring for millions of Spanish-speaking people, 
though just a piddling afterthought as far as he's concerned.

 - Lynne Truss, "Eats, Shoots and Leaves"

                                                     Please reply to the list;
                                                           please don't CC me.



^ permalink raw reply	[flat|nested] 32+ messages in thread

* RE: ftp
  2004-05-27 18:46       ` ftp Peter Marshall
  2004-05-27 19:14         ` ftp Antony Stone
@ 2004-05-27 19:34         ` Rob Sterenborg
  2004-05-28 11:50           ` ftp Peter Marshall
  1 sibling, 1 reply; 32+ messages in thread
From: Rob Sterenborg @ 2004-05-27 19:34 UTC (permalink / raw)
  To: netfilter

> > > .... Thank you for the info.  My question now is, will your rule
> > > take care of both passive and active ftp ?  I would prefer to just
> > > use active .. But

> > ip_conntrack_ftp does handle both passive and active ftp.

> Any thoughts on my last question ?

As far as I see, Antony answered your last question : both passive and
active ftp are handled.
Or am I missing something ?


Gr,
Rob



^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: ftp
  2004-05-27 19:34         ` ftp Rob Sterenborg
@ 2004-05-28 11:50           ` Peter Marshall
  2004-05-28 12:04             ` ftp Rob Sterenborg
  2004-05-28 13:01             ` ftp Antony Stone
  0 siblings, 2 replies; 32+ messages in thread
From: Peter Marshall @ 2004-05-28 11:50 UTC (permalink / raw)
  To: Rob Sterenborg, netfilter

I guess my question was is it advisable to only allow active ftp .... ?  Or
is that just not a reasonable idea ?  Or does the Related option make
passive "safe" (ie, don't have to open a load of ports).

I already had to open just about everything outgoing from my proxy server
anyway, so I guess it is not a big deal ... *unless you have a better
suggestion for that as well.

Thank you for all of your help.

Peter


----- Original Message ----- 
From: "Rob Sterenborg" <rob@sterenborg.info>
To: <netfilter@lists.netfilter.org>
Sent: Thursday, May 27, 2004 4:34 PM
Subject: RE: ftp


> > > .... Thank you for the info.  My question now is, will your rule
> > > take care of both passive and active ftp ?  I would prefer to just
> > > use active .. But

> > ip_conntrack_ftp does handle both passive and active ftp.

> Any thoughts on my last question ?

As far as I see, Antony answered your last question : both passive and
active ftp are handled.
Or am I missing something ?


Gr,
Rob




^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: ftp
  2004-05-28 11:50           ` ftp Peter Marshall
@ 2004-05-28 12:04             ` Rob Sterenborg
  2004-05-28 13:01             ` ftp Antony Stone
  1 sibling, 0 replies; 32+ messages in thread
From: Rob Sterenborg @ 2004-05-28 12:04 UTC (permalink / raw)
  To: netfilter

> I guess my question was is it advisable to only allow active ftp ....
?  Or
> is that just not a reasonable idea ?  Or does the Related option make
> passive "safe" (ie, don't have to open a load of ports).

Netfilter is stateful, it will open the ports as needed.


Gr,
Rob



^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: ftp
  2004-05-28 11:50           ` ftp Peter Marshall
  2004-05-28 12:04             ` ftp Rob Sterenborg
@ 2004-05-28 13:01             ` Antony Stone
  1 sibling, 0 replies; 32+ messages in thread
From: Antony Stone @ 2004-05-28 13:01 UTC (permalink / raw)
  To: netfilter

On Friday 28 May 2004 12:50 pm, Peter Marshall wrote:

> I guess my question was is it advisable to only allow active ftp .... ?  Or
> is that just not a reasonable idea ?  Or does the Related option make
> passive "safe" (ie, don't have to open a load of ports).

I'd say passive is just as secure as active, and vice versa.

> I already had to open just about everything outgoing from my proxy server
> anyway, so I guess it is not a big deal ... *unless you have a better
> suggestion for that as well.

There's a big difference between opening up *outbound* ports from a proxy 
server (where you can use the proxy server to decide what's safe and what 
isn't), and allowing lots of traffic *through* your firewall.

Whether the proxy is running on the same machine as netfilter or not, you're 
either placing rules in the OUTPUT chain (if it is), or you're specifying the 
source IP with -s (if it isn't).   Either way, you're not allowing any 
greater access to any system other than the proxy, and of course you trust 
that, or you wouldn't be using it :)

Regards,

Antony.

-- 
If you want to be happy for an hour, get drunk.
If you want to be happy for a year, get married.
If you want to be happy for a lifetime, get a garden.

                                                     Please reply to the list;
                                                           please don't CC me.



^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2004-05-28 13:01 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-27 16:21 ftp Peter Marshall
2004-05-27 16:43 ` ftp Rob Sterenborg
2004-05-27 17:59   ` ftp Peter Marshall
2004-05-27 18:06     ` ftp Antony Stone
2004-05-27 18:46       ` ftp Peter Marshall
2004-05-27 19:14         ` ftp Antony Stone
2004-05-27 19:34         ` ftp Rob Sterenborg
2004-05-28 11:50           ` ftp Peter Marshall
2004-05-28 12:04             ` ftp Rob Sterenborg
2004-05-28 13:01             ` ftp Antony Stone
  -- strict thread matches above, loose matches on Subject: below --
2004-05-21  2:49 ftp azeem ahmad
2004-05-21  8:26 ` ftp Antony Stone
2004-05-20 20:10 ftp azeem ahmad
2004-05-20 20:31 ` ftp Antony Stone
2004-05-20 15:18 ftp azeem ahmad
2004-05-20 15:43 ` ftp Antony Stone
2004-05-20  4:41 ftp azeem ahmad
2004-05-20  9:19 ` ftp Antony Stone
2004-05-19 21:05 ftp azeem ahmad
2004-05-19 21:17 ` ftp Antony Stone
2004-05-19 21:19 ` ftp Antony Stone
2004-05-21  2:41 ` ftp Andrew E. Mileski
2003-07-30 20:30 ftp Gary Metcalf
2003-07-29 18:12 ftp Gary Metcalf
2003-07-31 13:50 ` ftp Cedric Blancher
2003-03-07 16:35 FTP Patrick Ahler
2003-03-07 18:28 ` FTP Alistair Tonner
2003-03-10 20:42   ` FTP Patrick Ahler
2003-03-11 12:02     ` FTP Maciej Soltysiak
2002-05-27 10:44 ftp Azie Jamilah
2002-05-28  1:57 ` ftp Karthik Vishwanath
2002-05-28 15:22   ` ftp G Anna

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.