example42 / puppet-firewall

Example42 Firewall abstraction meta-module
http://www.example42.com
Other
3 stars 11 forks source link

Misunderstanding, how it works #14

Open Andor opened 10 years ago

Andor commented 10 years ago

Hello, Alessandro! I have little problem with your module. Example:

  firewall { "rabbitmq-5672":
      protocol    => 'tcp',
      port        => 5672,
      destination => '192.168.21.16',
      tool        => 'iptables',
  }

Creates rule for iptables without specification of destination:

-A INPUT   -p tcp --dport 5672 -j ACCEPT -m comment --comment "rabbitmq-5672"
Andor commented 10 years ago

But at the same time, call for firewall from your modules like puppet-nrpe works fine:

-A INPUT   -p tcp --dport 25 -s 0.0.0.0/0 -d 192.168.21.16 -j ACCEPT -m comment --comment "postfix_tcp_25"