Hi there, On my router/modem I cannot change the DNS entries, thus just using Adguard/PiHole for DNS blocking ads doesn’t work. Would a seperate Router circumvent this problem? Could I set up Adguard (or PiHole) on a Raspberry and use it as a DNS server for my home network?

The plan would be to use my ISP-provided router just as a modem to connect to the internet. Then us a second router to provide my home network, where also Adguard/PiHole can do their thing.

Would this setup work and how would I need to configure it?

  • devexxis@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I don’t see why it shouldn’t work. I have my ISP router set to pass through mode and my mikrotik router behind it

  • IsoKiero@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Yes, that will work. On your router plug in WAN (or whatever that’s called on your router) port to the ISP router, set up IP-range and NAT (plus DHCP and whatever other services you might want to use) and plug in the rest of your network on the LAN side of the router. That way the only thing ISP router will see is your own router and everything else is behind that & yours to configure however you wish.

    I’ve ran setup like this on several locations and (if possible) I’ve used bridged port on the ISP router, so that ISP router is only a ‘media converter’ and my own router connects directly to the public internet. Just make sure to have proper firewall configuration and keep safety in mind when doing that. If bridging isn’t possible your traffic just goes trough NAT twice (your router and ISP router) which in some odd edge cases can cause problems, but they’re very rare.

  • flathead@quex.cc
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    Connect the router’s WAN port into the cable modem. Plug your stuff into the router LAN ports or connect to the new router wifi. Set pi hole to a static address and then set the router’s DNS to point to that. Remove any secondary DNS in the router settings. Reboot everything and make sure it all works. That should be about it.

  • zikk_transport2@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 year ago

    I’ve done something similar in Ireland, where ISP router was the only way to connect. Managed to setup everything on OpenWRT router, but it kept disconnecting, so I put openwrt router behind ISP router.

    Interesting thing I found in ISP router is DMZ host - just point it to your own router and that’s it. Basically ISP router doesn’t exist lol.

    Then you have absolute freedom with your router.

  • exu@feditown.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    It’s not really optimal, having two firewalls and double NAT. Maybe check if your ISP router supports a modem-only mode.

    • Voroxpete@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      This is also sometimes referred to as “bridge” mode. Even if the ISP doesn’t officially support it, some googling may reveal how. It’s shockingly easy to find the default credentials for these things, for example.

  • lal309@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    1 year ago

    I had this same problem but Pihole can act as your DHCP server too. I turned off DHCP on my ISP router, turned it on in Pihole and configured my range (with some buffer for static IPs for servers and others) and off it went. When all my clients (laptops, workstations, phones, etc.) requested an IP (which I saw them trickle in almost immediately), they got their IP from Pihole and also automatically directed all DNS queries to Pihole. No need for complicated setups.

    Edit: fix typos.

  • the_thunder_god@kbin.social
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    Bridge mode on the ISP router is what you want. Then it just passes through the internet connection to the internal router on the edge of your network. It’s what I do with Comcast.