LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-27-2004, 11:13 PM   #1
dgnr8
LQ Newbie
 
Registered: Jan 2003
Location: Dallas
Distribution: "RH 8.0 i386" "krnl 2.4.18-19.8.0" "gcc 3.2-7"
Posts: 4

Rep: Reputation: 0
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

Last edited by dgnr8; 02-27-2004 at 11:16 PM.
 
Old 02-28-2004, 12:15 AM   #2
dgnr8
LQ Newbie
 
Registered: Jan 2003
Location: Dallas
Distribution: "RH 8.0 i386" "krnl 2.4.18-19.8.0" "gcc 3.2-7"
Posts: 4

Original Poster
Rep: Reputation: 0
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,,
 
Old 02-28-2004, 04:14 PM   #3
dgnr8
LQ Newbie
 
Registered: Jan 2003
Location: Dallas
Distribution: "RH 8.0 i386" "krnl 2.4.18-19.8.0" "gcc 3.2-7"
Posts: 4

Original Poster
Rep: Reputation: 0
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,
 
Old 03-02-2004, 08:00 PM   #4
dgnr8
LQ Newbie
 
Registered: Jan 2003
Location: Dallas
Distribution: "RH 8.0 i386" "krnl 2.4.18-19.8.0" "gcc 3.2-7"
Posts: 4

Original Poster
Rep: Reputation: 0
BUMP
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shell script using /etc/cron.hourly to execute cron.php file? rioguia Programming 3 06-11-2008 08:09 AM
IPTABLES and CRON xathras Linux - Security 4 04-21-2005 08:13 AM
iptables and vsftp yenonn Linux - Networking 4 07-12-2004 04:19 AM
[cron][mdk9.1]cron deamon seems to ignore some task... yannrichet Linux - Newbie 5 06-26-2003 09:57 AM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration