Skip to contentSkip to conversation

automating iptable scripts

DISCUSSION dlm4444 1 participant 1 message Mar 20, 2003

lore
Share & tools
lore

dlm4444

author
#0 lore raw

hello all,

I tried using cron to start up iptable scripts , even thought the script run with out errors at the command line.
It enables routing. for example,

the script is execuable! chmod +x routeup.sh
#!/bin/bash

echo 1 > /Proc/sys/net/ipv4/ip_forwarding iptables -t nat -A POSTROUTING -o eth1 -j MASQUERED

I even tried iptables scripts to let me ping my maching at certint times of the day. but all fails in cron.

OS

RedHat 8.0
Linux Mandrake 9.0

thanks for any help

David