It just doesn&#39;t want to go past PASV. Spent past 3 hours trying to figure this one out. Any help is appreciated.<br><br><br>Log:<br><br>2009-09-17 16:26:56-0700 [-] Log opened.<br>2009-09-17 16:26:56-0700 [-] twisted.protocols.ftp.FTPFactory starting on *****<br>

2009-09-17 16:26:56-0700 [-] Starting factory &lt;twisted.protocols.ftp.FTPFactory instance at 0x2b3a031037a0&gt;<br>2009-09-17 16:26:59-0700 [twisted.protocols.ftp.FTPFactory] client connected<br>2009-09-17 16:26:59-0700 [twisted.protocols.ftp.FTPFactory] --&gt; 220 Twisted 8.2.0 FTP Server<br>

2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] &lt;-- USER fnet<br>2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] --&gt; 331 Password required for fnet.<br>2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] &lt;-- PASS *****<br>

2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] --&gt; 230 User logged in, proceed<br>2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] &lt;-- TYPE A<br>2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] --&gt; 200 Type set to A.<br>

2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] &lt;-- SYST<br>2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] --&gt; 215 UNIX Type: L8<br>2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] &lt;-- PWD<br>

2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] --&gt; 257 &quot;/&quot;<br>2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] &lt;-- PASV<br>2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] DTPFactory.setTimeout set to 10 seconds<br>

2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] twisted.protocols.ftp.DTPFactory starting on 38637<br>2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] Starting factory &lt;twisted.protocols.ftp.DTPFactory instance at 0x2b3a0544a170&gt;<br>

2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] --&gt; 227 Entering Passive Mode (65,61,232,130,150,237).<br>2009-09-17 16:27:10-0700 [-] timed out waiting for DTP connection<br>2009-09-17 16:27:10-0700 [-] Unexpected FTP error<br>

2009-09-17 16:27:10-0700 [-] Unhandled Error<br>    Traceback (most recent call last):<br>    Failure: twisted.internet.defer.TimeoutError: <br>    <br>2009-09-17 16:27:10-0700 [-] --&gt; 550 Requested action not taken: internal server error<br>

2009-09-17 16:27:10-0700 [-] dtpFactory.stopFactory<br><br><br><br>Code:<br><br>from twisted.protocols.ftp import FTPFactory, FTPRealm, FTP<br>from twisted.cred.portal import Portal<br>from twisted.cred.checkers import FilePasswordDB<br>

from twisted.internet import reactor<br>from twisted.python import log<br>import sys<br><br>log.startLogging(sys.stdout)<br><br>class bcFTPProtocol(FTP):<br>    def connectionMade(self):<br>        log.msg(&quot;client connected&quot;)<br>

        <br>        FTP.connectionMade(self)<br>        <br>    def lineReceived(self, line):<br>        log.msg(&quot;&lt;-- &quot; + line)<br>        FTP.lineReceived(self, line)<br>        <br>    def sendLine(self, msg):<br>

        log.msg(&quot;--&gt; &quot; + msg)<br>        FTP.sendLine(self, msg)<br><br>ftp_portal = Portal(FTPRealm(&#39;data/&#39;), [FilePasswordDB(&quot;ftp.users&quot;)])<br>ftp_factory = FTPFactory(ftp_portal)<br>ftp_factory.protocol = bcFTPProtocol<br>

<br>reactor.listenTCP(*****, ftp_factory)<br>reactor.run()<br><br><br><br><br><br><br clear="all">Thank you,<br><br>Slava Yanson<br>Positive Blue, LLC<br><br>web: <a href="http://www.positiveblue.com">www.positiveblue.com</a><br>

tel: (323) 963-4787<br>aim/yahoo/skype: urbansoot<br><br><a href="http://www.LinuxDecals.com/">http://www.LinuxDecals.com/</a><br>