Make firewall 'one size fits all'
This commit is contained in:
parent
f713492679
commit
c9a777dc5d
@ -1,12 +1,7 @@
|
|||||||
# TODO: Allow in ICMP(v6) by message type
|
# TODO: Allow in ICMP(v6) by message type
|
||||||
# TODO: Rate-limit ssh
|
# TODO: Rate-limit ssh
|
||||||
|
|
||||||
# ICMP(v6)
|
$services = { mdns, ssh }
|
||||||
alg "icmp"
|
|
||||||
|
|
||||||
group "services" in on vioif0 {
|
|
||||||
pass stateful proto tcp to any port ssh
|
|
||||||
}
|
|
||||||
|
|
||||||
group "localhost" in on lo0 {
|
group "localhost" in on lo0 {
|
||||||
pass stateful all
|
pass stateful all
|
||||||
@ -16,6 +11,8 @@ group default {
|
|||||||
# Default rule
|
# Default rule
|
||||||
block all
|
block all
|
||||||
|
|
||||||
|
pass stateful in proto { tcp, udp } to any port $services
|
||||||
|
|
||||||
# Let it goooooo
|
# Let it goooooo
|
||||||
pass stateful out all
|
pass stateful out all
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user