LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 03-18-2009, 04:28 AM   #1
ufk
LQ Newbie
 
Registered: Mar 2009
Posts: 2

Rep: Reputation: 0
using iptables to give upload priority to slingbox (port 5001)


Hello.
I have gentoo linux installed and i'm using my linux box as my home router. i have slingbox with is a tv2ip box connected as well. my father uses it to watch my country's television from Bulgaria. how can i use iptables or tc to give the highest priority of internet bandwidth to the slingbox so if my father is connected he won't have interruptions because i'm downloading with torrents on the other machine.
 
Old 03-19-2009, 01:00 PM   #2
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
In my limited experience with this area, I have had moderate success using tc to set up 'Qdiscs' (Queuing Disciplines) which can accomplish what you want to do. A warning though: easy-to-use documentation or tutorials seems pretty scarce, so it probably will take you a fair bit of fiddling around if you choose to try doing this.
I configured mine using the HTB method (Hiararchical Token Bucket). It isn't perfect; I am still kinda fiddling with it on and off, but it does seem to help us share a really slooooow 28.8K dialup connection here if we are both browsing or downloading at the same time, though as you can imagine, dividing 28.8K between 2 or 3 machines is almost futile

There are kernel configurations you will need to configure when building your kernel, in the Netfilter and/or similar kernel config areas, for HTB and a large selection of other Queuing Disciplines and associated things for doing traffic-prioritizing.

Definitely use Google. Look up 'Linux Qdiscs' and similar. Also read the tc man page.

Surely there are (many?) other methods, hopefully easier or more well-documented, of doing what you want. But I don't know what they are. Maybe someone else can offer another suggestion.

Good luck!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Traffic Shape to Give Surfing Priority bt101 Linux - Networking 1 02-15-2009 03:45 AM
php upload give me some problems tanoatlq Programming 5 05-01-2008 05:38 AM
iptables priority? Archer36 Slackware 1 12-07-2006 04:54 PM
use iptables to give net traffic priority to web browsers ? qwijibow Linux - Security 2 02-17-2004 09:10 AM
iptables: packet priority LiquidKernel Linux - Networking 1 04-23-2003 08:58 AM


All times are GMT -5. The time now is 03:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration