Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

Generating ipchains command from ipchains -L output.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-04-2004, 07:07 PM
Default Generating ipchains command from ipchains -L output.



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.


Vitto
Reply With Quote
  #2  
Old 03-04-2004, 07:12 PM
Fred Emmott
Guest
 
Posts: n/a
Default Re: Generating ipchains command from ipchains -L output.

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
  #3  
Old 03-04-2004, 09:39 PM
TroyC
Guest
 
Posts: n/a
Default Re: Generating ipchains command from ipchains -L output.

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
  #4  
Old 03-05-2004, 09:18 PM
Hemant Shah
Guest
 
Posts: n/a
Default Re: Generating ipchains command from ipchains -L output.

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
  #5  
Old 03-06-2004, 07:09 PM
Carles Arjona
Guest
 
Posts: n/a
Default Re: Generating ipchains command from ipchains -L output.

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

Tags
command, generating, ipchains, output

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
Forum Jump


All times are GMT. The time now is 01:52 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.