Skip to content

Commit

Permalink
Merge pull request #711 from pitkley/705-nftables.conf-better-defaults
Browse files Browse the repository at this point in the history
Suggest better defaults for `/etc/nftables.conf`
  • Loading branch information
pitkley authored Jan 7, 2024
2 parents e35f79c + c2ad46f commit a97b3ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/GETTING-STARTED-nftables.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@
table inet filter {
chain input {
type filter hook input priority 0; policy drop;
# Ensure local traffic is accepted still
iif lo accept
# Allow established connections (e.g. responses to outgoing traffic)
ct state { established, related } accept
# Allow incoming SSH connections
tcp dport 22 accept
}
chain forward {
Expand Down

0 comments on commit a97b3ad

Please sign in to comment.