OpenVPN and Pihole - Unable to access web interface

Please follow the below template, it will help us to help you!

Expected Behaviour:

Setup Pihole with OpenVPN on AWS Lightsail VPS. Working fine. I can connect to the VPN, access web sites, etc. However, after inputting the firewall rules as outlined in the documentation here:

I am unable to access the Web UI WHILE connected to the VPN through the tun0 interface.

Actual Behaviour:

web interface site hangs and unable to access while connected to VPN. My understanding is that I should be unable to access the web interface when not connected to the VPN. However, once connected, I should have access to the web interface.

Thank you.

Debug Token:

3ekjwek6pq

What's the output of

iptables -L --line-numbers ?

Chain INPUT (policy DROP)
num target prot opt source destination
1 ACCEPT all -- anywhere anywhere
2 ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
3 ACCEPT tcp -- anywhere anywhere tcp dpt:domain
4 ACCEPT udp -- anywhere anywhere udp dpt:domain
5 ACCEPT tcp -- anywhere anywhere tcp dpt:http
6 ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
7 ACCEPT tcp -- anywhere anywhere tcp dpt:openvpn
8 ACCEPT udp -- anywhere anywhere udp dpt:openvpn
9 REJECT udp -- anywhere anywhere udp dpt:80 reject-with icmp-port-unreachable
10 REJECT tcp -- anywhere anywhere tcp dpt:https reject-with tcp-reset
11 REJECT udp -- anywhere anywhere udp dpt:443 reject-with icmp-port-unreachable

Chain FORWARD (policy ACCEPT)
num target prot opt source destination

Chain OUTPUT (policy ACCEPT)
num target prot opt source destination

You need to remove this iptables line.
See how it works after that.

Update. SOLVED It works perfectly fine just following the directions in the tutorial. I was trying to access the web interface from the public facing IP rather than the internal IP. As such, it was hanging as it should. Tested as follows:

Not connected to VPN
Access web interface using internal IP and it is not accessible

Connected to VPN
Access web intergace using internal IP and works fine.

All good. Sorry for posting this. It was my error. All works fine. Thank you

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.