Everything posted by richardk
-
Network config for an IoT wifi server
Well, I've gotten it working - and a crash course in the Linux network config without config tools. Install Armbian Minimal/IOT. Connect to the internet via Ethernet (you'll be messing up WiFi for a while) Do apt update; apt upgrade. apt install your favorite text-screen editor (emacs, vim) apt install other packages you might need. I needed avahi-daemon avahi-utils libnss-mdns apt install hostapd isc-dhcp-server. hostapd serves WiFi, dhcp-server serves IP addresses to WiFi clients. systemctl mask wpa_supplicant, stop wpa_supplicant. It's not used in an access point, but you can't uninstall it. Now you heat up that text editor. New file /etc/netplan/10-config.yaml. define an ethernet interface and a wifi interface. Give eth a static IP matching the dynamic one your router gave you. Or don't define it; I left mine in, I couldn't say that I'd never need another package. Give wlan a static IP range that doesn't overlap eth. Also, delete /etc/netplan/10-dhcp-all-interfaces.yaml. /etc/hostapd/hostapd.conf, access stuff (ssid, password, 802.11a/b/g/n, channels) /etc/sysconf.d/99-forwarding.conf (net.ipv4.ip_forward=1) /etc/dhcp/dhcpd.conf to define IP address ranges Don't use dnsmasq for anything. I probably forgot some things. The big lesson learned is, no config tools will help you, not armbian-config, not nmcli/nmtui. It's all in text config files.
- Orange Pi Zero 3, WIFI AP mode: protocol 0000 is buggy, dev wlan0
-
Network config for an IoT wifi server
That's the thing, there's no internet sharing, 'cause there's no internet. That's what makes this weird. There's Armbian on an Orange Pi, and there's a dozen ESP32 gadgets. The Pi talks with the gadgets. All done. Last year I put a router in the mix so I wouldn't have to deal with this weird config. The wifi clients talked just to each other, and nothing was plugged in the Ethernet. This year the router died (it was cheap), and I thought I'd just use the Pi instead.
-
Network config for an IoT wifi server
Thank you very much, that pretty much filled in my gaps! (BTW I tested on a VirtualBox VM bound to a WiFi USB dongle. Being able to start over from a VM copy sped things up.)
-
Network config for an IoT wifi server
I have a group of ESP32 wireless gadgets that need to connect to a managed WiFi network. I want to configure a small board to provide managed WiFi on an isolated network. No Internet, no Ethernet, just the controller to the gadgets. I don't want bridging, I'm not NAT-ing. No DNS of any kind is needed, I'm addressing the ESP32 gadgets using mDNS/Zeroconf. I'm just not having a good time figuring out how to configure Armbian to do this. I've chosen an Orange Pi 3 LTS, because I have one, and it has an external antenna. I've loaded up Armbian 6.18.44, Ubuntu Resolute, "minimal". I followed a few guides for server configuration (I thought Id start with static Ethernet) but when I get WiFi involved they all talk about isolation and routing Internet traffic. I must be missing something. Can anyone point to a good reading resource? Thanks.