SIP connection tracking
Hi all
I'm trying to prioritize the out going SIP related traffic from my desktop computer.
I tried:
iptables -t mangle -A POSTROUTING \
-m helper --helper sip -m state --state
ESTABLISHED,RELATED \
-j ...
It simply doesn't detect SIP related traffic!
I'm using Linux kernel 2.6.11.9, iptables 1.3.5 and sip-conntrack-nat from patch-o-matic-ng-20060502.
I have enabled the Mangling, SIP support in the kernel (as built-in, not as a module).
Have I missed something? any ideas?
Thanks
Kind regards
Sagara
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Only the SIP (signaling traffic) or also the voice traffic (RTP traffic - you can see it with tcpdump)?
Take a short look at the priotitization in OpenWRT distribution. It prioritizes on some "a little" bit different criteria.
Anyway, usually the SIP is udp
Marius
Quoted 33 lines · Sagara Wijetunga
Hi all
I'm trying to prioritize the out going SIP related traffic from my desktop computer.
I tried:
iptables -t mangle -A POSTROUTING \
-m helper --helper sip -m state --state
ESTABLISHED,RELATED \
-j ...It simply doesn't detect SIP related traffic!
I'm using Linux kernel 2.6.11.9, iptables 1.3.5 and sip-conntrack-nat from patch-o-matic-ng-20060502.
I have enabled the Mangling, SIP support in the kernel (as built-in, not as a module).
Have I missed something? any ideas?
Thanks
Kind regards
Sagara__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Signature · 3 lines
Dipl. Eng. Marius-Iulian Corici FOKUS/NGNI We are changing the world because God helped us hack His source code ...
--- Marius-Iulian Corici
Quoted 9 lines · <[email protected]> wrote:
Only the SIP (signaling traffic) or also the voice traffic (RTP traffic - you
can see it with tcpdump)?
Take a short look at the priotitization in OpenWRT distribution.
It prioritizes on some "a little" bit different criteria.
Anyway, usually the SIP is udp
Thanks for the reply.
I can see all packets passing thru the interface
(ppp0).
The issue is the rule does not match to either SIP (signaling traffic) or RTP traffic at all.
Does it work for you?
I'll have a look at the OpenWRT.
Thanks again
Sagara
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Quoted 5 lines · Sagara Wijetunga
Hi all
I'm trying to prioritize the out going SIP related traffic from my desktop computer.
Quoted 7 lines
I tried:
iptables -t mangle -A POSTROUTING -m helper --helper \
sip -m state --state ESTABLISHED,RELATED \
-j ...It simply doesn't detect SIP related traffic!
Perhaps only NEW traffic passes the mangle table, just like the nat table.. If that is the case, ESTABLISHED and RELATED packets are (probably) treated the same way as the NEW packet.
But, I'm not sure about this.. Did you test that ?
Gr,
Rob
Quoted 13 lines · --- Rob Sterenborg
Quoted 8 lines · Sagara Wijetunga
Hi all
I'm trying to prioritize the out going SIP related traffic from my desktop computer.
I tried:
iptables -t mangle -A POSTROUTING -m helper
--helper \
Quoted 3 lines
sip -m state --state ESTABLISHED,RELATED \
-j ...
Quoted 9 lines
Quoted 1 line
It simply doesn't detect SIP related traffic!
Perhaps only NEW traffic passes the mangle table, just like the nat table.. If
that is the case, ESTABLISHED and RELATED packets are (probably) treated the
same way as the NEW packet.
But, I'm not sure about this.. Did you test that ?
iptables -t mangle -A POSTROUTING \
-p udp --dport 5060 \
-j <mark packets>
Tcpdump shows entire SIP communication is marked up to the last ACK packet.
This shows packets related to an ESTABLISHED
connection goes thru the mangle table.
Iptables man page doesn't say any restriction.
Regards
Sagara
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com