Results 1 to 2 of 2

Thread: ufw config/rules not sticking after reboot

  1. #1
    Join Date
    Feb 2009
    Beans
    23

    ufw config/rules not sticking after reboot

    For some reason after i add a certain number of rules into ufw any subsequent config changes stop carrying over each restart.

    For example i typed:

    ufw allow 9080/tcp

    Then i check "iptables -L" and the entry is listed there.

    When i reboot iptables does not have the entry anymore but ufw still has it listed when i type "ufw status."

    When i try and remove the entry in ufw i get this error:

    Code:
    iptables: Bad rule (does a matching rule exist in that chain?).
    
    Rule deleted
    This not only happens with ports but with logging and enabling and disabling the firewall itself. For instance i'll disable the firewall only to have it running on the next restart.

    computer info:

    Linux MythTV 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux



    Can anyone help?

  2. #2
    Join Date
    Jun 2008
    Beans
    10

    Re: ufw config/rules not sticking after reboot

    i got the same problem too

    its almost half a year since you posted this problem.. i guess no one knows the real solution for this problem
    i hope i'm wrong

    this is my workaround
    add this on your cronjob (when system boots)

    Code:
    ufw delete allow 9080/tcp; ufw allow 9080/tcp

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
  •