Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
puppet-shorewall
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chris
puppet-shorewall
Commits
6c29c55b
Commit
6c29c55b
authored
Nov 11, 2012
by
intrigeri
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/libvirt-host' into old-master
parents
8080f1a8
8a98c5b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
+47
-0
manifests/rules/libvirt/host.pp
manifests/rules/libvirt/host.pp
+47
-0
No files found.
manifests/rules/libvirt/host.pp
0 → 100644
View file @
6c29c55b
class
shorewall::rules::libvirt::host
(
$vmz
=
'vmz'
,
$masq_iface
=
'eth0'
,
)
{
define
shorewall::rule::accept::from_vmz
(
$proto
=
'-'
,
$destinationport
=
'-'
,
$action
=
'ACCEPT'
)
{
shorewall::rule
{
"
$name
"
:
source
=>
$vmz
,
destination
=>
'$FW'
,
order
=>
300
,
proto
=>
$proto
,
destinationport
=>
$destinationport
,
action
=>
$action
;
}
}
shorewall::policy
{
'fw-to-vmz'
:
sourcezone
=>
'$FW'
,
destinationzone
=>
$vmz
,
policy
=>
'ACCEPT'
,
order
=>
110
;
'vmz-to-net'
:
sourcezone
=>
$vmz
,
destinationzone
=>
'net'
,
policy
=>
'ACCEPT'
,
order
=>
200
;
'vmz-to-all'
:
sourcezone
=>
$vmz
,
destinationzone
=>
'all'
,
policy
=>
'DROP'
,
shloglevel
=>
'info'
,
order
=>
800
;
}
shorewall::rule::accept::from_vmz
{
'accept_ftp_from_vmz'
:
action
=>
'FTP(ACCEPT)'
;
'accept_dns_from_vmz'
:
action
=>
'DNS(ACCEPT)'
;
'accept_tftp_from_vmz'
:
action
=>
'TFTP(ACCEPT)'
;
'accept_debproxy_from_vmz'
:
proto
=>
'tcp'
,
destinationport
=>
'8000'
,
action
=>
'ACCEPT'
;
'accept_puppet_from_vmz'
:
proto
=>
'tcp'
,
destinationport
=>
'8140'
,
action
=>
'ACCEPT'
;
}
shorewall::masq
{
"masq-
${masq_iface}
"
:
interface
=>
"
$masq_iface
"
,
source
=>
'10.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.168.0.0/16'
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment