All of lore.kernel.org
 help / color / mirror / Atom feed
* ftp connection tracking on multiple ports
@ 2004-10-28 10:18 Mohamed Eldesoky
  2004-10-28 10:21 ` George Alexandru Dragoi
  2004-10-28 12:41 ` Jason Opperisano
  0 siblings, 2 replies; 8+ messages in thread
From: Mohamed Eldesoky @ 2004-10-28 10:18 UTC (permalink / raw)
  To: netfilter

Dear all,

I have a server that runs FTP on two ports, port 21 and port 45 (for
strange reasons)
Now, i want conntrack to track the connections of both ports and their
data ports !!

I did that in my firewall script
/sbin/modprobe ip_conntrack_ftp ports=21,45
$IPTABLES -A linweb_chain -p tcp -m multiport --destination-port
80,21,45 -j ACCEPT

Is that all I need ??

-- 
Mohamed Eldesoky
www.eldesoky.net
RHCE


^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: ftp connection tracking on multiple ports
@ 2004-10-28 10:40 Sneppe Filip
  2004-10-28 11:10 ` Mohamed Eldesoky
  0 siblings, 1 reply; 8+ messages in thread
From: Sneppe Filip @ 2004-10-28 10:40 UTC (permalink / raw)
  To: Mohamed Eldesoky, George Alexandru Dragoi, netfilter

Mohamed Eldesoky wrote:
 
>I do
>But it doesn't work when doing ftp host 45 then do ls
>it hangs there !!

Hi,

Don't forget you also need to add the ports for the nat helper:

modprobe ip_nat_ftp ports=21,45

(If ip_nat_ftp is already loaded, you need to rmmod the module first 
and then load it again - same thing with ip_conntrack_ftp if you change 
a kernel module parameter)

Regards,
Filip

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

end of thread, other threads:[~2004-10-31  7:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-28 10:18 ftp connection tracking on multiple ports Mohamed Eldesoky
2004-10-28 10:21 ` George Alexandru Dragoi
2004-10-28 10:40   ` Mohamed Eldesoky
2004-10-28 12:41 ` Jason Opperisano
2004-10-31  7:34   ` Mohamed Eldesoky
  -- strict thread matches above, loose matches on Subject: below --
2004-10-28 10:40 Sneppe Filip
2004-10-28 11:10 ` Mohamed Eldesoky
2004-10-30 21:00   ` Jose Maria Lopez

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.