-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(WIP) (role/tang) add basic filtering
- Loading branch information
Showing
1 changed file
with
35 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 |
---|---|---|
@@ -1,6 +1,41 @@ | ||
--- | ||
classes: | ||
- "ipset" | ||
- "profile::core::common" | ||
- "tang" | ||
packages: | ||
- "jose" | ||
|
||
firewall::ensure: "running" | ||
profile::core::firewall::purge_firewall: true | ||
profile::core::firewall::firewall: | ||
# centos 7 defaults | ||
"000 accept established": | ||
proto: "all" | ||
state: ["RELATED", "ESTABLISHED"] | ||
action: "accept" | ||
"001 accept all icmp": | ||
proto: "icmp" | ||
action: "accept" | ||
"002 accept all loopback": | ||
proto: "all" | ||
iniface: "lo" | ||
action: "accept" | ||
"010 accept ssh": | ||
proto: "tcp" | ||
state: "NEW" | ||
dport: "22" | ||
action: "accept" | ||
"990 reject all": | ||
proto: "all" | ||
action: "reject" | ||
"991 reject forward all": | ||
chain: "FORWARD" | ||
proto: "all" | ||
action: "reject" | ||
# dhcp client | ||
"020 accept dhcp": | ||
proto: "udp" | ||
sport: ["67", "68"] | ||
dport: ["67", "68"] | ||
action: "accept" |