Skip to contentSkip to conversation

ftp connection tracking on multiple ports

DISCUSSION Mohamed Eldesoky 3 participants 5 messages Oct 28, 2004 – Oct 31, 2004

lore
Share & tools
lore
#0 lore raw

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 ??

Signature · 3 lines
Mohamed Eldesoky
www.eldesoky.net
RHCE
#1 lore raw

Make sure you accept the packets in the RELATED and ESTABLISHED state.

Quoted 20 lines · Mohamed Eldesoky

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

Signature · 1 line
Bla bla
#2 lore raw

I do
But it doesn't work when doing ftp host 45 then do ls it hangs there !!

Quoted 32 lines · George Alexandru Dragoi

Make sure you accept the packets in the RELATED and ESTABLISHED state.

On Thu, 28 Oct 2004 12:18:24 +0200, Mohamed Eldesoky

Quoted 12 lines · <[email protected]> wrote:

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

Quoted 8 lines

Is that all I need ??

--
Mohamed Eldesoky
www.eldesoky.net
RHCE

--
Bla bla

Signature · 3 lines
Mohamed Eldesoky
www.eldesoky.net
RHCE
#3 lore raw
In reply to Mohamed Eldesoky
Quoted 7 lines · Mohamed Eldesoky

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 !!

Quoted 6 lines

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 ??

iptables -A linweb_chain -m helper --helper ftp -j ACCEPT

-j

Signature · 1 line
Jason Opperisano <[email protected]>
#4 lore raw

Well, I did that before posting to the list.
Now I doubt it is a networking problem !!! there are reasons to doubt.

Quoted 25 lines · Jason Opperisano
Quoted 7 lines · Mohamed Eldesoky

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 !!

Quoted 6 lines

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 ??

iptables -A linweb_chain -m helper --helper ftp -j ACCEPT

-j

--
Jason Opperisano <[email protected]>

Signature · 3 lines
Mohamed Eldesoky
www.eldesoky.net
RHCE