Skip to content
Snippets Groups Projects
Commit 9ca1953e authored by skorpy's avatar skorpy :construction_worker:
Browse files

Harden Salt Master Firewall

parent 2c5bc1b1
Branches
No related tags found
No related merge requests found
Pipeline #24879 passed
domain (ip ip6) {
@def $ownASN6 = (2a06:8187:fb00::/40);
@def $saltmaster = (2a01:4f8:192:11d2::99);
@def $ownExternal6 = (2001:bc8:182c:2321::1);
domain (ip6) {
table filter {
chain INPUT {
# minions
mod state state NEW proto tcp dport (4505 4506) ACCEPT;
# local (salt-cli to master)
interface lo proto tcp dport (4505 4506) ACCEPT;
proto tcp mod multiport destination-ports (4505 4506) {
saddr $own6 ACCEPT;
saddr $saltmaster ACCEPT;
saddr $externalFFFFM ACCEPT;
DROP;
};
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment