From: "Rimas" <rmocius@auste.elnet.lt>
To: lartc@vger.kernel.org
Subject: [LARTC] HTB rules for the two ISP
Date: Mon, 02 Dec 2002 15:36:41 +0000 [thread overview]
Message-ID: <marc-lartc-103884347230635@msgid-missing> (raw)
[-- 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 --]
reply other threads:[~2002-12-02 15:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-103884347230635@msgid-missing \
--to=rmocius@auste.elnet.lt \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.