![]() |
|
#1
|
|||
|
|||
IP tablesI am trying to manipulate the iptables through C.
I have not got a clue how to do this as such and would like some help with this if you can Sorry if it is a little vague. Thanks |
|||
|
#2
|
||||
|
||||
|
Quote:
It is a lot vague for me Can you explain what you are taking about? Are you talking about routing tables? Or the linux iptables (firewall)? Or the ip settings?Sorry, I just don't have any idea what you mean... |
|
#3
|
|||
|
|||
apologiessorry for the time taken in replying
It is modifying the iptables(for the firewalls in linux) thankyou |
|
#4
|
||||
|
||||
|
Hi Roger.
Okay, now I know what you are talking about, what exactly is it that you want to do with the IPTables? Are you trying to programatically change the source implementation? Or are you trying to create a program that helps with the creation of a rule set? If it is the former, then I can't give you much help. If it is the later, this isn't a terrible idea. What you should do though is have your program read/create a txt file (.rc) that contains the ruleset as a bash script. This wouldn't be too difficult to do. Anyway, your problem is still sort of vague, so if you could narrow it down a bit, we will see what we can do to help. Cheers, d |
|
#5
|
|||
|
|||
|
Quote:
It is the creation of a ruleset any help appreciated THanks |
|
#6
|
||||
|
||||
|
Quote:
You need to learn to explain what you wish to accomplish, what you understand, what you need help with, in other words explain what you need -- in detail! I'm sure dsmith will quit playing 20 questions around question 4 because he's wasted his time so far. Read a few help requests on this board to get an idea how to ask your question. __________________
The 3 Laws of the Procrastination Society: 1) Never do today that which can be put off until tomorrow 2) Tomorrow never comes |
|
#7
|
||||
|
||||
|
Walt makes a pretty good point. I am not sure exactly what you are having trouble with and quite frankly if it has to do with C or not.
I was going to post a link to a howto document for iptables, but I couldn't find one. So instead I am posting a bash script that sets up a firewall. This is NOT my work, I have only modified it to make it work for me. Code:
Let me know if this is what you are after and if so, I will get this thread moved to the Linux section of the forums. It really has nothing to do with C. Also, use the man or info pages as well to try to figure out the use of iptables in the above script. Let me know if this is what you are looking to do. Cheers, d |
Recent GIDBlog
Install Adobe Flash - Without Administrator Rights by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Question about loading php into tables or css | pcxgamer | Web Design Forum | 6 | 17-Sep-2005 21:08 |
| Selecting from 2 tables at the same time | soviet | MySQL / PHP Forum | 2 | 07-Nov-2003 23:15 |
| [Tutorial] MySQL Basics | nniehoff | MySQL / PHP Forum | 15 | 23-Mar-2003 19:42 |
| drop down menu's in tables | chalaska | Web Design Forum | 4 | 03-Aug-2002 18:59 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The