I'm working on building up a web-based firewall configuration tool for RedHat 9(using iptables) that will enable user to configure Linux firewall( as the default gateway for an internal network). I've created some web forms to manipulate user inputs. Is anyone know how to pass user's inputs back to the Linux server so that the rules for iptables will based on user's options?
Besides, I've grabbed user's options from the web form and inserted a string of command in a text file, eg: iptables -L -v --line-numbers . This string of command is saved in a file named "testing.txt". How can I execute this text file so that the rules in iptables will be shown in the webpage according to user's options?
ANy help would be great!