I have bought a 4G hat for my raspberry pi 3B+ (the sim7600 waveshare for europe) and followed these instructions for setup. It is running the latest version of raspbian and I have internet on the raspberry through the USB interface (wwan0), which works perfectly.
However the next step for me is to setup a wifi hotspot and forward internet to other raspberry pi zeros. I followed setting up hotspot and similar posts like this or this but they all (most) involve ethernet connection. Also, documentation on configuring wwan0 for dhcpcd and dnsmasq or bridging that I could find are not very comprehensive.
I am relatively new and I got stuck in ip table rules and bridges and unable to setup for wwan0. Does somebody know how I should go about this?
Many thanks!
*I hope that I have all the relevant configuration files here.
/etc/network/interfaces
auto lo
iface lo inet loopback
allow-hotplug wwan0
iface wwan0 inet manual #could not start with static
allow hotplug wlan0
iface wlan0 inet manual #same, fails if I substitute with static keyword
address 192.168.4.1
netmask 255.255.255.0
network 192.24.1.255
broadcast 192.24.1.255
/etc/dnsmasq.conf
interface-wlan0
dhcp-range=192.168.4.2,192.168.4.20,255.255.255.0,24h
/etc/dhcpcd.conf
interface wlan0
static ip_adress=192.168.4.1/24
nohook wpa_supplicant
/etc/hostapd/hostapd.conf
interface=wlan0
driver=nl80211
ssid=MyId
hw_mode=g
channel=7
wmm_enabled=1
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_passphrase=password
wpa_pairwise=TKIP
rsn_pairwise=CCMP
denyinterfaces wlan0 … interface wlan0
is nonsense. If you randomly mix different unreferenced tutorials you can't expect anyone to debug the mess. – Milliways Jul 30 '19 at 11:07