How come inbound passive FTP connections work?

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
Zbig
DD-WRT Novice


Joined: 29 Sep 2009
Posts: 7

PostPosted: Sat Aug 04, 2012 22:33    Post subject: How come inbound passive FTP connections work? Reply with quote
Now, it may seem weird but I'm puzzled by this and I'd actually like to know why something works for me while I genuinely believed it shouldn't Wink

So, I have a WRT320 running build 14896. I've set up FileZilla Server on a LAN machine, set up Windows Firewall exception and made a single forwarding for port 21. What I expected after that was some fighting with PASV port range but it proved unnecessary as my first test from the outside just worked. Server picked some incoming port and the FTP client on the outside was somehow just able to connect there. I didn't enable DMZ. Then, out of curiosity, I've switched SPI firewall off - still worked. Finally, I've been able to break it by changing FTP server's listening port (and forwarding rule's target port) Smile So my question is: where does the magic happen? As I imagine, there has to be some hardcoded rule which deep-inspects everything going to port 21 for the FTP 227 message, then does some math and finally makes temporary firewall opening/port forward? Are there other automagical features like this?

Best regards
Zbig
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum