LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-28-2012, 05:21 AM   #1
Honsha NK
LQ Newbie
 
Registered: Apr 2012
Posts: 1

Rep: Reputation: Disabled
Need help in usage of netfilters : SIP Conn track/Nat


Hi,

My aim is to a) modify IP Addresses of some SIP headers and SDP message headers ( as SIP traffic passes across my node) and b) also to capture values from some of them. [Basically I want to develop a SIP ALG].

After exploring further, I found that 'SIP connection tracking/NAT' netfilters might help me in achieving this.
I have enabled Kernal Loadable Modules "nf_conntrack_sip" and "nf_nat_sip" in my kernel.

What I want to know now is--

1. Is it already proven and tried fact that I can use above KLMs for achieving my purpose?

2. If I need to 'use' these netfilters how to use them? Should I need to run IPTABLES commands from userspace and refer someway to this netfilters ? Any sample commands??

Or 3. Should I need to create a KLM module in kernel space and directly call the APIs available in those netfilters modules [ e.g ..net/ipv4/netfilter/nf_nat_sip.c and ../net/netfilter/nf_conntrack_sip.c] ?
If that is the case, how can I pass those captured information towards userspace application?

or 4. Is there any alternative way to achieve above, that you are aware of in kernel or userspace ?

My kernel details:- Monta vista linux, Release 2.6.32.46 for mips64.

[ I am new to Linux kernel programming though I have background of SIP. The questions above might involve very basic concepts for Linux, apologies for that ]

Waiting for your suggestions.

Regards
Honsha
 
Old 04-29-2012, 07:08 PM   #2
kostya
Member
 
Registered: Mar 2010
Location: Moscow, Russia
Distribution: Ubuntu Studio, antix(mepis), Fedora, FreeBSD
Posts: 174
Blog Entries: 5

Rep: Reputation: 18
Why won't you post to one of the Netfilter mailing lists?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SIP packets mysteriously disappearing when iptables-nat activated juan10dan Linux - Networking 14 09-17-2010 01:54 PM
Can I track URL usage through linux? GGlinux Linux - Software 2 01-27-2009 11:16 PM
Using sip-conntrack-nat batrams Slackware 1 11-21-2008 07:53 AM
Testing SIP port behind NAT/Firewall Khawk Linux - Networking 3 09-01-2008 12:44 AM
Track usage of su a1ex_007 Linux - Security 1 03-18-2005 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration