[Twisted-Python] Twisted FTP server fails on PASV
It just doesn't want to go past PASV. Spent past 3 hours trying to figure
this one out. Any help is appreciated.
Log:
2009-09-17 16:26:56-0700 [-] Log opened.
2009-09-17 16:26:56-0700 [-] twisted.protocols.ftp.FTPFactory starting on
*****
2009-09-17 16:26:56-0700 [-] Starting factory
On Sep 17, 2009, at 7:29 PM, Slava Yanson wrote:
It just doesn't want to go past PASV. Spent past 3 hours trying to figure this one out. Any help is appreciated.
Since PASV mode goes to higher ports (> 1023), is it possible that a firewall's at the server getting in the way? http://slacksite.com/other/ftp.html#passive It looks like it's just timing out. S
Here is part of ipconfig file: -A RH-Firewall-1-INPUT -m tcp -p tcp --dport 65000:65200 -j ACCEPT -A RH-Firewall-1-INPUT -m udp -p udp --dport 65000:65200 -j ACCEPT And I just tried setting passivePortRange to that range and it still didn't work. netstat showed that port listening and it still didn't work even though vsftpd on same machine works fine with those ports. Just checked and I can login from same machine so it is firewall issue... Anyone has any ideas on how to fix that? Thank you, Slava Yanson Positive Blue, LLC web: www.positiveblue.com tel: (323) 963-4787 aim/yahoo/skype: urbansoot http://www.LinuxDecals.com/ On Thu, Sep 17, 2009 at 4:39 PM, Steve Steiner (listsin) < listsin@integrateddevcorp.com> wrote:
On Sep 17, 2009, at 7:29 PM, Slava Yanson wrote:
It just doesn't want to go past PASV. Spent past 3 hours trying to figure this one out. Any help is appreciated.
Since PASV mode goes to higher ports (> 1023), is it possible that a firewall's at the server getting in the way?
http://slacksite.com/other/ftp.html#passive
It looks like it's just timing out.
S
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On 2009-09-17, Slava Yanson wrote:
Here is part of ipconfig file:
-A RH-Firewall-1-INPUT -m tcp -p tcp --dport 65000:65200 -j ACCEPT -A RH-Firewall-1-INPUT -m udp -p udp --dport 65000:65200 -j ACCEPT
And I just tried setting passivePortRange to that range and it still didn't work. netstat showed that port listening and it still didn't work even though vsftpd on same machine works fine with those ports. Just checked and I can login from same machine so it is firewall issue... Anyone has any ideas on how to fix that?
Yes, the best thing to do is to add a -j LOG rule to your firewall and then look at /var/log/kernel in order to see what packets are being blocked. I would combine that approach with tcpdump to see what you can do to resolve this. -- Regards, Stephen Thorne Development Engineer NetBox Blue - 1300 737 060
participants (3)
-
Slava Yanson
-
Stephen Thorne
-
Steve Steiner (listsin)