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 10-03-2007, 06:24 AM   #1
gbowden
Member
 
Registered: Dec 2003
Location: Spain
Distribution: Slackware 14.1 64bit - multilib
Posts: 148

Rep: Reputation: 28
Smile packet shaping


Hi, could someone help me with some packet shaping on Linux?

I would like to give a high priority to all http (port 80) and https (port 443) traffic.

Regards,

gbowden
 
Old 10-03-2007, 12:15 PM   #2
pronoy
Member
 
Registered: Mar 2005
Location: india
Distribution: FC4, Debian Etch
Posts: 67

Rep: Reputation: Disabled
'tc' is the tool for you, I guess.
http://www.edseek.com/~jasonb/articles/traffic_shaping/
 
Old 10-04-2007, 01:43 AM   #3
gbowden
Member
 
Registered: Dec 2003
Location: Spain
Distribution: Slackware 14.1 64bit - multilib
Posts: 148

Original Poster
Rep: Reputation: 28
I should have made my post a bit more clear:

I have read the HOWTO's and various other documentation and have a command line "tc" avaliable for use.
I just need to be sure of the details of how packet shaping works using the hex and other codes.

Please find enclosed below a summary of how far I've got so far:

tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip sport 80 0xffff flowid 1:3

I just need to find out how to add, ports 80, 443 and 1755
With the highest priority over other traffic on this computer and over the network.

Yhe trouble I'm having is with the hex codes such as 0xffff shown above.

Regards,

gbowden
 
Old 10-04-2007, 03:08 PM   #4
pronoy
Member
 
Registered: Mar 2005
Location: india
Distribution: FC4, Debian Etch
Posts: 67

Rep: Reputation: Disabled
Not sure, if we want something like this:
tc filter add dev eth0 parent 1:0 prio 1 u32 match tcp dst 80 0xffff \
match ip protocol 0x6 0xff flowid 1:3

If it helps, try to add the 'match tcp' part thrice for three different ports.
(alternatively executing trice ?)

Please don't mind, if it doesn't work ( I have very little knowledge about it)
 
  


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
Packet Filter to redirect a packet to a user level process akawale Linux - Networking 3 09-01-2006 12:06 PM
dump packet data to file, but no packet header Nathanael Linux - Networking 3 02-08-2006 10:27 AM
Traffic Shaping (by type of packet) snufferz Linux - Networking 1 06-07-2004 11:40 AM
Traffic Shaping (by type of packet) snufferz Linux - Software 0 06-07-2004 10:46 AM
Halted packet filtering+routing+shaping router or bridge? Norel Linux - Networking 0 05-02-2002 06:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:26 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
Open Source Consulting | Domain Registration