From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rimas" Date: Mon, 02 Dec 2002 15:36:41 +0000 Subject: [LARTC] HTB rules for the two ISP MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0AE9_01C29A18.9CA90390" Message-Id: List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0AE9_01C29A18.9CA90390 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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=20 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 ------=_NextPart_000_0AE9_01C29A18.9CA90390 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi folks,
 
I have two ISP = connections:
ISP1 (eth0) wireless 1mb/1mb contention = 4 to 1 (at=20 least we get 256kbps speed)
ISP2 (eth1) ADSL 1mb/256kb
Local network of course is eth2 and I = have only one=20 subnet of it.
 
Default gateway is ISP2.
 
ISP1 is for the email server and = connection to one=20 site via 443 TCP port (https).
I have these ip rules for = it:
ip rule add from 192.168.1.196 = table=20 notes
ip route add default via $P2 dev eth0 table notes
 
# xxxxx.xxx site goes = via ISP2 eth0=20
ip route add 1.2.3.4 via $P2 # ISP2 gateway
 
Everything works just = fine.
Now I would like to use HTB = rules for=20 both ISP connections.
 
How to make HTB rules like = this:
If it is the data via TCP port 25 of = ISP1 coming to=20 email server should get 128K speed.
For xxxxx.xxx site goes via  port = 443 of=20 ISP1  should get 128k as well
 
All local network should get 1mb via=20 ISP2.
 
Can I use htb.init for it or I have to = make rules=20 with tc command?
It is much easer to write rules if I = use one ISP=20 but not two.
 
I think I have explained what I want = very=20 clear.
 
Thank very much for the help in=20 advance
 
Rimas
 
------=_NextPart_000_0AE9_01C29A18.9CA90390-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/