Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aim_control
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
liu-puppet-modules
aim_control
Commits
3d7cd8a4
Commit
3d7cd8a4
authored
1 year ago
by
Nils Olof Paulsson
Browse files
Options
Downloads
Patches
Plain Diff
gotofirehelld
parent
ca9bc9d1
No related branches found
No related tags found
2 merge requests
!67
Test
,
!66
Devel
Pipeline
#129688
failed
1 year ago
Stage: puppet
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
manifests/firewall.pp
+40
-4
40 additions, 4 deletions
manifests/firewall.pp
templates/55-permit-skadereg.rules.erb
+0
-16
0 additions, 16 deletions
templates/55-permit-skadereg.rules.erb
with
40 additions
and
20 deletions
manifests/firewall.pp
+
40
−
4
View file @
3d7cd8a4
# Class for skadereg firewall
class
aim_control::firewall
{
::
server_firewall::constricto_chain
{
'skadereg'
:
}
::
server_firewall::rules_file
{
'55-permit-skadereg.rules'
:
content
=>
template
(
"
${module_name}
/55-permit-skadereg.rules.erb"
),
require
=>
::
Server_firewall
::
Constricto_chain
[
'skadereg'
],
firewalld_rich_rule
{
'Allow 33060 from liu ipv4'
:
ensure
=>
present
,
zone
=>
'liu'
,
source
=>
{
'ipset'
=>
'liu-nets_v4'
},
port
=>
{
'port'
=>
33060
,
'protocol'
=>
'tcp'
},
action
=>
'accept'
,
}
firewalld_rich_rule
{
'Allow 33060 from liu ipv6'
:
ensure
=>
present
,
zone
=>
'liu'
,
source
=>
{
'ipset'
=>
'liu-nets_v6'
},
port
=>
{
'port'
=>
33060
,
'protocol'
=>
'tcp'
},
action
=>
'accept'
,
}
firewalld_rich_rule
{
'Allow ssh from liu 10.243.0.0/16'
:
ensure
=>
present
,
zone
=>
'liu'
,
source
=>
'10.243.0.0/16'
,
service
=>
'ssh'
,
action
=>
'accept'
,
}
firewalld_service
{
'Allow https from liu Zone'
:
ensure
=>
present
,
zone
=>
'liu'
,
service
=>
'https'
,
}
firewalld_service
{
'Allow http from liu Zone'
:
ensure
=>
present
,
zone
=>
'liu'
,
service
=>
'http'
,
}
firewalld_service
{
'Allow https from public Zone'
:
ensure
=>
present
,
zone
=>
'public'
,
service
=>
'https'
,
}
firewalld_service
{
'Allow http from public Zone'
:
ensure
=>
present
,
zone
=>
'public'
,
service
=>
'http'
,
}
}
This diff is collapsed.
Click to expand it.
templates/55-permit-skadereg.rules.erb
deleted
100644 → 0
+
0
−
16
View file @
ca9bc9d1
require services
policy skadereg chain skadereg is
accept service:http
accept service:https
end policy
append rule INPUT -j skadereg
append rule INPUT -s class:liu-nets -p tcp --dport 33060:33060 -j ACCEPT
#
<%# Put installed file in view mode when opened with Emacs: -%>
#
<%=
"Nota bene: Puppet managed file, all local changes will be reverted."
%>
#
<%=
"Local"
%>
<%=
"variables:"
%>
# mode: view
#
<%=
"End:"
%>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment