LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-30-2009, 09:33 AM   #1
priyadarshan
Member
 
Registered: Feb 2009
Location: Ahmedabad, Gujarat, India
Posts: 197

Rep: Reputation: Disabled
IPTables code


I am new to linux....... I am proficient now in C and I know how to play with IPTables too............. What I am interested is I want to view the IPTables code........ Is it possible? How?
 
Old 03-30-2009, 09:48 AM   #2
fpmurphy
Member
 
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 299

Rep: Reputation: 62
Go to the Netfilter project page (http://www.netfilter.org/) and download the source code.
 
Old 03-30-2009, 09:54 AM   #3
priyadarshan
Member
 
Registered: Feb 2009
Location: Ahmedabad, Gujarat, India
Posts: 197

Original Poster
Rep: Reputation: Disabled
I have already downloaded it and installed it too....... I wanna see it in u know... C like program or so......... Is it possible?
 
Old 03-30-2009, 10:06 AM   #4
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Rep: Reputation: 41
You want the source-code, right?
That's what you get on the site fpmurphy has referred you to.
 
Old 03-30-2009, 10:16 AM   #5
priyadarshan
Member
 
Registered: Feb 2009
Location: Ahmedabad, Gujarat, India
Posts: 197

Original Poster
Rep: Reputation: Disabled
OK I have downloaded it but Can I know that in which file should I view?
 
Old 03-30-2009, 10:18 AM   #6
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Rep: Reputation: 41
I thought you were proficient in C. Shouldn't you then be able to work with the code and find what you want to find?
Especially since we don't know what exactly you are looking for.
 
Old 03-30-2009, 10:23 AM   #7
priyadarshan
Member
 
Registered: Feb 2009
Location: Ahmedabad, Gujarat, India
Posts: 197

Original Poster
Rep: Reputation: Disabled
Sir I just wanna know that In which file should I peep for C code.......

I mean $ pico <what should be here???>

Only then and then I can see the code in editor......

There are lot of files in package.....
 
Old 03-30-2009, 10:29 AM   #8
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Rep: Reputation: 41
That's right, and many of those files (you may recognize the extensions .c and .h) actually belong to what will finally end up as IPTables and its modules.

The actual binary iptables will surely be created from iptables.c and/or iptables-standalone.c. But I am equally sure that to understand the code you will need to study the includes libraries libipq and libiptc.
Possibly, and quite probably, also other files are involved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
iptables source code problem Ashkan_s Linux - Software 2 08-07-2008 11:11 AM
User Preferences: Use HTML code instead of vB code? (vB code is overrated) stefanlasiewski LQ Suggestions & Feedback 5 07-26-2005 02:37 AM
Need advice on this IPtables code wardialer Linux - Security 13 11-15-2004 05:02 AM
c code for routing dynamically (just like performing iptables rule) becky_starr Linux - Software 0 01-15-2004 04:55 AM
iptables and iproute2+tc source code thanhnx Linux - Networking 1 02-19-2003 08:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration