OpenWrt is the best choice for you. It makes Raspberry Pi to a wireless router device and you don't need to run a lot of commands. Easy to use with an interactive web user interface named LuCi like picture below:
I believe it going to help you better than in other ways.
The thing you should concern is that you should don't attend this page. As this page, OpenWrt is not on the supported list, however, you can install the bcm2709
by this link - Index of (root) / snapshots / targets / brcm2708 / bcm2709. Download rpi-2-ext4-factory.img.gz
and write the image on a larger 256MB SD-Card.
The default IP is 192.168.1.1
and the DHCP server is disabled therefore add and static IP address to the host you want to configure RPi (such as 192.168.1.100
), the default user is root
and leave the password section blank.
Go to Network/Wireless
then turn radio0
or WLAN on.
As I mentioned, it's easy to configure OpenWrt and you can configure it any way you want.
UPDATE:
Raspberry Pi 4 sources provided by the Raspberry Pi Foundation are Linux >= 4.19.
OpenWrt 18.06 is based on Linux 4.9 and OpenWrt 19.07 is based on Linux 4.14, so you need to use the snapshots builds, which are based on Linux 4.19:
https://downloads.openwrt.org/snapshots/targets/brcm2708/bcm2711/
Download rpi-4-ext4-factory.img.gz
and write the image to the SD-Card.
UPDATE 02:
Snapshot builds do not include the web interface, the LuCi package. Therefore, follow the procedure:
1. Connect to the Raspberry Pi's terminal via SSH
.
2. Update package list of OpenWrt:
opkg update
3. Install LuCi package which is the web interface configuration mode:
opkg install luci
SoftAp mode
. You have two interfaces on wlan0, one in managed (client) typemanaged
and one in master (AP) type__ap
. Connect your managed interface to your router. Use master interface forhostpad
and your own Wi-Fi Access Point. (Not tested on RPi4)