Comment on Openwrt how to block countries but allow a specific path using BanIp

peskypry@lemmy.ml ⁨1⁩ ⁨week⁩ ago

banIP works at IP layer. It basically injects additional firewall rules to nftable to reject packets from specific set of IP addresses. It is not aware of layer 7 like HTTP.

What is your goal exactly? Do you want to allow /.well-known to all countries including the bad ones you are blocking? Then you’ve to do it at application layer or setup a reverse proxy that has WAF (Web Application Firewall) and serve ./well-known from the proxy.

source
Sort:hotnewtop