I currently got a script running on a Debian server. It outputs the IPTables rules present at the time, in plain text format.
However, I got a separate webserver running, with a kind of CMS on it. What I want to do, is make a page where the output of that very same script gets shown. So, a HTML page needs to be able to execute the script and show the user the output. How can this be done in the most efficient way?
I'm thinking of setting up a SSH tunnel, and opening it when the user opens the page.