How to Setup Secure Pi-hole Public DNS Server with TorGuard

Last updated: September 11, 2025
Table of Contents

Pi-hole DNS on TorGuard Cloud

Transform your internet experience with Pi-hole - a network-wide ad blocker that works at the DNS level. By hosting it on TorGuard's Private VPN Cloud, you get a secure, private DNS server accessible from anywhere while blocking ads, trackers, and malicious domains for your entire network.

What is Pi-hole?

Understanding Pi-hole DNS Filtering

Network-Wide Ad Blocking

Blocks ads before they reach any device on your network

Privacy Protection

Prevents tracking domains from collecting your data

DNS Analytics

Monitor and analyze DNS queries across your network

Performance Boost

Faster browsing by blocking ads at DNS level

Benefits of Cloud-Hosted Pi-hole

Why Use TorGuard's Pi-hole Cloud App?

  • Always Available: Access your Pi-hole DNS from anywhere in the world
  • No Hardware Required: No need for Raspberry Pi or home server
  • High Reliability: Enterprise-grade infrastructure with 99.9% uptime
  • Easy Management: Web-based admin panel accessible from anywhere
  • VPN Integration: Works seamlessly with TorGuard VPN services
  • Multiple Device Support: Use on routers, computers, and mobile devices

Step 1: Purchase TorGuard Pi-hole Cloud App

Get Your Pi-hole Instance

  1. Visit TorGuard's Pi-hole Cloud App page
  2. Select your billing cycle (monthly/yearly)
  3. Complete the purchase
  4. Your Pi-hole server will be instantly provisioned and ready to use

Pi-hole Cloud Apps can run standalone or integrate with your Private VPN Cloud WireGuard server for enhanced security.

TorGuard Pi-hole purchase page
Purchase TorGuard's Pi-hole Cloud App

Step 2: Access Your Pi-hole Service

Manage Your Pi-hole

  1. Go to My Services in your TorGuard account
  2. Find your Pi-hole service
  3. Click Manage button
  4. Select Manage App
TorGuard services management
Access Pi-hole management from My Services

Step 3: Get Your Pi-hole Details

Pi-hole Information

On the Pi-hole admin screen, you'll find:

  • Public Pi-hole IP Address: Your DNS server IP to use on devices
  • Admin Password: For accessing Pi-hole web interface
  • Admin URL: Link to Pi-hole dashboard

Save these credentials securely. The IP address is what you'll configure on your devices and routers.

Pi-hole admin details
Your Pi-hole server details and credentials

Step 4: Secure Your Pi-hole with Firewall Rules

Critical Security Configuration

By default, your Pi-hole is publicly accessible. This poses security risks:

  • Brute force attacks on admin interface
  • Unauthorized DNS usage by others
  • Potential DDoS amplification

Important: Always secure your Pi-hole with firewall rules to prevent unauthorized access!

Configure Firewall Rules

  1. Click Add Filter button in your Pi-hole management panel
  2. Add the following firewall rules:

Firewall Rules to Add:

Rule 1: Block All Web Admin Access
  • Action: Block
  • Protocol: TCP
  • Source: 0.0.0.0/0 (all IPs)
  • Destination: [Your Pi-hole IP]
  • Port: 80
Rule 2: Allow Your IP to Web Admin
  • Action: Allow
  • Protocol: TCP
  • Source: [Your Home/VPN IP]
  • Destination: [Your Pi-hole IP]
  • Port: 80
Rule 3: Block All DNS Access
  • Action: Block
  • Protocol: UDP
  • Source: 0.0.0.0/0
  • Destination: [Your Pi-hole IP]
  • Port: 53
Rule 4: Allow Your Network DNS Access
  • Action: Allow
  • Protocol: UDP
  • Source: [Your Home/VPN IP]
  • Destination: [Your Pi-hole IP]
  • Port: 53

Note: Add additional allow rules for each IP address that needs access (office, mobile networks, etc.)

Pi-hole firewall configuration
Example firewall rules for securing Pi-hole

Router Configuration Examples

Configure Your Router to Use Pi-hole

To protect your entire network, configure your router's DNS settings to use your Pi-hole IP address.

Select Your Router Type:

PrivateRouter OpenWRT
  1. Navigate to Network → Interfaces
  2. Click Edit on LAN interface
  3. Go to Advanced Settings tab
  4. Under "Use Custom DNS Servers", click +
  5. Enter your Pi-hole IP address
  6. Save & Apply
OpenWRT DNS configuration
PrivateRouter OpenWRT DNS settings
Linksys Routers
  1. Click Connectivity tab
  2. Select Local Network tab
  3. Under DHCP Server settings
  4. Enter Pi-hole IP in Static DNS 1
  5. Apply Settings
Linksys DNS configuration
Linksys router DNS configuration
TP-Link Routers
  1. Go to Advanced tab
  2. Select NetworkDHCP Server
  3. Enter Pi-hole IP as Primary DNS
  4. Save settings
TP-Link DNS configuration
TP-Link router DNS settings
pfSense
  1. Navigate to Services → DHCP Server → LAN
  2. In Servers section
  3. Enter Pi-hole IP in DNS Server 1
  4. Save configuration
pfSense DNS configuration
pfSense DHCP DNS configuration
ASUS Routers
  1. Go to Advanced Settings → LAN
  2. Click DHCP tab
  3. Enter Pi-hole IP in DNS Server field
  4. Apply settings
ASUS DNS configuration
ASUS router DNS configuration

TorGuard VPN Integration

Use Pi-hole with TorGuard VPN

For maximum privacy, combine Pi-hole with TorGuard VPN:

  1. Open TorGuard VPN app
  2. Go to Settings → Network
  3. Click Edit under DNS menu
  4. Click Add button
  5. Enter your Pi-hole DNS IP
  6. Click OK
  7. Select Pi-hole from DNS dropdown for "When VPN is connected"
TorGuard VPN DNS settings
Configure Pi-hole DNS in TorGuard VPN app

Pi-hole Admin Dashboard

Monitor Your DNS Queries

Access your Pi-hole admin interface to:

  • View real-time DNS query statistics
  • See top blocked domains
  • Whitelist or blacklist specific domains
  • Monitor device-specific queries
  • Update blocklists
  • Configure advanced settings
Pi-hole admin dashboard
Pi-hole admin dashboard showing blocked queries

Best Practices

Recommendations

  • Regular Updates: Keep Pi-hole updated through admin interface
  • Backup Whitelist: Export your custom whitelist regularly
  • Monitor Logs: Check query logs for unusual activity
  • Update Blocklists: Refresh blocklists weekly via Gravity update
  • Test Thoroughly: Verify important sites work after deployment
  • Document IPs: Keep record of all authorized IP addresses

Troubleshooting

Cannot Access Admin Interface

  • Verify firewall rules allow your current IP
  • Check if using correct admin URL
  • Ensure using HTTP (not HTTPS) for initial access
  • Try accessing from allowed IP address

Websites Not Loading

  • Check if site is incorrectly blocked (whitelist if needed)
  • Verify DNS is resolving: nslookup google.com [pi-hole-ip]
  • Temporarily disable Pi-hole to test
  • Clear device DNS cache

Ads Still Showing

  • Ensure device is using Pi-hole DNS (check IP configuration)
  • Clear browser cache and cookies
  • Some ads use HTTPS and can't be blocked by DNS
  • Update gravity (blocklists) in Pi-hole admin

Was this article helpful?

Share:

Ready to Get Help?

Our support team is available 24/7 to assist you with any questions.