Sample Header Ad - 728x90

Does Linux have a generic way to dynamically open ports? (Desktop)

1 vote
2 answers
78 views
By generic, I mean, mostly standard, i.e. not dependent on ufw or firewalld. What I am asking is if there is something akin to what you have on Windows, where if some game wishes to "Open to Lan" and current firewall doesn't allow it, you are prompted to allow those changes. In other words, is there some standard way a developer could make a GUI application for Linux which requests for a port to open for the remaining of the lifespan of the application? I am sure this is a problem that has been thought of before, but I can't find a solution that satisfy these requirements: - User is prompted for firewall change - Granted privilege is clearly scoped to said modification - Required trust in said application requesting privileges is minimized - Resting said modifications doesn't request privileges once again / Reset managed by system Even for a permanent change, I don't know of anything other than for the application to request full root privileges and then use iptables behind the scenes.
Asked by Mathias Sven (273 rep)
Jul 28, 2025, 09:50 PM
Last activity: Jul 29, 2025, 09:07 AM