We have implemented, on the Raspberry Pi 4B, a L3 "pseudo-bridge" using Proxy ARP (parprouted) under the static configuration guidance given by user Ingo found here to provide a local database to our field systems that will synchronize with the outside world. Our systems run Buster. The system seems to be working well, but I want to make sure that we're using it as intended by describing some of the nuances/issues we seem to be having. I'll start by describing our topology:
┌─proxy arp─┐ UPLINK
wired V V wifi wan
a few hosts <─────────> (eth0)RPi(wlan0) <~.~.~.~.> hotspot <---> INTERNET
\ \
(STATIC IP for easy id'ing) (STATIC IP for easy id'ing)
I will also mention we use multiple RPi's that will reach out to this hotspot for outside connectivity. Each RPi serves some equipment that needs to get linked up, but the equipment only has wired capability. This is not the only reason we do it, each piece of equipment is very far away from the hotspot and we utilize 6dBi gain omnidirectional antennas going into our ext-antenna WiFi-to-USB dongles.
The issues we're having are 2 in particular:
1.) If the hotspot is not up, we can't ping the Raspberry Pi.
2.) IF we run a long stretch of cable to the RPi as a hard-wired contingency plan due to poor WiFi reception, the RPi rarely handles this smoothly, often resulting in poor traffic through eth0 while it still attempts to link through wlan0, despite the poor connection. I realize the bridge ARP functionality makes these one in the same, so perhaps that could complicate the "fail-over" behavior of the NICs.
I suspect one of the issues might be in the way our Gateway or DNS settings are configuring within /etc/systemd/network/08-wlan0.network where we specify our provisioning script as follows:
cat > /etc/systemd/network/08-wlan0.network <<EOF
[Match]
Name=wlan0
[Network]
Address=192.168.100.200/16
Gateway=192.168.0.1
DNS=8.8.8.8
IPForward=yes
EOF
If such a gateway is included, in this case our Hotspot, would this pose issues downing the RPi when the Hotspot is down?
I also read somewhere that if Promiscuous mode is not enabled, then the pseudo-bridge will not function correctly. Should we be adding the following on Buster?
ip link set wlan0 promisc on
Thanks for your help.
iperf?