automating iptable scripts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux