Just installed OpenWrt on a TPLink AC1750 C7 and things are running ok... I'd like to check my setup for advice.
My Hitron CODA-4582 is a cable modem that serves as the point of entry for the Internet. It is connected to the above router (along with piHole) and a PC ALL using the same 'yellow' LAN ports (should the modem come out of the blue 'Internet' port)?
PiHole is serving as the DHCP server and I've disabled it in OpenWRT in Network -> Interfaces -> LAN -> General: 'Ignore Interface'. I also gave OpenWRT a static IP on this page and specified the gateway.
I'm at the point where I'm trying to force all devices to use piHole DNS and having trouble... I have the following Port Forward rule in place, but devices can still manually circumvent the DNS. Why is this?
I must be doing something wrong... Every time I throw the modem/router into bridge mode, I lose the internet connection to the TPL. The LAN works fine, but I can't connect to the web (and yes, I changed the ethernet cable to the WAN port with no dice). Is there something in OpenWRT I should be changing?
I've continued reading and still can't find an answer. Interesingly, the Diagnostics shows that I can ping, trcrt and nslookup successfully, I just can't reach the internet from any connected device. To I need to setup some kind of NAT for WAN traffic to/from the LAN?
you're right. Pinging IP addresses worked just fine.
So, after pulling my hair out, I decided to reset openWRT and start from scratch. I re-added the Firewall and Nat rule above and thought things were good (I was resolving domains in a browser!) till I realized:
no device was using piHole as the DNS
no new device was getting an IP (existing devices that were on and connected kept working)
I set piHole as the DNS in Interfaces -> LAN -> custom DNS servers and in Interfaces -> LAN -> DHCP -> checked 'Ignore interface'. Shouldn't this force openWRT to use the pi as it's DNS and DHCP server?
Then you could have skipped the Pi DNS IP, it won't be distributed by openwrts DHCP, since it's disabled.
You could let openwrt act as DHCP, and provide the Pi DNS IP, but then you need to disable the
DHCP on the Pi .
It doesn't force openwrt to do anything, it got a static IP, it doesn't need any DHCP.
By disabling the DHCP in openwrt, you are (hopefully) forcing the clients to use the
Pi as the DHCP.