All of lore.kernel.org
 help / color / mirror / Atom feed
* passive ftp
@ 2004-04-17 17:50 IT Clown
  2004-04-17 18:03 ` Is there a more active mailing list for security? Krunk
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: IT Clown @ 2004-04-17 17:50 UTC (permalink / raw)
  To: netfilter

Hi 

I am having some trouble to access passive mode ftp sites.I
have a firewall with ip forwarding enabled.When a pc on the
network want to access passive ftp servers i need to do the
following in my rules ( on the server ):

-A OUTPUT -p tcp -m multiport --dport 21,20 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i eth0 -j ACCEPT
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT

But i do not want every query to be forwarded i only want
say ftp access to be forwarded. Why does the following not
work ( on the server ):

-A FORWARD -p tcp -i eth0 -o ppp0 --dport 20 -j ACCEPT
-A FORWARD -p tcp -i eth0 -o ppp0 --dport 21 -j ACCEPT
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
Regards
______________________________________________________________
Herbalife Independent Distributor http://www.healthiest.co.za


^ permalink raw reply	[flat|nested] 9+ messages in thread
* passive ftp
@ 2003-02-11 16:43 Luis Miguel Cruz Miranda
  2003-02-12 10:05 ` Cedric Blancher
  0 siblings, 1 reply; 9+ messages in thread
From: Luis Miguel Cruz Miranda @ 2003-02-11 16:43 UTC (permalink / raw)
  To: netfilter

Ok, I spend more than 30 minutes and I couldn't discover how to allow 
inbound passive ftp.
Can anyone write me a generic iptables rules?

Thanks

Luis Miguel Cruz Miranda.               |       B2B INTEGRAL, S.A.
CCNA - Systems Administrator            |       Pol. Ind. de Asipo
                                         |       C/A - Parcela 86-C
Tel: +34 902 506 605                    |       33.428 - CAYES - LLANERA
Fax:+34 985 980 794                     |       ASTURIAS (ESPAÑA/SPAIN)




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

end of thread, other threads:[~2004-04-18 16:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-17 17:50 passive ftp IT Clown
2004-04-17 18:03 ` Is there a more active mailing list for security? Krunk
2004-04-17 19:13   ` Mark E. Donaldson
2004-04-17 18:12 ` passive ftp Krunk
2004-04-17 18:18 ` IT Clown
2004-04-17 19:06 ` Mark E. Donaldson
2004-04-18 16:24   ` NAT FTP module problem GoMi
  -- strict thread matches above, loose matches on Subject: below --
2003-02-11 16:43 passive ftp Luis Miguel Cruz Miranda
2003-02-12 10:05 ` Cedric Blancher

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.