Firewall seems not configured to allow ports needed by Pi-hole:
For diagnosing, you can try flush all iptables rules with below and try access with browser after:
If that works, you'll need to figure out what firewall software is applying those iptables rules.
Could be UFW.