Networking Forums

Networking Forums > Computer Networking > Linux Networking > Generating ipchains command from ipchains -L output.

Reply
Thread Tools Display Modes

Generating ipchains command from ipchains -L output.

 
 
Vitto
Guest
Posts: n/a

 
      03-04-2004, 06:07 PM
Is there a way to re-create the ipchains and iptables commands from
the output listing?

Here is what I am trying to do. Suppose I have a script that sets up
firewall. Later on you or someone else add more rules from command
line. I want to be able to re-create the ipchains/iptable commands
from the "ipchains -L" or "iptables -L" output.

Is there a program that will do it?

Thanks.
 
Reply With Quote
 
 
 
 
Fred Emmott
Guest
Posts: n/a

 
      03-04-2004, 06:12 PM
On 4 Mar 2004 11:07:39 -0800, Vitto <(E-Mail Removed)> wrote:

> Is there a way to re-create the ipchains and iptables commands from
> the output listing?
>
> Here is what I am trying to do. Suppose I have a script that sets up
> firewall. Later on you or someone else add more rules from command
> line. I want to be able to re-create the ipchains/iptable commands
> from the "ipchains -L" or "iptables -L" output.
>
> Is there a program that will do it?
>
> Thanks.



you could instead use iptables-save and iptables-restore.
 
Reply With Quote
 
TroyC
Guest
Posts: n/a

 
      03-04-2004, 08:39 PM
Vitto wrote:

> Is there a way to re-create the ipchains and iptables commands from
> the output listing?
>
> Here is what I am trying to do. Suppose I have a script that sets up
> firewall. Later on you or someone else add more rules from command
> line. I want to be able to re-create the ipchains/iptable commands
> from the "ipchains -L" or "iptables -L" output.
>
> Is there a program that will do it?
>
> Thanks.


check out fwbuilder...very nice GUI [checkpoint look-alike]
--
---------
No bits were hurt during this transmission.


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
 
Reply With Quote
 
Hemant Shah
Guest
Posts: n/a

 
      03-05-2004, 08:18 PM
While stranded on information super highway Fred Emmott wrote:
> On 4 Mar 2004 11:07:39 -0800, Vitto <(E-Mail Removed)> wrote:
>
>> Is there a way to re-create the ipchains and iptables commands from
>> the output listing?
>>
>> Here is what I am trying to do. Suppose I have a script that sets up
>> firewall. Later on you or someone else add more rules from command
>> line. I want to be able to re-create the ipchains/iptable commands
>> from the "ipchains -L" or "iptables -L" output.
>>
>> Is there a program that will do it?
>>
>> Thanks.

>
>
> you could instead use iptables-save and iptables-restore.


Cool, that works for iptables.

Is there anything similar for ipchains?

--
Hemant Shah /"\ ASCII ribbon campaign
E-mail: (E-Mail Removed) \ / ---------------------
X against HTML mail
TO REPLY, REMOVE NoJunkMail / \ and postings
FROM MY E-MAIL ADDRESS.
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind, Above opinions are mine only.
it's backed up on tape somewhere. Others can have their own.
 
Reply With Quote
 
Carles Arjona
Guest
Posts: n/a

 
      03-06-2004, 06:09 PM
Hemant Shah <(E-Mail Removed)> wrote in
news:c2aqqu$gh2$(E-Mail Removed):

> While stranded on information super highway Fred Emmott wrote:
>> On 4 Mar 2004 11:07:39 -0800, Vitto <(E-Mail Removed)> wrote:
>>
>>> Is there a way to re-create the ipchains and iptables commands
>>> from the output listing?
>>>

<snip>
>>
>> you could instead use iptables-save and iptables-restore.

>
> Cool, that works for iptables.
>
> Is there anything similar for ipchains?


$ locate ipchains | grep bin
/sbin/ipchains
/sbin/ipchains-restore
/sbin/ipchains-save

--
Regards,

Carles Arjona (E-Mail Removed) ( nospammer IS my real username ).
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ipchains -> iptables? Zach Linux Networking 0 02-12-2008 09:29 AM
IPChains David Linux Networking 1 11-26-2006 06:28 PM
Q: ipchains Karsten Linux Networking 1 12-01-2004 12:16 PM
ipchains: command not found Phisherman Linux Networking 6 02-17-2004 02:27 PM
ipchains and nat The Jacobsons Linux Networking 1 09-20-2003 11:05 AM



1 2 3 4 5 6 7 8 9 10 11