Решил все-таки поставить новую версию 7.1 дебиан. Но не так не смог разобратся с новшевством
iptables-persistent. подскажите как правильно прописать мой старый конфиг?
#!/bin/sh
/sbin/depmod -a
/sbin/modprobe ip_tables
/sbin/modprobe ip_conntrack
/sbin/modprobe iptable_filter
/sbin/modprobe iptable_nat
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
iptables -t nat -P OUTPUT ACCEPT
iptables -t mangle -P PREROUTING ACCEPT
iptables -t mangle -P OUTPUT ACCEPT
iptables -F
iptables -t nat -F
iptables -t mangle -F
iptables -X
iptables -t nat -X
iptables -t mangle -X
iptables -A INPUT -i eth0 -j ACCEPT
iptables -A FORWARD -i ppp0 -j ACCEPT
#iptables -A FORWARD -i ppp1 -j ACCEPT
#iptables -t nat -A POSTROUTING -s 10.10.10.2 -o ppp0 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 10.10.10.10 -o ppp0 -j MASQUERADE
iptables -t mangle -A FORWARD -s 10.10.10.7 -j MARK --set-mark 103
iptables -t nat -A POSTROUTING -s 10.10.10.3 -o ppp0 -j MASQUERADE
iptables -t mangle -A FORWARD -s 10.10.10.3 -j MARK --set-mark 106
#iptables -t nat -A POSTROUTING -s 10.10.10.4 -o ppp0 -j MASQUERADE
#iptables -t nat -A POSTROUTING -s 10.10.10.5 -o ppp0 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 10.10.10.6 -o ppp0 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 10.10.10.7 -o ppp0 -j MASQUERADE
iptables -t mangle -A FORWARD -s 10.10.10.9 -j MARK --set-mark 105
iptables -t mangle -A FORWARD -s 10.10.10.6 -j MARK --set-mark 101
iptables -t nat -A POSTROUTING -s 10.10.10.8 -o ppp0 -j MASQUERADE
iptables -t mangle -A FORWARD -s 10.10.10.8 -j MARK --set-mark 102
iptables -t nat -A POSTROUTING -s 10.10.10.9 -o ppp0 -j MASQUERADE
#iptables -t nat -A POSTROUTING -s 10.10.10.11 -o ppp0 -j MASQUERADE
#iptables -t nat -A POSTROUTING -s 10.10.10.12 -o ppp0 -j MASQUERADE
Пользуйтесь форматированием сообщений.
verg