Git Product home page Git Product logo

Comments (4)

erig0 avatar erig0 commented on September 26, 2024 1

"default" is a distinct value. It's in the man pages.

FIREWALL-CMD(1)

       --permanent [--zone=zone] [--policy=policy] --set-target=target
           Set the target.

           For zones target is one of: default, ACCEPT, DROP, REJECT

           For policies target is one of: CONTINUE, ACCEPT, DROP, REJECT

           default is similar to REJECT, but it implicitly allows ICMP packets.

from firewalld.

gcb avatar gcb commented on September 26, 2024

while i've learned it is somewhat hardcoded #252 it would still save users a lot of time by showing the actual value there.

I also tried a patch by looking at

def getTarget(self):

but i failed to understand the logic of why this list is not a simple static value list
ZONE_TARGETS = ["ACCEPT", "%%REJECT%%", "DROP", DEFAULT_ZONE_TARGET, "default"]

from firewalld.

gcb avatar gcb commented on September 26, 2024

i missed that. apologies.

But that is even worse, from a usability point of view.

so target: default is a bad name for target: REJECTBUTALLOWICMP target.

from firewalld.

erig0 avatar erig0 commented on September 26, 2024

Whether it's a bad name or not.. it's been that way for firewalld's entire lifetime. As such, I think changing it would cause more confusion than help.

from firewalld.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.