Skip to content

Commit

Permalink
Suggest better defaults for /etc/nftables.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
pitkley committed Jan 7, 2024
1 parent e35f79c commit c2ad46f
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 c2ad46f

Please sign in to comment.