2026-02-03 00:41:35 +01:00
|
|
|
## confdroid_apache::firewall::iptables.pp
|
|
|
|
|
# Module name: confdroid_apache
|
|
|
|
|
# Author: 12ww1160 (12ww1160@ConfDroid.com)
|
2018-04-20 11:30:48 +02:00
|
|
|
# @summary manage firewall settings through cd_firewall or puppetlabs-firewall
|
|
|
|
|
###############################################################################
|
2026-02-03 00:41:35 +01:00
|
|
|
class confdroid_apache::firewall::iptables (
|
2018-04-20 11:30:48 +02:00
|
|
|
|
2026-02-03 00:41:35 +01:00
|
|
|
) inherits confdroid_apache::params {
|
2018-04-20 11:36:10 +02:00
|
|
|
if $ae_manage_fw == true {
|
2018-04-20 11:30:48 +02:00
|
|
|
firewall { "${ae_order_no}${ae_http_port} tcp http port ${ae_http_port}":
|
2026-02-03 15:34:55 +01:00
|
|
|
proto => 'tcp',
|
2026-02-03 15:16:27 +01:00
|
|
|
dport => $ae_http_port,
|
|
|
|
|
jump => 'accept',
|
2026-02-03 16:25:18 +01:00
|
|
|
}
|
2018-04-20 11:30:48 +02:00
|
|
|
|
|
|
|
|
firewall { "${ae_order_no}${ae_https_port} tcp http port ${ae_https_port}":
|
2026-02-03 15:34:55 +01:00
|
|
|
proto => 'tcp',
|
2026-02-03 15:16:27 +01:00
|
|
|
dport => $ae_https_port,
|
|
|
|
|
jump => 'accept',
|
2018-04-20 11:30:48 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|