Closed chekkan closed 8 years ago
Hi there -- the resource parameters are:
attribute(:source, callbacks: { 'must be a valid ip address' => ->(ip) { !!IPAddr.new(ip) } })
attribute(:source_port, kind_of: [Integer, Array, Range]) # source port
attribute(:interface, kind_of: String)
I don't see source_interface
as one of the valid ones. Did that come from an example somewhere?
Hi @martinb3 thanks for the quick reply. I was following the example on the Readme.md file for port range. I did not want to restrict this firewall rule to any particular ip address. My resource declaration looks like so
firewall_rule 'RPC Port Range In' do
port 5000..5100
protocol :tcp
command :allow
direction :in
end
This definitely looks like a bug. Bear with me to fix it :)
@chekkan I'm not able to reproduce this when I converge the same rule. Are you sure you aren't using direction :out
?
Hi -- I've committed a fix for the issue when direction :out
is set -- could you try master and let me know if it resolves your issue? Thanks!
thanks @martinb3 i just tested with version 2.5.0
and it works as expected.
I am getting the following error when running firewall resources. Anyone else came across this issue before? Any help will be appreciated.
I am using version
'~> 2.4.0'