Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8051

Networking and servers • Re: Keeping IP of the device bindable after HotSpot is disabled

$
0
0
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.)
I'm not aware of a way to keep the IP address of a hotspot available when you shut down the hotspot.

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



Viewing all articles
Browse latest Browse all 8051

Trending Articles