forked from google/capirca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample_msmpc.pol
171 lines (142 loc) · 3.39 KB
/
sample_msmpc.pol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
header {
comment:: "this is a sample edge input filter that generates"
comment:: "msmpc output formats."
target:: msmpc edge-inbound mixed ingress
}
#include 'includes/untrusted-networks-blocking.inc'
term permit-mail-services {
destination-address:: MAIL_SERVERS
protocol:: tcp
destination-port:: MAIL_SERVICES
action:: accept
}
term permit-web-services {
destination-address:: WEB_SERVERS
protocol:: tcp
destination-port:: WEB_SERVICES
action:: accept
}
term permit-tcp-established {
destination-address:: MAIL_SERVERS WEB_SERVERS PUBLIC_NAT
protocol:: tcp
option:: tcp-established
action:: accept
}
term permit-udp-established {
destination-address:: MAIL_SERVERS WEB_SERVERS PUBLIC_NAT
protocol:: udp
source-port:: HIGH_PORTS
action:: accept
}
term default-deny {
action:: deny
logging:: true
}
header {
comment:: "this is a sample inet edge input filter that generates"
comment:: "msmpc output formats."
target:: msmpc edge-inbound-ipv4 inet ingress
}
#include 'includes/untrusted-networks-blocking.inc'
term permit-mail-services {
destination-address:: MAIL_SERVERS
protocol:: tcp
destination-port:: MAIL_SERVICES
action:: accept
}
term permit-web-services {
destination-address:: WEB_SERVERS
protocol:: tcp
destination-port:: WEB_SERVICES
action:: accept
}
term permit-tcp-established {
destination-address:: MAIL_SERVERS WEB_SERVERS PUBLIC_NAT
protocol:: tcp
option:: tcp-established
action:: accept
}
term permit-udp-established {
destination-address:: MAIL_SERVERS WEB_SERVERS PUBLIC_NAT
protocol:: udp
source-port:: HIGH_PORTS
action:: accept
}
term default-deny {
action:: deny
logging:: true
}
header {
comment:: "this is a sample inet6 edge input filter that generates"
comment:: "msmpc output formats."
target:: msmpc edge-inbound-ipv6 inet6 ingress
}
#include 'includes/untrusted-networks-blocking.inc'
term permit-mail-services {
destination-address:: MAIL_SERVERS
protocol:: tcp
destination-port:: MAIL_SERVICES
action:: accept
}
term permit-web-services {
destination-address:: WEB_SERVERS
protocol:: tcp
destination-port:: WEB_SERVICES
action:: accept
}
term permit-tcp-established {
destination-address:: MAIL_SERVERS WEB_SERVERS PUBLIC_NAT
protocol:: tcp
option:: tcp-established
action:: accept
}
term permit-udp-established {
destination-address:: MAIL_SERVERS WEB_SERVERS PUBLIC_NAT
protocol:: udp
source-port:: HIGH_PORTS
action:: accept
}
term default-deny {
action:: deny
logging:: true
}
header {
comment:: "this is a sample msmpc output filter"
target:: msmpc edge-outbound mixed egress
}
term deny-to-bad-destinations {
destination-address:: RFC1918 BOGON RESERVED
action:: deny
}
term default-accept {
action:: accept
}
header {
comment:: "this is a sample msmpc input-output filter"
target:: msmpc edge-outbound mixed
}
term deny-to-bad-destinations {
destination-address:: RFC1918 BOGON RESERVED
action:: deny
}
term permit-mail-services {
destination-address:: MAIL_SERVERS
protocol:: tcp
destination-port:: MAIL_SERVICES
action:: accept
}
term permit-web-services {
destination-address:: WEB_SERVERS
protocol:: tcp
destination-port:: WEB_SERVICES
action:: accept
}
term permit-mail-outbound {
source-address:: MAIL_SERVERS WEB_SERVERS PUBLIC_NAT
protocol:: tcp udp
action:: accept
}
term default-deny {
action:: deny
logging:: true
}