Skip to content

Commit

Permalink
Update nflux.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
containerscrew committed Dec 4, 2024
1 parent dbacd4c commit fdbbced
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions nflux.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ log_type = "text" # text or json. Defaults to text if not set
# log_file = "/var/log/firewall.log"

[ip_rules]
# Fine-tuned rules for IP-based filtering
"192.168.0.0/24" = { priority = 1, action = "deny", ports = [22], log = false, protocol = "tcp", description = "Allow SSH from entire local subnet" }
# "192.168.0.172/32" = { priority = 2, action = "deny", ports = [53], protocol = "udp", log = false, description = "Block UDP port" }
# The /32 CIDR block is used to represent a single IP address rather than a range
"192.168.0.174/32" = { priority = 1, action = "allow", ports = [22], protocol = "tcp", log = false, description = "Allow SSH for specific IP" }
"192.168.0.0/24" = { priority = 2, action = "deny", ports = [22], protocol = "tcp", log = false, description = "Deny SSH for entire subnet" }



# todo: ipv6 support
# "2001:0db8:85a3:0000:0000:8a2e:0370:7334" = { action = "deny", ports = [80], protocol = "tcp" }

# [icmp_rules]
Expand Down

0 comments on commit fdbbced

Please sign in to comment.