Re:automating iptable scripts

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

 



Hello, netfilter.

>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=20
>the day. but all fails in cron.
--------------------------------------------------------------
#!/bin/bash
echo 1 > /Proc/sys/net/ipv4/ip_forwarding
/sbin/iptables -t nat -A POSTROUTING -o eth1 -j MASQUEREDE


-- 
With best wishes,
 netfilter-maillist                          mailto:vlad@xxxxxxxxxxxxxxxx



[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