Help!!!
Srocno nuzna pomosh. Zadolbal menia iproute2 s fwmark.
Situacija takja:
2 kanala v internet.
a - desevij(bistrij localnij trafffic po Litve)
b - dorogoj ADSL (bistrija zagranmica)
propisal vse routes na Litvu metodom:
ip route add 212.59.0.0/24 via 213.x.x.x
ip route add 212.59.1.0/24 via 213.x.x.x
ip route add 212.59.2.0/23 via 213.x.x.x
ip route add 212.59.4.0/22 via 213.x.x.x
.
.
.
.
a default ostavil zagranicnij kanal:
ip route add default via 195.x.x.x dev eth2
teper hocu IRC puskat v default, a on lezit po propisannim routam cerez 213.x.x.x
Ja delal vse kak napisano v manualah info bral s opennet.ru.
echo 202 irc.out >> /etc/iproute2/rt_tables
ip rule add fwmark 67 table irc.out
ip route add default via 195.x.x.x dev eth2 table irc.out
ip route flush cache
v iptables propisival :
iptables -A PREROUTING -i eth1 -t mangle -p tcp -s 10.0.0.1 --dport 6667 \
-j MARK --set-mark 67
iptables -L -vn pokazivaet sto packeti pomeciajutsia t.e scetcik nakrucivaetsia .... a mirc lezet cerez 213.x.x.x - zadolbalo uze ...
gabija:~# ip rule list
0: from all lookup local
32765: from all fwmark 67 lookup irc.out
32766: from all lookup main
32767: from all lookup default
t.e po idee pervoj idet moja tablica irc.out a tolko potom main, s propisnimi routami, a emu vidno pofig ...
poproboval propisnije routes vikinut ... ostaviv default 195.x.x.x togda fwmark srabotal...
Ocen nuzno zastavit sistemu rabotat ...