Hey, I need some serious tech help, this issue has got me scratching my head bigtime.
I have a LAN at home, like most, and the terminal equipment is a Zyxel C1100Z; all in one DSL modem, router, wireless AP. I have in the past operated an FTP server on the LAN, for storing security video, no problems. Set up port forwarding (21) in the router and all was well. I recently changed hardware and got a nice little Western Digital NAS which incorporates FTP support, which is where this saga began. I soon discovered the NAS only supported anonymous login, which was a problem, as it was vulnerable to having hackers plant stuff on the FTP site.
So, I shut down that FTP function for the time being... and while ensuring all the vulnerabilities are closed, I've come across something I can't figure out. When I scan my network for open ports, 21 keeps showing up as open. And it seems to be internal to the router. I have scanned every device individually on the network, and 21 only shows up on the router, and it shows up there whether scanned from the LAN side or if I scan it from the public (WAN) side.
Port forwarding for 21 is definitely removed from the forwarding table.
UPNP is turned off in the router, I read that could expose port 21 if enabled.
Making it even more interesting is when I try to connect to the FTP site, it's giving me a response.
When I try to connect from the WAN side I've used an FTP client on my phone (which is not on the LAN WiFi). I get responses such as:
"220 Ftp firmware update utility"
I get a login dialog; (don't have valid credentials of course)
Then I get "421 Login incorrect"
I've used my windows 10 laptop on the LAN side, and again I get a login prompt, indicating the client has found a server at the router's address on port 21. I've tried login here using the default login for router admin, and it seems to open, but there are not contents, and if I try to create a folder or make a change it pops up an error dialog with "200 transfer type changed to ascii" and then "227 Entering Passive Mode".
So.... it appears to me that possibly Zyxel plants an FTP server inside their modem, perhaps as a platform for rolling out updates to firmware? But if that's true, then how does it coexist with FTP servers behind the router using port 21 (which it has successfully done)?
Any help from network or router Gurus who can help me figure out what's going on is much appreciated!
49 States, 6 Provinces, 2 Territories...