source: MondoRescue/branches/3.3/ansible/roles/shorewall/defaults/main.yml@ 3655

Last change on this file since 3655 was 3655, checked in by Bruno Cornec, 7 years ago

New MondoRescue site managed with ansible now

File size: 1.8 KB
RevLine 
[3655]1---
2shorewall_enabled: "Yes"
3
4shorewall_zones:
5- zone: "fw"
6 type: "firewall"
7- zone: "net"
8 type: "ipv4"
9
10shorewall_interfaces:
11- interface: "enp2s0f0"
12 zone: "net"
13 broadcast: "detect"
14 options: "dhcp,tcpflags,nosmurfs,logmartians"
15
16shorewall_policies:
17- source: "fw"
18 destination: "net"
19 policy: "REJECT"
20 log_level: "info"
21- source: "net"
22 destination: "fw"
23 policy: "DROP"
24- source: "all"
25 destination: "all"
26 policy: "REJECT"
27 log_level: "info"
28
29shorewall_rules:
30- section: "NEW"
31 rules:
32 # Incoming SSH
33 - { action: ACCEPT, source: net, destination: fw, protocol: tcp, destination_port: 22 }
34 # Incoming HTTP
35 - { action: ACCEPT, source: net, destination: fw, protocol: tcp, destination_port: 80 }
36 # Incoming SVN
37 - { action: ACCEPT, source: net, destination: fw, protocol: tcp, destination_port: 3690 }
38 # Incoming FTP
39 - { action: ACCEPT, source: net, destination: fw, protocol: tcp, destination_port: 20 }
40 - { action: ACCEPT, source: net, destination: fw, protocol: tcp, destination_port: 21 }
41 # Incoming NTP
42 - { action: ACCEPT, source: net, destination: fw, protocol: tcp, destination_port: 123 }
43 - { action: ACCEPT, source: net, destination: fw, protocol: udp, destination_port: 123 }
44 # Incoming PING
45 - { action: ACCEPT, source: net, destination: fw, protocol: icmp, destination_port: 8 }
46 # Outgoing DNS
47 - { action: ACCEPT, source: fw, destination: "net:{{ dns1 }}", protocol: udp, destination_port: 53 }
48 - { action: ACCEPT, source: fw, destination: "net:{{ dns2 }}", protocol: udp, destination_port: 53 }
49 - { action: ACCEPT, source: fw, destination: "net:{{ dns1 }}", protocol: tcp, destination_port: 53 }
50 - { action: ACCEPT, source: fw, destination: "net:{{ dns2 }}", protocol: tcp, destination_port: 53 }
51 # Outgoing HTTP
52 - { action: ACCEPT, source: fw, destination: net, protocol: tcp, destination_port: 80 }
Note: See TracBrowser for help on using the repository browser.