All of lore.kernel.org
 help / color / mirror / Atom feed
* iptables rule for ovh
@ 2010-07-29  9:08 Portedaix
  2010-07-29  9:30 ` Pascal Hambourg
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Portedaix @ 2010-07-29  9:08 UTC (permalink / raw)
  To: netfilter

Hello,

QUESTION - SHORT VERSION :
Is there a way to have a rule equivalent to the one below which is for 
kernel 2.6.14 and above,  with a linux kernel 2.6.9 ?
'#iptables -A INPUT -p udp -m udp --dport 5060 -m string --string 
"Cirpack KeepAlive Packet" --algo bm --to 65535 --source sip.ovh.net -j 
DROP'

QUESTION - DETAILED VERSION :

I use a sip telephone line from OVH and run asterisk PBX on a sme linux 
server to connect to it.
The asterisk command line is polluted by an error message.

#chan_sip.c:7289 determine_firstline_parts: Bad request protocol Packet

asterisk debug shows

#<--- SIP read from 91.121.129.17:5060 --->
#Cirpack KeepAlive Packet


I could avoid that by activating the rule

#iptables -A INPUT -p udp -m udp --dport 5060 -m string --string 
"Cirpack KeepAlive Packet" --algo bm --to 65535 --source sip.ovh.net -j DROP

But my main problem is this string module. My kernel is 2.6.9, and 
string module is used starting from 2.6.14 kernel. Upgrading the kernel 
on my production server is not easy, and may lead to a heavy 
reconfiguration. So if I can find a way just to have this rule 
activated, that would be fine.

Thanks in advance for any help.
Olivier



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-07-31 11:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-29  9:08 iptables rule for ovh Portedaix
2010-07-29  9:30 ` Pascal Hambourg
2010-07-31  9:23   ` Portedaix
2010-07-31 11:10     ` Pascal Hambourg
2010-07-29  9:30 ` Richard Horton
2010-07-29  9:34   ` Pascal Hambourg
2010-07-29  9:47 ` Jan Engelhardt
2010-07-29 10:07   ` Richard Horton

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.