Yes. That would help. Also do an lsmod to make
sure all of the needed modules are loaded. From: Christian Gmeiner [mailto:christian@xxxxxxxxxxxxxx] Sent: Wednesday, January 21, 2004 3:58 AM To: markee@xxxxxxxxxxxxxxx; netfilter@xxxxxxxxxxxxxxxxxxx Subject: Re: Problem with connection-tracking and FTP Thanks... I have now used your rule
set:
# CONTROL PORT (Active &
Passive Mode)
iptables -A INPUT -i ${EXT_INT} -p tcp --source-port ${UNPRIVPORTS} --destination-port 21 -m state --state NEW -j LOG --log-prefix "FTP ACCESS -> " iptables -A INPUT -i ${EXT_INT} -p tcp --source-port ${UNPRIVPORTS} --destination-port 21 -m state --state NEW -j ACCEPT # DATA PORT (Active Mode) iptables -A OUTPUT -o ${EXT_INT} -p tcp --source-port 20 --destination-port ${UNPRIVPORTS} -m state --state NEW -j LOG --log-prefix "FTP A-DATA -> " iptables -A OUTPUT -o ${EXT_INT} -p tcp --source-port 20 --destination-port ${UNPRIVPORTS} -m state --state NEW -j ACCEPT # DATA PORT (Passive Mode) iptables -A INPUT -i ${EXT_INT} -p tcp --source-port ${UNPRIVPORTS} --destination-port ${UNPRIVPORTS} -m state --state NEW -j LOG --log-prefix "FTP P-DATA -> " iptables -A INPUT -i ${EXT_INT} -p tcp --source-port ${UNPRIVPORTS} --destination-port ${UNPRIVPORTS} -m state --state NEW -j ACCEPT I can connect to the FTP-Server and login... but
then wehen the directory listening should come it hangs. I have no idea, why
this is so.
Should i post the output of 'iptables -L -n -v
--line-numbers'?
Thanks, Christian Gmeiner
|