Cron? vsftp? iptables?
ok, i hope i dont get flamed too much here -
I run vsftpd - in order to make passive xfer work for my end users, i have to run these commands: ------------------------------- /sbin/modprobe ip_conntrack_ftp /sbin/modprobe ip_nat_ftp /sbin/iptables -F ------------------------------- now for some reason only recently i've needed to re-run these commands througout the day as i've noticed that passive xfer wasn't being allowed even after these commands had been run - SO i tried to set up kcron task - i listed the the above commands exactlly the way i listed them here and set it to load everyday, every hour, every five minutes.. i then rebooted the machine - and the jobs dont appear to be running, i still have to run them manually in order for passive to work - do i need to add these jobs in kcron logged in as root? hmm, i dont know,, HELP is appreciated OHH and im set up like this - Cable connection/modem Router doing dhcp (private ip's) and Port forwarding |
ok well i logged in as root and loaded kcron - i listed new task under FTP and FTPADMIN "thats the name of my ftp user" i also added the task under my username - they still didn't work -
hmm,, wondering,, |
well, i havent gotten a response so i went looken on google groups for linux and came up with my solution - running it in the crontab for every minute past the hour -
i've added these three entries into /etc/crontab and it works. I'd like to figure out a long term solution for WHY i have to run this seriers of commands in order to get passive xfer working and my redhat speaking to other windows boxes on the network - I added these lines under run-parts ------------------------------------------------- 01 * * * * root /sbin/modprobe ip_conntrack_ftp # 01 * * * * root /sbin/modprobe ip_nat_ftp # 01 * * * * root /sbin/iptables -F ------------------------------------------------- thanks, |
BUMP
|
All times are GMT -5. The time now is 11:37 PM. |