10.10.: shell script

Asked by peter on 2011-02-14

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:
2011-02-16
Last query:
2011-02-16
Last reply:
2011-02-16

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.

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.

Hans Spaans (hspaans) said : #3

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

peter (peter-neuweiler) said : #4

Thanks!