Skip to content

Commit

Permalink
fix internet access problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Eslam-Nawara committed Sep 11, 2024
1 parent e56ea0d commit 6cb4cb0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cmds/modules/netlightd/nft/rules.nft
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ table inet filter {
}

chain output {
type filter hook output priority filter; policy drop;
ip daddr 192.168.1.1 accept # the router ip
type filter hook output priority filter; policy accept;
ip daddr 192.168.123.32 accept
ip daddr { 8.8.8.8, 1.1.1.1, 192.168.123.1 } udp dport 53 accept
ip daddr 192.168.123.32 tcp dport { 80, 443, 22 } accept
tcp dport 443 accept
ct state established,related accept
ip protocol icmp accept
meta nfproto ipv4 drop
}

chain prerouting {
Expand Down

0 comments on commit 6cb4cb0

Please sign in to comment.