match SIP & RTP packets
Subsystems (2)
Hi all, it's not clear to me whether nf_conntrack_sip does SIP and RTP connection tracking or just SIP.. can you clarify?
I need to match both SIP and RTP packets and I was wondering if the rule below would satisfy my requirements:
iptables -t mangle -A FORWARD -o eth0 -m helper --helper sip -j CLASSIFY --set-class 1:1
Thank you,
Quoted 9 lines · Lorenzo Allegrucci
Hi all, it's not clear to me whether
nf_conntrack_sipdoes SIP and RTP connection
tracking or just SIP.. can you clarify?
I need to match both SIP and RTP packets and I was wondering if the rule below would satisfy my requirements:iptables -t mangle -A FORWARD -o eth0 -m helper --helper sip -j CLASSIFY --set-class 1:1
Almost, this will match on RTP packets and incoming signalling connections (-m helper matches on expected connections). What's missing is the original signalling connection on port 5060.
Quoted 19 lines · Patrick McHardy
From: Patrick McHardy <[email protected]>
Subject: Re: match SIP & RTP packets
To: "Lorenzo Allegrucci" <[email protected]>
Cc: [email protected], [email protected]
Date: Thursday, December 3, 2009, 11:11 AMQuoted 2 lines · Lorenzo Allegrucci
Hi all, it's not clear to me whether
nf_conntrack_sipdoes SIP and RTP
Quoted 3 lines
connection
tracking or just SIP.. can you clarify?
I need to match both SIP and RTP packets and I waswondering if the rule
Quoted 3 lines
below would satisfy my requirements:
iptables -t mangle -A FORWARD -o eth0 -m helper
--helper sip -j CLASSIFY
Quoted 1 line
--set-class 1:1
Quoted 7 lines
Almost, this will match on RTP packets and incoming signalling
connections (-m helper matches on expected connections). What's
missing is the original signalling connection on port 5060.
--
So there is no way to identify it based on NEW connection state ?
(... Want to route new SIP calls to different locations .... )
Regards.
Quoted 7 lines · Patrick McHardy
Quoted 6 lines · Lorenzo Allegrucci
Hi all, it's not clear to me whether
nf_conntrack_sipdoes SIP and RTP connection
tracking or just SIP.. can you clarify?
I need to match both SIP and RTP packets and I was wondering if the rule below would satisfy my requirements:
Quoted 6 lines
Quoted 2 lines
iptables -t mangle -A FORWARD -o eth0 -m helper --helper sip -j CLASSIFY --set-class 1:1
Almost, this will match on RTP packets and incoming signalling connections (-m helper matches on expected connections). What's missing is the original signalling connection on port 5060.
It doesn't work for me, but when I run the above iptables rule it loads just the following modules:
nf_conntrack_ipv4 13352 1 nf_defrag_ipv4 1756 1 nf_conntrack_ipv4 xt_helper 1788 1 nf_conntrack 67608 2 nf_conntrack_ipv4,xt_helper
it doesn't load nf_conntrack_sip as I would expect.. (although it gives no errors)
I'll try again loading nf_conntrack manually and playing with its parameters.