Giter Site home page Giter Site logo

stouts.iptables's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

stouts.iptables's Issues

raw rules template possibly broken

When I define:

iptables_raw_rules:
- -A INPUT -p tcp -m tcp --dport 3422 -j ACCEPT

It creates this:

# Raw roles
-A INPUT -p tcp -m tcp --dport 3422 -j ACCEPT

And results in this:

/etc/iptables.rules: line 26: -A: command not found

If I change templates/etc/iptables.rules.j2 from

# Raw roles
{% for rule in iptables_raw_rules %}
{{rule}}
{% endfor %}

to

# Raw roles
{% for rule in iptables_raw_rules %}
iptables {{rule}}
{% endfor %}

It works.

vars/Debian.yml precedence

Hello,
the var iptables_rules_path in vars/Debian.yml (file being included by taks/iptables.yml) will take precedence over custom vars defined in playbook. In fact my iptables_rules_path set in the playbook was not taken into account at all.

nat/PREROUTING not supported

with iptables-save I have a rule set like so:

-*nat
-:PREROUTING ACCEPT [0:0]
-:INPUT ACCEPT [0:0]
-:OUTPUT ACCEPT [0:0]
-:POSTROUTING ACCEPT [0:0]
 -A PREROUTING -p tcp -m tcp --dport 843 -j REDIRECT --to-ports 1843
 -A PREROUTING -p tcp -m tcp --dport 81 -j REDIRECT --to-ports 6080
-COMMIT
-# Completed on Fri Jun 13 11:42:13 2014

If I create iptables_raw_rules: like so:

- -A PREROUTING -p tcp -m tcp --dport 843 -j REDIRECT --to-ports 1843
- -A PREROUTING -p tcp -m tcp --dport 81 -j REDIRECT --to-ports 6080

It results in an error like:

iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.

Not certain how to create support for this in your role.

Port range

Hi!
Are there any options to define port range other then via raw rule?

request !

Hello

can you please help me with a small issue i have? I have your role and it works perfect but i want to edit it to open or close ports for different hosts

for example , all hosts in [web] to have 80 open and all other ports closed

all hosts in [test] to have only 22 open and all others closed

So , can you show how this can be done please ?
thanks

Not managing the iptables service?

I must be missing something obvious but I'm confused why the iptables service isn't being managed or restarted when /etc/iptables.rules is modified? Instead, we're just shelling out? What about surviving a reboot?

Add git tag

It's possible to add a tag for add your role with version number like that :

ansible-galaxy install Stouts.iptables,1.0.0

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.