Skip to content

Commit

Permalink
Add Nokia SRL sample (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbemmel committed Sep 26, 2023
1 parent 75b3e6a commit 312b448
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions policies/pol/sample_nokia_srl_lab.pol
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
header {
comment:: "Denies all traffic to internal IPs except established tcp replies."
comment:: "Also denies access to certain public allocations."

comment:: "Ideal for some internal lab/testing types of subnets that are"
comment:: "not well trusted, but allowing internal users to access."

comment:: "Apply to ingress interface (to filter traffic coming from lab)"
target:: nokiasrl 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 accept-tcp-replies {
comment:: "Allow tcp replies to internal hosts."
destination-address:: INTERNAL
protocol:: tcp
option:: tcp-established
action:: accept
}

term deny-to-internal {
comment:: "Deny access to rfc1918/internal."
destination-address:: INTERNAL
action:: deny
}

term deny-to-specific_hosts {
comment:: "Deny access to specified public."
destination-address:: WEB_SERVERS MAIL_SERVERS
action:: deny
logging:: true
}

term default-permit {
comment:: "Allow what's left."
action:: accept
}

0 comments on commit 312b448

Please sign in to comment.