Skip to contentSkip to conversation

Change ip_conntrack_sip default port

DISCUSSION Sebastien VECTEN 3 participants 3 messages Aug 23, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

I tried to change the default port of sip_contrack and h323_conntrack in iptables. The problem is those conntrack are "hard compiled" in the kernel (not as module if not the command "modprobe ip_conntrack_sip port=xxxx" is the solution).

I would like to know if its possible to change this port (without change kernel) when the conntrack is "hard compiled" and especially where? (file or sysctl.conf etc... I didn't find)

By advance thank you for your assistance.

.VECTEN Sébastien

To: [email protected]
[email protected]

#1 lore raw

Hi Sébastien

There is a match module that may do what you want:
"-m helper" with --helper argument that in wour case sould be "sip-xxxx" I believe

I came across this in the iptables manual but never tested. Please let me know if it works for You.

Best regards
Michel

2007/8/23, Sebastien VECTEN <[email protected]>:

Quoted 19 lines

Hi,

I tried to change the default port of sip_contrack and h323_conntrack in iptables. The problem is those conntrack are "hard compiled" in the kernel (not as module if not the command "modprobe ip_conntrack_sip port=xxxx" is the solution).

I would like to know if its possible to change this port (without change kernel) when the conntrack is "hard compiled" and especially where? (file or sysctl.conf etc... I didn't find)

By advance thank you for your assistance.

.VECTEN Sébastien

To: [email protected]
[email protected]

#2 lore raw
In reply to Sebastien VECTEN

Hello,

Quoted 9 lines · Sebastien VECTEN

I tried to change the default port of sip_contrack and h323_conntrack in iptables. The problem is those conntrack are "hard compiled" in the kernel (not as module if not the command "modprobe ip_conntrack_sip port=xxxx" is the solution).

I would like to know if its possible to change this port (without change kernel) when the conntrack is "hard compiled" and especially where?

In the bootloader (lilo, grub...) configuration file.

From linux-2.6.x/Documentation/kernel-parameters.txt :

Module parameters for loadable modules are specified only as the parameter name with optional '=' and value as appropriate, such as:

modprobe usbcore blinkenlights=1

Module parameters for modules that are built into the kernel image are specified on the kernel command line with the module name plus '.' plus parameter name, with '=' and value if appropriate, such as:

usbcore.blinkenlights=1