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
|