Updated Root FTP instruction properly

This commit is contained in:
Ankan Pal 2022-10-18 23:17:20 +05:30 committed by GitHub
parent 9cb9cd1f06
commit 21511eff03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -7,7 +7,7 @@
2. Use command `pkill vsftpd` to kill any already running FTP server on your router.
3. Using `vi`, edit `/etc/vsftpd.conf` and remove all the lines and add these lines:
3. Using `vi`, create `/flash/vsftpd.conf` and add these lines:
```
anonymous_enable=NO
@ -31,8 +31,10 @@
4. Save the file.
5. Use command `vsftpd /etc/vsftpd.conf &` to start the FTP server.
5. Use command `vsftpd /flash/vsftpd.conf &` to start the FTP server.
6. Use command `iptables -I fwInBypass -p tcp --dport 21 -m ifgroup --ifgroup-in 0x1/0x1 -j ACCEPT` to enable listening to port 21.
7. Connect your router using FTP client like FileZilla using `root` as username and your root password as the password.
7. Connect your router using FTP client like FileZilla using `root` as username and your root password as the password.
_**P.S. : You can also make a `.sh` script in `/flash/` or `/flash2/` to automate this process.**_