iafonov/chef-knockd — pull request #1 by aldoborrero (2012-12-14 18:05:23+00:00)
Title: Changed the cookbook defaults to support more options of configuration

The new attributes has changed to:

default['knockd'] = {
'options' => {
'start_knockd' => 1,
'knockd_opts' => '-i eth0',
'logfile' => 'UseSyslog'
},
'rules' => {
'openclosessh' => {
'sequence' => {
'type' => 'normal',
'ports_sequence' => '2000, 3000, 4000'
},
'cmd_timeout' => 10,
'seq_timeout' => 5,
'tcpflags' => 'syn',
'start_command' => '/usr/sbin/iptables -A INPUT -s %IP% -p tcp --syn --dport 22 -j ACCEPT',
'stop_command' => '/usr/sbin/iptables -D INPUT -s %IP% -p tcp --syn --dport 22 -j ACCEPT'
}
}
}

I've just adapted the rest files to accommodate to the new attributes.