I am using a Rasberry Pi 4B in place of my router that crapped out yesterday, and I am running into a problem: if the Rpi is connected to the internet via an ethernet cable to my modem, the control panel that is normally acessable over the Rpi's ip adress (192.168.1.199) is unacesable over https or ssh. If I unplug the Rpi from my modem, everything works fine, and I can use the control panel. When the Rpi is plugged into the modem the wifi works fine with my chromebook and iphone. The order that stuff is plugged in goes like this: Verizon Modem ---> Rpi running OpenWrt
I am currently using the Rpi as both a router and access point while I wait for a new access point to arrive, which should be this friday. Anyway, how can I make it so I can get into the OpenWrt control panel without disconnecting the Rpi from my modem? Thank you in advance
Your modem is plugged into the built-in RJ45 port of the RPI4?
Because that port by default is the Lan port. If you plugin the modem into that RJ45 port without reconfiguring a few things in OpenWRT, both RPI and modem provide DHCP which will result into undefined behavior.
What are "those few things" that I have to reconfigure? Thanks for the help - I'm learning as I go, but at least I have wifi in a very small area of my house now
My 4B is currently out of home, so I cannot provide a copy of exact config.
As is:
There is the 1x RJ45 part (I think the device is called "eth0" in OpenWRT on RPI4)
there is a LAN interface and a LAN zone already there
maybe there is a WAN interface and WAN zone also present
sounds like you already have a working Wifi setup as AP for your LAN interface
A very rough outline, of what you need, to make the 1 RPI built-in RJ45 become a WAN port and keep the already enabled RPI4-Wifi enabled as LAN access point:
(all can be done via Luci)
LAN interface:
you need to remove "eth0" device from the LAN interface. You need to keep the remaining LAN interace as is, as your Wifi is associated with it. Do not simply move the LAN interface to the WAN zone. You can no longer administrate the RPI via LAN cable after that, you need to conenct via Wifi to adminstrate
WAN interface:
if a WAN interface is not yet there, create it.
The WAN interface needs to be: "protocol": "DHCP client" + "device": "eth0"
firewall under "Zones":
add a "WAN" zone, if not present.
a "WAN=>reject" line should now be listed, needing: "In: reject, Out: accept, forward: reject"
of line "WAN=>reject" under "Edit"
Both "MSS Clamping" + "masquerading" checkmarks to be set
"covered networks": "WAN" (the WAN interface mentioned before)
there should be a zone line "LAN => ..."
it needs: "in: accept, out: accept, forward: accept"
it needs "Allow forward to destination zones": "WAN"
Maybe post your network and firewall file, if it does not work as expected. Not sure, if I can help in short term, but likely others can.
Could i just get another USB 3.0 to ethernet dongle? I already ordered one anyway.
Given i don’t actually have a access point to use right now and this is just being brodcast off the raspberry pi as a proof of concept while i wait for my access point to arrive this isn’t really a issue until i get that set up, as i can just unplug the ethernet cable coming from the modem if i need to edit anything with luci
We just need the eth0 for set up. we will delete it and make another eth0 for wan after you login in its wifi.
Can you access the internet using the Pi's wifi? I think I missed something.
Right now you have what OpenWrt calls a dumb Access Point. The problem is it is only
acting like a switch with wireless i.e. no firewall no DHCP no NAT no Firewall; everything is just being passed from the modem.
DHCP must be handed out to your devices from the modem. I'll bet you can get into the modem at 192.168.1.1.
I'm more than happy to get you a real router setup because I do not think you have any firewall, and you could get very unlucky.
You can get it configured and just save the SD card in case you need OpenWrt in the future.
Right now I can get onto the internet just via connecting to the rpi, which is how I'm on this forum. I cannot connect to the modem via 192.168.1.1, I don't actually know if it's a "modem" per se, that's just what people have told me it is. I'll attach a picture. I've just been following the guide for OpenWrt, and it seems to be working fine so far, aside from the fact that I don't actually have a acess point so it's all just connecting to the rpi's onboard stuff, which does not have very good transmission distance (at least that's how I think it's working - my networking experience is cloud based mostly, I have little experience with this)
You are not going to get much distance with any Pi. They are most useful as a travel router (like I'm trying to see how bad it is on a zero w)
right click your network icon in the bottom right.
choose open network and internet settings
scroll down to change adapter options
right click your wifi and look at the status
what it is showing as the gateway and what is your ip address
edit
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have: