Giter Club home page Giter Club logo

secure-noches's Introduction

secure-noches

Here you will find a list of default and custom firewalld xml's.

This xml files (OS Dependent) will go on firewalld non-standard definitions.

OS Dependent because location can change IE: Centos, Fedora, RHEL tracks custom xml's under: /etc/firewalld/services/

This is also a good place to track custom created definitions.

From firewalld Docs:

Copy a file in the services directory in /etc/firewalld

As root copy the file:

cp myservice.xml /etc/firewalld/services

From firewalld Docs :

After you have copied the file into /etc/firewalld/services it takes about 5 seconds till the new service will be visible in firewalld. Place a file in the services directory in /usr/lib/firewalld

This is the way how a package or system service could add a new service to firewalld. The benefit of placing the service into /usr/lib/firewalld/services is that the admin or user is able to modify the service and that he could go back to the original service easily by loading the defaults of the service. Then the by firewalld created and modified copy in /etc/firewalld/services will be renamed to .xml.old and the original service in /usr/lib/firewalld/services will be used again. The original service will be effective in the runtime environment only after a reload.

A package that places a service in the /usr/lib/firewalld/services directory should require the firewalld package or sub package that is providing the path. In an RPM based distribution that is using or that bases on the firewalld provided spec file this package is firewalld-filesystem.

For more information please visit: firewalld

After you place your xml file in to the correct directory execute:

firewall-cmd --reload

After you do that you can run:

firewall-cmd --get-services

And look for your added service.

Now you can proceed to enable the service and test:

firewall-cmd --zone=yourzonehere --add-service=rooncore

Note: that you can run firewall-cmd --add-service=rooncore and it will add the service to your default running zone.

Once you add your service and test you and verify it works as expected than you can proceed to make the change permanent...

firewall-cmd --zone=publicweb --add-service=rooncore --permanent

Note: The firewalld-default folder is the default services from Fedora 28 Server Edition.

Note: Regarding Sonos. It opens a bunch of ports. Most which are not needed by roon. I couldnt pin point exactly which ports were needed by roon so I decided to use Sonos FAQ for the range of ports. Be ware! If your server is on the edge and is exposed to the internet, I would advice not to open this ports to the world... Only internal to your network.

Done.

secure-noches's People

Contributors

parallelsys avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

pbinks

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.