-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.pp
50 lines (43 loc) · 907 Bytes
/
init.pp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
include ::firewall
firewall { '000 accept all icmp':
proto => 'icmp',
action => 'accept',
}
-> firewall { '001 accept all to lo interface':
proto => 'all',
iniface => 'lo',
action => 'accept',
}
-> firewall { '002 accept related established rules':
proto => 'all',
state => ['RELATED', 'ESTABLISHED'],
action => 'accept',
}
-> firewall { '003 accept inbound SSH':
dport => 22,
proto => 'tcp',
action => 'accept',
}
Firewallchain {
purge => true,
}
resources { 'firewallchain':
purge => true,
}
include ::pam_firewall
firewall { '899 drop broadcast':
action => 'drop',
dst_type => 'BROADCAST',
proto => 'all',
}
firewall { '900 INPUT denies get logged':
jump => 'LOG',
log_level => '4',
log_prefix => 'iptables denied: ',
proto => 'all',
limit => '30/min',
}
firewall { '999 drop all':
proto => 'all',
action => 'drop',
}