Update
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
{ config, lib, ... }:{
|
||||
config = lib.mkIf (config.syscfg.server.nftables.enable) {
|
||||
boot.kernel.sysctl = {
|
||||
@@ -11,8 +9,12 @@
|
||||
networking.nftables.ruleset = ''
|
||||
table inet filter {
|
||||
chain input {
|
||||
type filter hook input priority filter; policy accept;
|
||||
type filter hook input priority filter; policy drop;
|
||||
ct state established,related accept
|
||||
iifname "lo" accept
|
||||
tcp dport {5432, 6379} ip saddr { 10.0.0.0/8 169.254.0.0/16 } accept
|
||||
tcp dport {80, 443, 22} accept
|
||||
udp dport {80, 443, 22} accept
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user