automating iptable scripts
Hello, netfilter.
Quoted 10 lines
the script is execuable! chmod +x
routeup.sh
#!/bin/bashecho 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
Signature · 2 lines
With best wishes, netfilter-maillist mailto:[email protected]