From: Patrick McHardy <kaber@trash.net>
To: allug4me allug4me <allug4me@gmail.com>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: SIP ALG - Marking TOS/DSCP
Date: Wed, 11 Apr 2007 09:40:37 +0200 [thread overview]
Message-ID: <461C90F5.80905@trash.net> (raw)
In-Reply-To: <ceaf8eaa0704102342j5df5a98clc32a7d99c4cb8329@mail.gmail.com>
allug4me allug4me wrote:
> I am developing a module for a linux router. All the packets from LAN
> to WAN are natted. I am using linux 2.6.18.2 kernel. Hence for SIP/RTP
> packets from LAN to pass through I am using SIP Protocol Support of
> Netfilter by enabling CONFIG_IP_NF_SIP as module.
>
> The module I am developing needs to mark the SIP, RTP and RTCP
> packets with TOS/DSCP in IP Header and COS in the VLAN header.
>
> Can anyone please help me to achieve this task?
iptables doesn't support VLAN header mangling since its usually not
present, with the exception of bridged packets. DSCP marking of
SIP/RTP is quite simple and should be possible without a new module:
# SIP
iptables -t mangle -A POSTROUTING -p udp --dport 5060 -j DSCP --set-dscp ...
# RTP
iptables -t mangle -A POSTROUTING -m helper --helper sip -j DSCP
--set-dscp ...
RTCP is currently not recognized by the SIP helper, although it should
be trivial to add. If you do so please consider sending us the patch.
next prev parent reply other threads:[~2007-04-11 7:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-11 6:42 SIP ALG - Marking TOS/DSCP allug4me allug4me
2007-04-11 7:40 ` Patrick McHardy [this message]
[not found] ` <ceaf8eaa0704120826w25b2c28cma466c782bb7c764d@mail.gmail.com>
2007-04-12 15:27 ` allug4me allug4me
2007-04-12 15:52 ` Patrick McHardy
2007-04-12 16:03 ` allug4me allug4me
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=461C90F5.80905@trash.net \
--to=kaber@trash.net \
--cc=allug4me@gmail.com \
--cc=netfilter-devel@lists.netfilter.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.