All of lore.kernel.org
 help / color / mirror / Atom feed
* 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-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-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 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  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
* 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
* 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
* 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-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
* 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

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.