Reset Firewall from CLI

  • Hello,
    I have a problem. I configured my OMV firewall like in the guide here in the forum, but I changed the source and target IPs, because the IP of my NAS is 192.168.178.10 and my IP on my PC is 192.168.178.25.
    So I made for source 192.168.178.0/24 and for target 192.168.178.10.
    But now I have the problem, that I can't access the webGUI any more, I think the firewall blocks it. I still have SSH access, because there is no source and target mentioned (in the rule).
    My first question is: How can I reset the firewall via CLI (/etc/network/if-pre-up.d/iptables doesn't exist)?
    And: what is wrong with my Network Mask?

  • You need to run these commands. Then you need to fix your errors in the web gui firewall section because on reboot the rules will come up again.


    Code
    iptables -F
    iptables -X
    iptables -t nat -F
    iptables -t nat -X
    iptables -t mangle -F
    iptables -t mangle -X
    iptables -P INPUT ACCEPT
    iptables -P FORWARD ACCEPT
    iptables -P OUTPUT ACCEPT

Jetzt mitmachen!

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