Changeset 3694 in MondoRescue for branches/3.3/ansible/roles/shorewall
- Timestamp:
- Oct 12, 2017, 12:57:53 AM (8 years ago)
- Location:
- branches/3.3/ansible/roles/shorewall
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/ansible/roles/shorewall/defaults/main.yml
r3667 r3694 7 7 - zone: "net" 8 8 type: "ipv4" 9 - zone: "dock" 10 type: "ipv4" 9 11 10 12 shorewall_interfaces: … … 13 15 broadcast: "detect" 14 16 options: "dhcp,tcpflags,nosmurfs,logmartians" 17 - interface: "docker0" 18 zone: "dock" 19 broadcast: "detect" 20 #options: "dhcp,tcpflags,nosmurfs,logmartians" 15 21 16 22 shorewall_policies: … … 26 32 policy: "REJECT" 27 33 log_level: "info" 34 shorewall_masq: 35 - interface: "enp2s0f0" 36 source: "172.17.0.0/16" 28 37 29 38 shorewall_rules: … … 56 65 - { action: ACCEPT, source: fw, destination: "net:{{ dns1 }}", protocol: tcp, destination_port: 53 } 57 66 - { action: ACCEPT, source: fw, destination: "net:{{ dns2 }}", protocol: tcp, destination_port: 53 } 67 - { action: ACCEPT, source: dock, destination: "net:{{ dns1 }}", protocol: udp, destination_port: 53 } 68 - { action: ACCEPT, source: dock, destination: "net:{{ dns2 }}", protocol: udp, destination_port: 53 } 69 - { action: ACCEPT, source: dock, destination: "net:{{ dns1 }}", protocol: tcp, destination_port: 53 } 70 - { action: ACCEPT, source: dock, destination: "net:{{ dns2 }}", protocol: tcp, destination_port: 53 } 58 71 # Outgoing HTTP/S 59 72 - { action: ACCEPT, source: fw, destination: net, protocol: tcp, destination_port: 80 } 60 73 - { action: ACCEPT, source: fw, destination: net, protocol: tcp, destination_port: 443} 74 - { action: ACCEPT, source: dock, destination: net, protocol: tcp, destination_port: 80 } 75 - { action: ACCEPT, source: dock, destination: net, protocol: tcp, destination_port: 443} 61 76 # Outgoing SPAM 62 77 - { action: ACCEPT, source: fw, destination: net, protocol: tcp, destination_port: 9999 } … … 67 82 # Outgoing PING 68 83 - { action: ACCEPT, source: fw, destination: net, protocol: icmp, destination_port: 8 } 84 - { action: ACCEPT, source: dock, destination: net, protocol: icmp, destination_port: 8 } -
branches/3.3/ansible/roles/shorewall/tasks/main.yml
r3655 r3694 13 13 template: src=policy.j2 dest=/etc/shorewall/policy owner=root group=root mode=0600 backup=yes 14 14 15 - name: Generate masq 16 template: src=masq.j2 dest=/etc/shorewall/masq owner=root group=root mode=0600 backup=yes 17 15 18 - name: Generate rules 16 19 template: src=rules.j2 dest=/etc/shorewall/rules owner=root group=root mode=0600 backup=yes
Note:
See TracChangeset
for help on using the changeset viewer.