-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |