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

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

parent 82f82ee9
Branches
Tags
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