[Fwd: Re: dotaz]

David Rohleder davro na ics.muni.cz
Čtvrtek Květen 18 17:18:56 CEST 2000


zdenek.pizl na post.cz (Zdenek Pizl) writes:

> Ahoj,
> 
> mam nasledujici dotaz:
> 
> mam routing problem. Jsem pripojen do inetu pres eth0 (bezdrat via VOL
> 128KB, omezene mozstvi dat)
> nyni jsem ziskal dalsi cestu do inetu a to pres eth1 (Kabel TV via
> DatelKabel 64KB, bez omezeni prenesenych dat).
> 
> Rad bych vyuzival obe cesty a to tak, aby HTTP slo pres eth0, a zbytek
> pres eth1.
> Na mem Linux Slackware 4.0 funguje squid 2.x
> 
> 	vite nekdo, jak na to ??

fwmark, ip rule

ex:

ipchains -A output -d 0/0 80 -m 20

ip rule add fwmark 20 table web

ip route add default table web

/etc/iproute2/rt_tables:
255     local
254     main
253     default
252     web
0       unspec

Je to bez zaruky, protoze nevim, kdy se uplatnuji output
pravidla. Jestli uz pred routovanim, nebo az po nem (pak by tam musel
byt forward).

-- 
-------------------------------------------------------------------------
David Rohleder						davro na ics.muni.cz
Institute of Computer Science, Masaryk University
Brno, Czech Republic
-------------------------------------------------------------------------


Další informace o konferenci Linux