Skip to content

Commit

Permalink
remove default rules for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-robertson committed Jun 21, 2024
1 parent efed763 commit a8640d3
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions manifests/firewall.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@
}

# Default firewall rules
firewall { '000 accept all icmp':
proto => 'icmp',
jump => 'accept',
}
-> firewall { '001 accept all to lo interface':
proto => 'all',
iniface => 'lo',
jump => 'accept',
}
-> firewall { '002 reject local traffic not on loopback interface':
iniface => '! lo',
proto => 'all',
destination => '127.0.0.1/8',
jump => 'reject',
}
-> firewall { '003 accept related established rules':
proto => 'all',
state => ['RELATED', 'ESTABLISHED'],
jump => 'accept',
}
# firewall { '000 accept all icmp':
# proto => 'icmp',
# jump => 'accept',
# }
# -> firewall { '001 accept all to lo interface':
# proto => 'all',
# iniface => 'lo',
# jump => 'accept',
# }
# -> firewall { '002 reject local traffic not on loopback interface':
# iniface => '! lo',
# proto => 'all',
# destination => '127.0.0.1/8',
# jump => 'reject',
# }
# -> firewall { '003 accept related established rules':
# proto => 'all',
# state => ['RELATED', 'ESTABLISHED'],
# jump => 'accept',
# }
# Add rules for apache
if $observium::manage_ssl {
firewall { "50 Allow https access ${observium::apache_sslport}":
Expand All @@ -40,11 +40,11 @@
}
}
else {
# firewall { "50 Allow http access ${observium::apache_port}":
# dport => $observium::apache_port,
# proto => 'tcp',
# jump => 'accept',
# }
firewall { "50 Allow http access ${observium::apache_port}":
dport => $observium::apache_port,
proto => 'tcp',
jump => 'accept',
}
}
# Ensure ssh is open
firewall { '004 Allow inbound SSH':
Expand Down

0 comments on commit a8640d3

Please sign in to comment.