The instructions have been verified on the following setup:
Netgear WGR614v9 router
Source code: Netgear WGR614v9-V1.2.6_18.0.17WW
Tool chain: hnd-tools-3.2.3
Tools: Telnetenable-0.3
Development system: Fedora 8 kernel 2.6.26
1. Check if vsftpd has been installed on the system, if avaialble, then edit
/etc/vsftpd/vsftpd.conf file and ensure the following is visible / set:
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
idle_session_timeout=600
data_connection_timeout=120
ftpd_banner=Welcome to shastry FTP service.
ls_recurse_enable=YES
listen=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
2. Enable vsftpd on the development system using the command:
service vsftpd restart
3. Login into the WGR614v9 through telnet and change into directory to /tmp.
4. On the router, execute the following command:
/usr/sbin/ftpc -d dev_ip -u username -p userpasswd -f localfile -s sourcefile
Note: localfile is on the router, sourcefile is on the development system,
username & userpasswd is on the development system used for getting the ftp
data, dev_ip is the ip address of the development system. The assumption in
here is that the sroucefile is available in the home directory of the
username.
Recent comments