Thread: managing iptables rules from C program

  1. #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.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  2. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 11:17 PM
  3. Can someome help me with a program please?
    By WinterInChicago in forum C++ Programming
    Replies: 3
    Last Post: 09-21-2006, 10:58 PM
  4. I need some help with my program please.
    By agentxx04 in forum C Programming
    Replies: 9
    Last Post: 09-26-2004, 07:51 AM
  5. Replies: 2
    Last Post: 05-10-2002, 04:16 PM