Fritz box 4020

Hi,

I have fritz box 4020 and try install Openwrt (last ver) but from my terminal ubuntu 20.04
I have error last step:

john@john:~/ftp$ ftp -n -4 192.168.178.1
Connected to 192.168.178.1.
220 ADAM2 FTP Server ready
ftp> quote USER adam2
331 Password required for adam2
ftp> quote PASS adam2
230 User adam2 successfully logged in
ftp> binary
200 Type set to BINARY
ftp> debug
Debugging on (debug=1).
ftp> passive
Passive mode: off; fallback to active mode: off.
ftp> quote MEDIA FLSH
---> MEDIA FLSH
200 Media set to MEDIA_FLASH
ftp> put openwrt-sysupgrade.bin mtd1
local: openwrt-sysupgrade.bin remote: mtd1
ftp: setsockopt SO_DEBUG (ignored): Permission denied
---> EPRT |1|192.168.178.2|41835|
502 Command not implemented
disabling epsv4 for this connection
---> PORT 192,168,178,2,163,107
502 Command not implemented
ftp: Can't bind for data connection: Address already in use
ftp>

I can't understand why I have this error.

Regards

You sure you're supposed to use passive mode, and not port ?
Or the other way around...

Seems like enabling passive mode did not work - maybe the correct command for your FTP client is passive on? You can also try a different FTP client, there should be some in the repository.

Sorry no ubuntu here anymore....
Just aftp running on Manjaro.

But I remember that I had to enable passive mode in etc/vsftpd.conf. i.e.

pasv_enable=Yes
pasv_min_port=10100
pasv_max_port=10110

Hi,

thank you for help, my error passive mode command is "passive on".
Now it's ok.

Connected to 192.168.178.1.
220 ADAM2 FTP Server ready
ftp> quote USER adam2
331 Password required for adam2
ftp> quote PASS adam2
230 User adam2 successfully logged in
ftp> binary
200 Type set to BINARY
ftp> debug
Debugging on (debug=1).
ftp> passive on
Passive mode: on; fallback to active mode: off.
ftp> quote MEDIA FLSH
---> MEDIA FLSH
200 Media set to MEDIA_FLASH
ftp> put kernal.bin mtd1
local: kernal.bin remote: mtd1
---> EPSV
502 Command not implemented
disabling epsv4 for this connection
---> PASV
227 Entering Passive Mode (192,168,178,1,12,2)
---> STOR mtd1
150 Opening BINARY data connection
100% |***********************************|  5484 KiB  295.04 KiB/s    00:00 ETA
226 Transfer complete
5616333 bytes sent in 00:18 (294.23 KiB/s)
ftp>

Regards

You might want to mark the thread as solved, thanks for reporting back!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.