Linux Netfilter discussions
 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; 7+ 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] 7+ messages in thread

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

Thread overview: 7+ 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox