

I’m not sure of the details about the situation in Iran, but from my understanding, it seems that it would be much safer to set up a server outside the country that’s run by you and others inside the country. It’s fairly easy to set up virtual private servers, although you may need to arrange payment outside the country.
That would be much safer than hosting it with the physical infrastructure inside your borders. If you’re hosting the physical infrastructure, it makes it much easier to locate. If the server is not in Iran, then it may be difficult or impossible for the government to seize it and access the contents.
There are people on this site who are far more expert than I when it comes to network security. Follow their feedback and you may even find someone willing to partner with you to help set it up.















There are also mesh systems that are worth looking into, if it’s possible to get access to the hardware for communication that is potentially harder for the government to track.