Question: In linux, write a script that accepts a port number from the user. The script should then use that port number and use it in
In linux, write a script that accepts a port number from the user. The script should then use that port number and use it in a command to enable it on the firewall. The script should then let the user know if the command succeeded by printing a message based on the commands output (hint: the CentOS firewall configuration command prints the word success if the change worked). If the change succeeds, the script should then reload the firewall to make the change take effect.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
