route /?
Есть никсовый скрипт..
[spoiler]
Код: Выделить всё
#!/bin/bash
gen1us2k_ip='77.235.12.36'
kg_if='ppp0'
un_if='ppp1'
# text redactors
ifc='/sbin/ifconfig'
sed='/bin/sed'
g='/bin/grep'
if [ "`$ifc $kg_if | $g addr: | $sed 's/.*addr:\([^ ]*\) .*/\1/'`" == "$gen1us2k_ip" ]; then
route add -net 89.237.192.0/18 dev $kg_if
route add -net 81.20.16.0/20 dev $kg_if
route add -net 85.115.193.0/24 dev $kg_if
route add -net 194.152.37.0/24 dev $kg_if
route add -net 212.112.96.0/19 dev $kg_if
route add -net 85.115.200.0/21 dev $kg_if
route add -net 85.115.195.0/24 dev $kg_if
route add -net 92.245.96.0/19 dev $kg_if
route add -net 85.115.216.0/21 dev $kg_if
route add -net 92.62.64.0/20 dev $kg_if
route add -net 77.95.56.0/21 dev $kg_if
route add -net 212.97.0.0/19 dev $kg_if
route add -net 212.2.224.0/19 dev $kg_if
route add -net 91.205.48.0/22 dev $kg_if
route add -net 109.201.160.0/19 dev $kg_if
route add -net 81.88.192.0/20 dev $kg_if
route add -net 193.106.48.0/22 dev $kg_if
route add -net 94.143.192.0/21 dev $kg_if
route add -net 217.29.16.0/20 dev $kg_if
route add -net 212.241.0.0/19 dev $kg_if
route add -net 91.213.233.0/24 dev $kg_if
route add -net 85.113.0.0/19 dev $kg_if
route add -net 85.115.196.0/24 dev $kg_if
route add -net 195.38.160.0/19 dev $kg_if
route add -net 109.71.224.0/21 dev $kg_if
route add -net 212.42.96.0/19 dev $kg_if
route add -net 194.176.111.0/24 dev $kg_if
route add -net 85.115.192.0/24 dev $kg_if
route add -net 85.115.199.0/24 dev $kg_if
route add -net 85.115.198.0/24 dev $kg_if
route add -net 178.216.208.0/21 dev $kg_if
route add -net 194.152.36.0/24 dev $kg_if
route add -net 77.235.0.0/19 dev $kg_if
route add -net 95.215.244.0/22 dev $kg_if
route add -net 85.115.194.0/24 dev $kg_if
route add -net 85.26.220.0/22 dev $kg_if
route add -net 195.162.92.0/22 dev $kg_if
route add -net 91.192.64.0/22 dev $kg_if
route add -net 85.115.197.0/24 dev $kg_if
route add -net 85.115.208.0/21 dev $kg_if
route add -net 213.145.128.0/19 dev $kg_if
else
route add -net 89.237.192.0/18 dev $un_if
route add -net 81.20.16.0/20 dev $un_if
route add -net 85.115.193.0/24 dev $un_if
route add -net 194.152.37.0/24 dev $un_if
route add -net 212.112.96.0/19 dev $un_if
route add -net 85.115.200.0/21 dev $un_if
route add -net 85.115.195.0/24 dev $un_if
route add -net 92.245.96.0/19 dev $un_if
route add -net 85.115.216.0/21 dev $un_if
route add -net 92.62.64.0/20 dev $un_if
route add -net 77.95.56.0/21 dev $un_if
route add -net 212.97.0.0/19 dev $un_if
route add -net 212.2.224.0/19 dev $un_if
route add -net 91.205.48.0/22 dev $un_if
route add -net 109.201.160.0/19 dev $un_if
route add -net 81.88.192.0/20 dev $un_if
route add -net 193.106.48.0/22 dev $un_if
route add -net 94.143.192.0/21 dev $un_if
route add -net 217.29.16.0/20 dev $un_if
route add -net 212.241.0.0/19 dev $un_if
route add -net 91.213.233.0/24 dev $un_if
route add -net 85.113.0.0/19 dev $un_if
route add -net 85.115.196.0/24 dev $un_if
route add -net 195.38.160.0/19 dev $un_if
route add -net 109.71.224.0/21 dev $un_if
route add -net 212.42.96.0/19 dev $un_if
route add -net 194.176.111.0/24 dev $un_if
route add -net 85.115.192.0/24 dev $un_if
route add -net 85.115.199.0/24 dev $un_if
route add -net 85.115.198.0/24 dev $un_if
route add -net 178.216.208.0/21 dev $un_if
route add -net 194.152.36.0/24 dev $un_if
route add -net 77.235.0.0/19 dev $un_if
route add -net 95.215.244.0/22 dev $un_if
route add -net 85.115.194.0/24 dev $un_if
route add -net 85.26.220.0/22 dev $un_if
route add -net 195.162.92.0/22 dev $un_if
route add -net 91.192.64.0/22 dev $un_if
route add -net 85.115.197.0/24 dev $un_if
route add -net 85.115.208.0/21 dev $un_if
route add -net 213.145.128.0/19 dev $un_if
fi
Сами маршруты, прописать не проблема.. я не знаю как в венде сделать то, что у меня ща на бубунте