Unable to connect to admin page after implementing suggested firewall rules when using a VPS with openVPN

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

Expected Behaviour:

Be able to connect to http://ipaddress/admin after enabling the firewall rules listed in the setup guide here when using a vpn connection to the same server.
https://docs.pi-hole.net/guides/vpn/firewall/

Actual Behaviour:

Unable to access page http://ipaddress/admin after implementing the firewall rules given here https://docs.pi-hole.net/guides/vpn/firewall/

Debug Token:

https://tricorder.pi-hole.net/tf87dvblg2

output of my $iptables -L --line-numbers

num target prot opt source destination
1 ACCEPT all – anywhere anywhere
2 ACCEPT all – anywhere anywhere state RELATED,ESTABLISHED
3 ACCEPT all – anywhere anywhere
4 ACCEPT tcp – anywhere anywhere tcp dpt:domain
5 ACCEPT udp – anywhere anywhere udp dpt:domain
6 ACCEPT tcp – anywhere anywhere tcp dpt:http
7 ACCEPT tcp – anywhere anywhere tcp dpt:ssh
8 ACCEPT tcp – anywhere anywhere tcp dpt:openvpn
9 ACCEPT udp – anywhere anywhere udp dpt:openvpn
10 REJECT udp – anywhere anywhere udp dpt:80 reject-with icmp-port-unreachable
11 REJECT tcp – anywhere anywhere tcp dpt:https reject-with tcp-reset
12 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

I see that the instructions in the guide are advising on port 80 being blocked.

Please issue sudo iptables -D INPUT 10 and try again.

If you are running this in a droplet (as stated in the guide), you will open the /admin/ interface to the public (with the above command).

Is it an isolated installation or is it on a remote VPS ?

Yes this has solved it thank you!
I am now able to load up the admin page while connected via openvpn but cannot otherwise which is the behavior I wanted. It is not on digital ocean but yes essentially the same type of service in Australia.

1 Like