• TechieDamien@lemmy.ml
    link
    fedilink
    arrow-up
    7
    ·
    3 years ago

    You can do this with wireguard and pihole listening on the wg interface. On your clients, you can specify your server as your DNS server.

    • arun@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      3 years ago

      +1 to this. Tailscale makes it incredibly easy to create that mesh VPN. Get your pihole listening on the Tailscale network and that takes care of the ad-blocking part. About changing the IP address though, that’s a different topic. Will need to have a commercial VPN configured on that server and use that as an exit node.

      • pinknoise@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        3 years ago

        If you get a vps you might not be able to get the wireguard kernel module running. In that case you can use wireguard-go.

  • AgreeableLandscape@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    3 years ago

    I mean, a VPN’s most basic job is to hide your IP address, some do it better than others in practice though.

    Many commercial VPNs do also have an ad blocking system by connecting to their DNS server which just sinkholes known ad and tracking domains, essentially it’s PiHole but provided by the VPN.

  • Baku@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    3 years ago

    Best way to block ads is through DNS, I use ahadns. No need for an app, it’s just proper network settings.

  • mekhos@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    3 years ago

    Mullvad has it too, plus a great Android and Linux apps that are regularly updated.