From: david <dlm4444@bigzoo.net>
To: netfilter@lists.netfilter.org
Subject: Why want my iptables scripts run in cron
Date: Tue, 18 Mar 2003 22:01:19 -0500 [thread overview]
Message-ID: <200303182201.19202.dlm4444@bigzoo.net> (raw)
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
next reply other threads:[~2003-03-19 3:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-19 3:01 david [this message]
2003-03-24 16:03 ` Why want my iptables scripts run in cron Ales Stibal
2003-03-24 18:50 ` Getting Netfilter to play nice Rowan Reid
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200303182201.19202.dlm4444@bigzoo.net \
--to=dlm4444@bigzoo.net \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox