Giter Site home page Giter Site logo

firewall's Introduction

firewall - A simple firewall management tool based on iptables.
---------------------------------------------------------------

    The scope of this tool is to provide a simple iptables management solution
    intended to be used by a user as well as part of system init while providing
    an easy way to set up and manage sets of firewall rules.

    To deploy rules using the default target, create a script in
    /etc/firewall/rules.d that accepts 'start' and 'stop' as parameters.
    When called with the 'start' parameter, the script should take whatever
    steps are nessecarry to deploy its ruleset, 'stop' should revert these steps.

    firewall will automaticall evaluate all scripts
    in the directory that are both executable and have a ".rules" ending.
    To disable a ruleset, rename the file to ".rules.disabled"
    or remove the executable flag.

    firewall will not flush your tablespace or perform any cleanup beyond what
    is defined in the active rules file. Before disabling a ruleset,
    it is often nessecarry to call first stop the given ruleset by running
    'firewall stop <file.rules>'.

    Example:
    /etc/firewall/rules.d/apache.rules

    #!/bin/sh
    # Set up rules for port 80 access to an apache web server

    case $1 in
        start)
            /sbin/iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT

        stop)
            /sbin/iptables -D INPUT -i eth0 -p tcp --dport 80 -j ACCEPT

firewall's People

Watchers

 avatar  avatar  avatar

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.