Startup script for Proftp Passive mode not working [SOLVED]

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
tom2tom
DD-WRT Novice


Joined: 24 May 2020
Posts: 19

PostPosted: Sun May 24, 2020 7:09    Post subject: Startup script for Proftp Passive mode not working [SOLVED] Reply with quote
Hi
I am a novice for dd-wrt
I set up a ftp for passive mode and save as startup script, upon reboot it did not execute.

https://wiki.dd-wrt.com/wiki/index.php/ProFTPd

#-------- for proftpd passive WAN access -----
echo 'MasqueradeAddress xxxxx.ddns.net'>> /tmp/proftpd/etc/proftpd.conf #Masquerade the responses
echo 'PassivePorts 55000 56000'>> /tmp/proftpd/etc/proftpd.conf #Set the passive ports range
killall -HUP proftpd #restart the ftp server

I checked proftpd.conf using SSH(SCP), no mention of the passive ports are found. after manual execution it is there in the .conf file.

any idea why? any suggestion welcome and thank you
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14246
Location: Texas, USA

PostPosted: Sun May 24, 2020 9:53    Post subject: Reply with quote
On what router, on which build revision number...
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
tom2tom
DD-WRT Novice


Joined: 24 May 2020
Posts: 19

PostPosted: Sun May 24, 2020 11:46    Post subject: Reply with quote
Router:Linksys WRT1900AC
Firmware: DD-WRT v3.0-r43028 std (04/29/20)

Thank you
tom2tom
DD-WRT Novice


Joined: 24 May 2020
Posts: 19

PostPosted: Fri May 29, 2020 3:33    Post subject: Firmware upgrade - issue still the same Reply with quote
Hi
Upgraded the firware to DD-WRT v3.0-r43266 std (05/27/20) still the startup script doesn't run.
Any suggestions please
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14246
Location: Texas, USA

PostPosted: Fri May 29, 2020 3:58    Post subject: Reply with quote
I just re-looked at the wiki vs. the latest build. This is probably no longer required.

Quote:
This page was last modified 22:54, 26 July 2012

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
tom2tom
DD-WRT Novice


Joined: 24 May 2020
Posts: 19

PostPosted: Fri May 29, 2020 4:32    Post subject: Reply with quote
Hi kernel-panic69
Thanks for looking that up for me. I understand what you say. But the Proftp (/opt) works on default 21, when changed to a custom port won't work until the script is run manually after each reboot. That's the reason why I wondering why the script wouldn't work at start up.

I have also tried resetting the router and restoring with the backup still doesn't work. I don't know what I am doing wrong.

Thanks for your help.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12915
Location: Netherlands

PostPosted: Fri May 29, 2020 5:58    Post subject: Reply with quote
Maybe proftpd needs some time to start.

So before the startup script add:
sleep 30

Oh and resetting and then restoring from backup is useless.
Garbage out garbage in

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
tom2tom
DD-WRT Novice


Joined: 24 May 2020
Posts: 19

PostPosted: Fri May 29, 2020 8:50    Post subject: Reply with quote
Hi egc
Thanks for the response.

yes, the "sleep 30" fixed the issue.

Thank you. Very Happy
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14246
Location: Texas, USA

PostPosted: Fri May 29, 2020 13:07    Post subject: Reply with quote
I wasn't even thinking about adding the sleep in my last reply Embarassed. Glad it's working.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12915
Location: Netherlands

PostPosted: Fri May 29, 2020 13:11    Post subject: Reply with quote
kernel-panic69 wrote:
I wasn't even thinking about adding the sleep in my last reply Embarassed. Glad it's working.


Glad to see that you are human and do not know everything Wink

OP, please mark this thread as [SOLVED] in the heading of the first post so that others know Smile

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14246
Location: Texas, USA

PostPosted: Fri May 29, 2020 13:15    Post subject: Reply with quote
I already marked it, so there is no "last edited" in the OP lol Cool Wink

Yeah, don't tell everyone I am human, now, I might catch grief Twisted Evil Laughing

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking 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 cannot attach files in this forum
You cannot download files in this forum