Generating ipchains command from ipchains -L output.

Discussion in 'Linux Networking' started by Vitto, Mar 4, 2004.

  1. Vitto

    Vitto Guest

    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, Mar 4, 2004
    #1
    1. Advertisements

  2. Vitto

    Fred Emmott Guest


    you could instead use iptables-save and iptables-restore.
     
    Fred Emmott, Mar 4, 2004
    #2
    1. Advertisements

  3. Vitto

    TroyC Guest

    check out fwbuilder...very nice GUI [checkpoint look-alike]
     
    TroyC, Mar 4, 2004
    #3
  4. Vitto

    Hemant Shah Guest

    Cool, that works for iptables.

    Is there anything similar for ipchains?

    --
    Hemant Shah /"\ ASCII ribbon campaign
    E-mail: \ / ---------------------
    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.
     
    Hemant Shah, Mar 5, 2004
    #4
  5. $ locate ipchains | grep bin
    /sbin/ipchains
    /sbin/ipchains-restore
    /sbin/ipchains-save
     
    Carles Arjona, Mar 6, 2004
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.