Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Qos, and HTB stuff... A lots of doubts

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
johnny_martins00
Apprentice
Apprentice
Posts: 293
Joined: Thu Jun 01, 2006 8:20 pm

Qos, and HTB stuff... A lots of doubts

  • Quote

Post by johnny_martins00 » Tue Apr 03, 2007 12:46 pm

Hi. im trying to use Qos in a Lan, with HTB.. I have a some questions and if someone could anwser me i'll be apreciated

First of all, i have allready the classes of htb defined but my doubt is if i need to use iptables and define rules for the trafic with iptables??

Code: Select all

tc qdisc add dev eth0 parent 1:20 handle 200: sfq perturb 10
what does this command do??

Code: Select all

tc filter add dev etho parent 10:0 protocol ip prio 1 u32 \ match ip protocol 50 0xff  \ match ip src xxx.xxx.xxx.xxx/32 flowid 10:200
Does this command allready creats a rule and filter teh trafic???

Thk, Regards
Top
darken
n00b
n00b
User avatar
Posts: 52
Joined: Wed Jan 04, 2006 9:31 am

  • Quote

Post by darken » Tue Apr 03, 2007 2:01 pm

What do you use to create the htb classes?
I would recommend you to emerge net-misc/htbinit. When installed, it has a lot of examples.
To classify traffic, I recommend a combination of iptables and htb, using iptables to mark the packets, and use the MARK rule in htb config files.
Top
johnny_martins00
Apprentice
Apprentice
Posts: 293
Joined: Thu Jun 01, 2006 8:20 pm

  • Quote

Post by johnny_martins00 » Mon Apr 09, 2007 5:54 pm

Hi, thk for the reply.

I allready have my classes and subclasses defined, but im still with one question...

Whats the main diference between the tc filter command and the iptables ???
Doesnt the iptables and the tc filter marks teh packet and gives him a priority???

Thk, Regards
Top
darken
n00b
n00b
User avatar
Posts: 52
Joined: Wed Jan 04, 2006 9:31 am

  • Quote

Post by darken » Tue Apr 10, 2007 2:18 pm

The workflow is mainly this: first, you mark the packets that you want to limit the speed for with iptables, then you use the filter option from tc to associate those packets with a class that you created in advance, hence the flowid option in the filter syntax.
Top
johnny_martins00
Apprentice
Apprentice
Posts: 293
Joined: Thu Jun 01, 2006 8:20 pm

  • Quote

Post by johnny_martins00 » Tue Apr 10, 2007 2:21 pm

hi, thk for your reply, but doesnt the tc command, when creating class, gives the band with and the priority to the packets allready???

Thk,
Regards
Top
darken
n00b
n00b
User avatar
Posts: 52
Joined: Wed Jan 04, 2006 9:31 am

  • Quote

Post by darken » Tue Apr 10, 2007 2:56 pm

No, you have to associate to that class packets by some rule, whether it is the source ip, the port number, or the mark of the packets.
Top
Post Reply

6 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic