Results 1 to 3 of 3

Thread: iptables not restoring settings on login?

  1. #1
    Join Date
    Jun 2008

    iptables not restoring settings on login?

    Ever since latest updates, iptables hasn't been restoring settings on login.

    I have this in my /etc/network/interfaces:

    auto eth0
    iface eth0 inet dhcp
    pre-up iptables-restore < /etc/iptables.rules
    post-down iptables-restore < /etc/iptables.rules
    Yet, for some reason it isn't working, since at login, I have to run iptables-restore < /etc/iptables.rules to get my settings to restore correctly.

    Has something changed?

    (I should note, when I say latest updates, I'm talking everything since June 22, which is the last time I was working with the system in question)

  2. #2
    Join Date
    Apr 2007
    Ubuntu 10.04 Lucid Lynx

    Re: iptables not restoring settings on login?

    long shot - i remember an update to ufw a few day back. The only reason i noticed it was because i never, ever use any programm to configure iptables. I always do it myself. So i was wondering why i had this even installed and why it was updateing.

    Maybe it has something to do with that...

    just an idea... not a real solution...
    Calvin: I'm being educated against my will! My rights are being trampled!
    Hobbes: Is it a right to remain ignorant?
    Calvin: I don't know, but I refuse to find out!

  3. #3
    Join Date
    Mar 2007
    Denver, CO
    Ubuntu 12.04 Precise Pangolin

    Re: iptables not restoring settings on login?

    Wouldn't this statement:

    post-down iptables-restore < /etc/iptables.rules

    in actuality be:

    post-down iptables-save > /etc/iptables.rules

    Isn't that want you want to do?? Actually save the ruleset into a file when the interface is taken down?


Posting Permissions

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