Results 1 to 2 of 2

Thread: UFW flushed out Iptables

  1. #1
    Join Date
    Nov 2008
    Beans
    28

    UFW flushed out Iptables

    I was setting the iptables for the INPUT, OUTPUT, and FORWARD chains with just a basic configuration recently with ufw being disabled but as I enabled ufw, then checked the iptables using either iptables -nL or iptables -L, everything is gone! Totally flushed out, what happened??? I thought ufw would integrate with iptables.

    I got a problem saving the iptables using this: iptables-save > /root/ipt.save "Permission denied!" even though I was using sudo, so what I did was just iptables-save. I wanted it to be restored after a reboot so that I don't have to set it up again everytime I restarted. I need your thoughts, please help!

  2. #2
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,700

    Re: UFW flushed out Iptables

    ufw is a front-end for iptables. It assumes that it has full control and makes no attempt to incorporate any settings that it finds already configured there. This is true (I think) for all iptables front-ends. The solution is to use only one method to configure iptables. Do it yourself, or leave everything to your chosen front-end software.

    I think you hit a problem using the pipe - the command interpreter ran iptables-save as root, but tried to write to ipt.save as you. It's probably easist to just give yourself a full root shell for a few commands - sudo -i will do this, and issue the commands from there:
    $ sudo -i
    # iptables-save > /root/ipt.save
    Last edited by The Cog; December 17th, 2008 at 03:48 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •