Comment on nftables: Can't ping my own server
pHr34kY@lemmy.world 10 hours ago
My server has this to allow ICMP in nftables:
ip protocol icmp accept meta l4proto ipv6-icmp accept
There’s a hundred ways to do the same thing, and I haven’t found online guides to be consistent.
confusedpuppy@lemmy.dbzer0.com 9 hours ago
I tried your suggested rules and still nothing
I went a step further and simply enabled all incoming connections with:
Again I can connect with SSH and WireGuard but I still can’t ping my server. If I restore to my last backup with iptables, I can get a response from ping again.
I also tried directly translating the rules from iptables with:
and adding the rules:
and still no ping from my server…
I will agree, the documentation for nftables is just not as accessible or consistent as iptables. It’s a bit frustrating.
pHr34kY@lemmy.world 9 hours ago
Run
nft list rulesetand make sure that the final result matches your config. Maybe it’s misinterpreting or discarding something?confusedpuppy@lemmy.dbzer0.com 8 hours ago
I’ve been checking my rules with
nft -c -f /etc/nftables.d/firewall.nftas well as checking the ruleset after every change and every change appears as it should. I’m stumped. Even more stumped because just allowing all traffic still doesn’t allow me to ping my server but I can access ssh, wireguard and my reverse proxy just fine. I would have assumed allowing all inbound traffic would also accept ping requests too…