Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kypo-ansible-stage-one
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MUNI-KYPO-CRP
backend-python
ansible-networking-stage
kypo-ansible-stage-one
Commits
785324bc
Commit
785324bc
authored
3 years ago
by
Juraj Paluba
Browse files
Options
Downloads
Patches
Plain Diff
Resolve "Deny scan of private address range out of sandbox"
parent
82f82ee9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
provisioning/playbook.yml
+24
-0
24 additions, 0 deletions
provisioning/playbook.yml
with
24 additions
and
0 deletions
provisioning/playbook.yml
+
24
−
0
View file @
785324bc
...
...
@@ -83,6 +83,30 @@
out_interface
:
'
{{
default_gateway_interface
}}'
jump
:
MASQUERADE
-
name
:
Setup DROP rules on MAN
hosts
:
man
strategy
:
free
gather_facts
:
yes
become
:
yes
become_user
:
root
tasks
:
-
set_fact
:
private_ip_address_range
:
[
'
10.0.0.0/8'
,
'
172.16.0.0/12'
,
'
192.168.0.0/16'
,
'
224.0.0.0/4'
]
-
set_fact
:
host_interface
:
'
eth2'
-
name
:
setup
include_role
:
name
:
iptables
vars
:
iptables_rules
:
-
chain
:
FORWARD
destination
:
'
{{
item
}}'
in_interface
:
'
{{
host_interface
}}'
jump
:
DROP
loop
:
'
{{
private_ip_address_range
}}'
-
name
:
Sandbox networking
hosts
:
-
management
...
...
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