ftp connection tracking on multiple ports
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
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/modprobeip_conntrack_ftpports=21,45
$IPTABLES -Alinweb_chain-p tcp -m multiport --destination-port 80,21,45 -j ACCEPTIs that all I need ??
--
Mohamed Eldesoky
www.eldesoky.net
RHCE
Signature · 1 line
Bla bla
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/modprobeip_conntrack_ftpports=21,45
$IPTABLES -Alinweb_chain-p tcp -m multiport --destination-port 80,21,45 -j ACCEPTQuoted 8 lines
Is that all I need ??
--
Mohamed Eldesoky
www.eldesoky.net
RHCE--
Bla bla
Signature · 3 lines
Mohamed Eldesoky www.eldesoky.net RHCE
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/modprobeip_conntrack_ftpports=21,45
$IPTABLES -Alinweb_chain-p tcp -m multiport --destination-port 80,21,45 -j ACCEPTIs that all I need ??
iptables -A linweb_chain -m helper --helper ftp -j ACCEPT
-j
Signature · 1 line
Jason Opperisano <[email protected]>
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/modprobeip_conntrack_ftpports=21,45
$IPTABLES -Alinweb_chain-p tcp -m multiport --destination-port 80,21,45 -j ACCEPTIs 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