Skip to contentSkip to conversation

netfilter

DISCUSSION sokhan heng 4 participants 5 messages May 26, 2004 – May 28, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

Hi there

I wonder if I could ask you one question please about netfilter? I wonder if it can be used to prioritise traffic, by that I mean when two packets are sent to the same destination, one can be delayed to let the other packet pass first. if it can, can you tell me what topic should I look for to get how to do that please?

Yours sincerely

Sokhan H

__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/

#1 lore raw
Quoted 10 lines · sokhan heng

Hi there

I wonder if I could ask you one question please about netfilter? I wonder if it can be used to prioritise traffic, by that I mean when two packets are sent to the same destination, one can be delayed to let the other packet pass first. if it can, can you tell me what topic should I look for to get how to do that please?

Quoted 3 lines

Yours sincerely

Sokhan H

<snip>
I do not believe that is a netfilter function. You could take a look at iproute2. The documentation is frequently found in a file named ip-cref.ps

Signature · 9 lines
John A. Sullivan III
Chief Technology Officer
Nexus Management
+1 207-985-7880
[email protected]
---
If you are interested in helping to develop a GPL enterprise class
VPN/Firewall/Security device management console, please visit
http://iscs.sourceforge.net 
#2 lore raw
In reply to sokhan heng
Quoted 7 lines · sokhan heng

I wonder if I could ask you one question please about netfilter? I wonder if it can be used to prioritise traffic, by that I mean when two packets are sent to the same destination, one can be delayed to let the other packet pass first. if it can, can you tell me what topic should I look for to get how to do that please?

This is not the job of netfilter, but is instead done by the shaping/queueing components in the Linux kernel. See the tc command and related documentation.

Regards
Henrik

#3 lore raw

Entry point

Hi there...
I wonder if you guys could point me where should I place some code into
iptables that should fire an event whenever any rule or chain is add, edited, or removed. I mean, is there any function that commits changes like the "iptc_commit" from libiptc?
Hope I´m being clear enought so you guys can understand what I´m asking. Thanks any way,

Daniel C. Azevedo

#4 lore raw

Re: Entry point

Quoted 4 lines · Daniel Corrêa de Azevedo

I wonder if you guys could point me where should I place some code into
iptables that should fire an event whenever any rule or chain is add, edited, or removed. I mean, is there any function that commits changes like the "iptc_commit" from libiptc?

The kernel operates on iptables, not individual rules.

In the official API there is the check function of each match/target. This is useful if you need to prepare something before your match/target is activated. It can also be used as a psuedo-trigger on loading new rulesets by using a dummy rule with your special target acting as "on change" trigger.

If you want to do it by hacking the iptables core code then see the do_replace function in ip_tables.c.

Regards
Henrik