[Solved] Error... iptables: 7: -A: not found

  • Hello forum wizards,


    I have an error I want to get rid of.


    Code
    Failed to execute command '/etc/network/if-pre-up.d/iptables 2>&1': /etc/network/if-pre-up.d/iptables: 7: -A: not found



    Every time I get the notification: The configuration has been changed. You must apply the changes in order for them to take effect.


    When I click apply, I get an error.


    Thanks in advance..

    Einmal editiert, zuletzt von ben-nl ()

  • Whats the output of the following commands:


    Code
    /etc/network/if-pre-up.d/iptables
    dpkg -l | grep iptables
    ls -l /etc/network/if-pre-up.d/iptables


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Thanks for the quick responce.


    /etc/network/if-pre-up.d/iptables

    Code
    /etc/network/if-pre-up.d/iptables: 7: -A: not found


    dpkg -l | grep iptables

    Code
    ii  iptables                            1.4.8-3                        administration tools for packet filtering and NAT


    ls -l /etc/network/if-pre-up.d/iptables

    Code
    -rwxr-xr-x 1 root root 135 feb  7 23:33 /etc/network/if-pre-up.d/iptables


    Thanks,
    Ben

  • Code
    cat /etc/openmediavault/config.xml


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Here is the config file.



    Thanks,
    Ben

  • Do you have anything setup in iptables?


    If not please delete the lines between the <iptables> and </iptables> tag.



    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • I removed everything between the <iptables> and </iptables> tag.


    After apply the error is gone..


    Many thanks davidh2k :D


    Greetings,
    Ben

  • You're welcome. ;)


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Created a bugreport, cause this was not the only encounter of the Problem:


    http://bugtracker.openmediavault.org/view.php?id=984


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!