* [LARTC] HTB rules for the two ISP
@ 2002-12-02 15:36 Rimas
0 siblings, 0 replies; only message in thread
From: Rimas @ 2002-12-02 15:36 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 1113 bytes --]
Hi folks,
I have two ISP connections:
ISP1 (eth0) wireless 1mb/1mb contention 4 to 1 (at least we get 256kbps speed)
ISP2 (eth1) ADSL 1mb/256kb
Local network of course is eth2 and I have only one subnet of it.
Default gateway is ISP2.
ISP1 is for the email server and connection to one site via 443 TCP port (https).
I have these ip rules for it:
ip rule add from 192.168.1.196 table notes
ip route add default via $P2 dev eth0 table notes
# xxxxx.xxx site goes via ISP2 eth0
ip route add 1.2.3.4 via $P2 # ISP2 gateway
Everything works just fine.
Now I would like to use HTB rules for both ISP connections.
How to make HTB rules like this:
If it is the data via TCP port 25 of ISP1 coming to email server should get 128K speed.
For xxxxx.xxx site goes via port 443 of ISP1 should get 128k as well
All local network should get 1mb via ISP2.
Can I use htb.init for it or I have to make rules with tc command?
It is much easer to write rules if I use one ISP but not two.
I think I have explained what I want very clear.
Thank very much for the help in advance
Rimas
[-- Attachment #2: Type: text/html, Size: 2912 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-12-02 15:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-02 15:36 [LARTC] HTB rules for the two ISP Rimas
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.