puppet iptables
Python
code posted
created at 30 Nov 07:51, updated at 03 Dec 03:29
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# purge iptables rules resources { "firewall": purge => true } Firewall { before => Class['fw::post'], require => Class['fw::pre'], } class { ['fw::pre', 'fw::post']: } firewall { '100 allow openssh': chain => 'INPUT', state => ['NEW'], dport => '22', proto => 'tcp', action => 'accept', } |
330 Bytes in 2 ms with coderay