I have a spare Raspberry PI 4B 4GB that I would like to use as a router to test OpenVpn and Wireguard.
To do that, I followed these steps:
Installed OpenWRT.
Purchased an USB antenna and a USB to Ethernet adapter and then downloaded their relative packages - both devices have been correctly identified (as radio1 and eth1, namely).
Connected another computer to the Ethernet port of the RPI (eth0).
Accessed the GUI and created a new wireless network on radio1, then plugged off the other computer from eth0 and connected it through the newly created wireless network on radio1.
Configured eth0 as WAN.
Configured eth1 as LAN.
The router now works perfectly as wired router, using the default ethernet port (eth0) of the RPI as WAN and the additional usb-to-ethernet port (eth1) as LAN. I'm also pretty impressed by the speed - it's well above 250mbps in download.
It appears, however, that setting eth1 as LAN is preventing the wireless network radio1 from working correctly. Whenever I attempt to connect with a wireless device, I am returned an error message stating that they couldn't get an IP address. I would like to have both a wired and wireless connection (e.g. LAN on both eth1 and radio 1), but I haven't figured out how to do that
What is the version of OpenWrt? You use the old syntax. Try the following configuration for the lan interface and remove option type 'bridge' from the wan section.
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth1'
config interface 'lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
option device 'br-lan'
If it still doesn't work after restarting the network service, post the output of brctl show