10.10.: shell script

Asked by peter

Hi

I have the following shell script and it works.

echo 'Start the firewall'
echo '------------------'
sudo firestarter
read i

If I close the terminal also the firewall will be closed. The firewall should remain open if the terminal closes? What do I have to do?

Thanks in advance.
Peter

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu firestarter Edit question
Assignee:
No assignee Edit question
Solved by:
peter
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

The firewall is iptables, firestarter doesn't need to be running for the firewall to be up. Firestarter is ONLY a GUI to configuring iptables. Once it has been setup then firestarter doesn't need to run for it to be active, so your script isn't needed. All you have to do is run firestarter if you want to make changes to the configuration of the firewall. iptables is set to run as a service from the first day you installed the OS as well as in the liveCD.

Revision history for this message
peter (peter-neuweiler) said :
#2

Thanks for the info.

But if firestarter runs it blocks a lot of events. Why are these events not be considered by the iptables?

Thanks, man. I'm happy about your answers.

Revision history for this message
Hans Spaans (hspaans) said :
#3

Please consider switching to gufw instead of using Firestarter. The later is unmaintained and updates are not expected.

Revision history for this message
peter (peter-neuweiler) said :
#4

Thanks!