I'm not aware of a way to keep the IP address of a hotspot available when you shut down the hotspot.I have a Raspberry Pi that hosts a wireless hotspot. On that network the device gets the IP of 10.42.0.1. I am binding certain services to that IP to be able to access them via the wireless network.
I want to be able to shut down the wireless hotspot without crashing all the services that normally work via the wireless connection. What is the least configuration-heavy way of achieving this? (I do not want to bind to 0.0.0.0, since it will expose the services on the wrong network.)
My suggestion would be to bind to 0.0.0.0 and establish an nftables ruleset that blocks the services on the network that you don't want to access them. Yes, iptables still works, but it's deprecated and going away at some point.
Statistics: Posted by bls — Sun Aug 03, 2025 1:58 pm