C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 02-11-2008, 09:31 AM   #1
Registered User
 
Join Date: Aug 2007
Posts: 2
managing iptables rules from C program

Hi, everyone.
Is subj possible? I need a way to create/modify iptables rules from a c program. Currently I'm doing it with "system()", but it gets very awkward as the program grows.
Thanks in advance.
fadey is offline   Reply With Quote
Old 02-11-2008, 09:34 AM   #2
Kernel hacker
 
Join Date: Jul 2007
Location: Farncombe, Surrey, England
Posts: 15,686
I think what you are looking for is this:
http://www.netfilter.org/projects/li...ink/index.html

Although I'm not sure, I've never used iptables "in anger".

--
Mats
__________________
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
matsp is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using variables in system() Afro C Programming 8 07-03-2007 12:27 PM
BOOKKEEPING PROGRAM, need help! yabud C Programming 3 11-16-2006 11:17 PM
Can someome help me with a program please? WinterInChicago C++ Programming 3 09-21-2006 10:58 PM
I need some help with my program please. agentxx04 C Programming 9 09-26-2004 07:51 AM
Please could someone help me with my 8-function calculator program? Geeth Asokan C Programming 2 05-10-2002 04:16 PM


All times are GMT -6. The time now is 02:23 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22