-
Notifications
You must be signed in to change notification settings - Fork 210
/
sample_openconfig.pol
53 lines (45 loc) · 1.02 KB
/
sample_openconfig.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
header {
comment:: "Accepts DHCP, DNS, HTTPS, SMTP."
comment:: "Denies access to internal addressing."
target:: openconfig inet
}
term accept-dhcp {
comment:: "Optional - allow DHCP requests."
destination-port:: DHCP
protocol:: udp
action:: accept
}
term accept-from-googledns {
comment:: "Allow name resolution responses from Google DNS."
source-address:: GOOGLE_DNS
destination-address:: INTERNAL
source-port:: DNS
protocol:: tcp udp
action:: accept
}
term sport-dport {
comment:: "DENY SMTP."
destination-address:: INTERNAL
source-address:: BOGON
source-port:: SMTP
destination-port:: SMTP
protocol:: tcp
action:: deny
}
term deny-saddr {
comment:: "Deny everything from bogons."
source-address:: BOGON
action:: deny
}
term ssh-to-internal {
comment:: "Allow SSH to Internal from Internal."
source-address:: INTERNAL
destination-address:: INTERNAL
destination-port:: SSH
protocol:: tcp
action:: accept
}
term default-deny {
comment:: "Deny what's left."
action:: deny
}