managing iptables rules from C program

This is a discussion on managing iptables rules from C program within the Linux Programming forums, part of the Platform Specific Boards category; Hi, everyone. Is subj possible? I need a way to create/modify iptables rules from a c program. Currently I'm doing ...

  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, 01: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, 11:58 PM
  4. I need some help with my program please.
    By agentxx04 in forum C Programming
    Replies: 9
    Last Post: 09-26-2004, 08:51 AM
  5. Replies: 2
    Last Post: 05-10-2002, 05:16 PM

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