Assuming that you have already installed OpenWrt in your Raspberry-Pi 4 B (if not install from here)
- Open browser and enter url: http://192.168.1.1/
- Click on drop down menu and select
- In Wireless Overview section beside radio0 click on . It will start wireless scan.
- Choose your network's SSID having internet access and click on
- Enter your network password in and click submit.
- Click on save and apply button to connect to this wireless network.
- To check it internet is working properly. Click on drop down menu and select
- Under Network Utilities section click on
- It will give ping us back as long as we have internet connection.
- ssh your Raspberry-Pi device (make sure Raspberry-Pi is connected to your computer using RJ45 cable).
- Install the required packages
opkg update
opkg install kmod-usb-net-rndis
To establish a connection between your LAN cable originating from the router and your Raspberry Pi, follow these steps:
- Take the LAN cable from your router.
- Connect the LAN cable to a USB LAN adaptor.
- Plug the USB LAN adaptor into an available USB slot on your Raspberry Pi.
To establish a connection between your computer and Raspberry Pi using a LAN cable, follow these steps:
- Take the LAN cable.
- Connect one end of the LAN cable to the LAN port of your computer.
- Connect the other end of the LAN cable to the LAN port of your Raspberry Pi.
- Open browser and enter url: http://192.168.1.1/
- Click on drop down menu and select
- Click on Add new interface ...
- Create a new Interface with name <USB_4G> , select Device and Protocol
- Go to Interfaces » USB_4G » Firewall Settings Create / Assign firewall-zone Select <wanUSB_4G:>
- Select network/firewall Inside Zones section edit Select <USB_4G> in Covered networks.
Free Software, Hell Yeah!