Skip to content
Snippets Groups Projects
Commit 4af81660 authored by Juraj Paluba's avatar Juraj Paluba
Browse files

Merge branch '22-deny-scan-of-private-address-range-out-of-sandbox' into 'master'

Resolve "Deny scan of private address range out of sandbox"

Closes #22

See merge request muni-kypo-crp/backend-python/ansible-networking-stage/kypo-ansible-stage-one!22
parents 82f82ee9 785324bc
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment