Linux Netfilter discussions
 help / color / mirror / Atom feed
* Why want my iptables scripts run in cron
@ 2003-03-19  3:01 david
  2003-03-24 16:03 ` Ales Stibal
  0 siblings, 1 reply; 3+ messages in thread
From: david @ 2003-03-19  3:01 UTC (permalink / raw)
  To: netfilter

I have a simple script called routup.sh to start the routing at a certain 
time, it is excutable. It runs fine at the command line but not cron. here is 
what my cron entry looks like:                0 9 * * * root   /etc/routup.sh
#routup.sh
#!/bin/bash

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE 

I even went as far to add a path to the crontab file like this:
vi crontab   

/sbin/iptables.  
where am i going wrong. 
The o.s. is linux mandrake 9.0

thanks for any help,

david 





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-03-24 18:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-19  3:01 Why want my iptables scripts run in cron david
2003-03-24 16:03 ` Ales Stibal
2003-03-24 18:50   ` Getting Netfilter to play nice Rowan Reid

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox