Search for UFW Firewall tutorial, if on Linux. If you are on a mobile device, dump it for GrapheneOS Pixel phone so u have final say on all software getting installed on it. Its ok to use other mobile devices for testing with small amounts of BTC or sats.