У меня следующая проблема, для рутинга я написал этот скрипт:
#bin/sh
modprobe -k iptable_filter iptable_nat 1>/dev/null 2>/dev/null
if [ -z "$1" ] || [ -z "$2" ]; then
exit 1
fi
if [ -z "`ifconfig $1`" ]; then
exit 0
fi
if [ -z "`ifconfig $2`" ]; then
exit 0
fi
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
iptables --table nat --append POSTROUTING --out-interface $1 -j MASQUERADE
iptables --append FORWARD --in-interface $2 -j ACCEPT
но через какоето время поевляется overflow, а после рестарта какоето время всё ОK!
Скажыте плиз, где я ошибся???