Skip to contentSkip to conversation

automating iptable scripts

DISCUSSION netfilter-maillist 1 participant 1 message Mar 24, 2003

lore
Share & tools
lore
#0 lore raw

Hello, netfilter.

Quoted 10 lines

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

Signature · 2 lines
With best wishes,
 netfilter-maillist                          mailto:[email protected]