Jump to content
Not connected, Your IP: 18.117.232.215
Crewman6639

ANSWERED adding local pihole server to wireguard conf file

Recommended Posts

How would I add my local pihole dns to the wireguard config file thats generated in the client area? This config would only be used on my home network as pihole isn't setup to be used outside of it.

I tried just editing the DNS to point to the pihole DNS but I cannot access the web when I do that.

Share this post


Link to post

If you are on a Linux system, add the line
PostUp = ip rule add to $PIHOLE_ADDRESS lookup main

in the [Interface] section of the Wireguard conf, in addition to changing the DNS like you were already doing.

Substitute $PIHOLE_ADDRESS with whatever the real IP address of your PIHOLE is.

For example, if your PIHOLE is at 192.168.22.5, then add
PostUp = ip rule add to 192.168.22.5 lookup main
 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...