forked from google/capirca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample_packetfilter.pol
45 lines (38 loc) · 943 Bytes
/
sample_packetfilter.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
header {
comment:: "Denies all traffic to internal IPs except established tcp replies."
target:: packetfilter allowtointernet
}
term accept-dhcp {
comment:: "Optional - allow forwarding of DHCP requests."
destination-port:: DHCP
protocol:: udp
action:: accept
}
term accept-to-honestdns {
comment:: "Allow name resolution using honestdns."
destination-address:: GOOGLE_DNS
destination-port:: DNS
protocol:: udp
action:: accept
}
term deny-to-internal {
comment:: "Deny access to rfc1918/internal."
destination-address:: INTERNAL
logging:: true
action:: reject
}
term test-icmp {
destination-address:: RFC1918
protocol:: icmp
icmp-type:: echo-request echo-reply
action:: accept
}
term deny-to-specific_hosts {
comment:: "Deny access to specified public."
destination-address:: WEB_SERVERS MAIL_SERVERS
action:: deny
}
term default-permit {
comment:: "Allow what's left."
action:: accept
}