-   Linux - Software (
-   -   How to Start Firestarter From Command Line? (

edwin11 09-22-2006 02:21 PM

How to Start Firestarter From Command Line?
Hi guys,

OK, i know the command to start firestarter is just "firestarter", but i have some difficulties here...

Firstly, what i'm trying to do is to write a script to check ifconfig, then do ifdown and ifup if necessary, check ps aux, then start firestarter if necessary, and finally end the script. Hence, i do not want the command "firestarter" to block.

Right now, if i run "firestarter" from command line, then the firestarter panel appears, but the "firestarter" command blocks, for as long as firestarter is running.

i looked at the man pages for firestarter, and there are a couple of options that interest me, namely:
-s Start the firewall.
--start-hidden Start firestarter with the GUI not visible.

Strangely, if i run "firestarter -s", the command does not block. However, the firestarter panel does not appear either, and ps aux does not even indicate that firestarter is running! If i run "firestarter --start-hidden", then it behaves exactly as though i run just "firestarter", i.e. the command blocks and the panel appears on the desktop.

Advice, please?

TIA and Regards,

b0uncer 09-22-2006 02:27 PM

Well I've got the image that Firestarter is just a "front-end" of one kind to iptables, the Linux firewalling (etc.) system. So, the -s option will start the firewall as it says, but not Firestarter (which is just a tool for configuring the firewall) but iptables (and hopefully loads the rules you've saved).

Read iptables man page too, it helps. Firestarter is a good tool for a beginner, but if you'd like to learn more, I suggest reading iptables man page and documentation, as it is not difficult to use. On the contrary, I find it difficult to use any kind of front-end to iptables.

Actually what you should do with Firestarter, if I'm right, is configure your firewalling rules -- and after you've done that, run firestarter itself no more, but make it run (or run by yourself) iptables that does the job. Actually iptables firewalling "system", if you like, is built into the kernel, and the iptables command you find is a command-line tool to control the rules.

EDIT: iptables, the executable, can be used to add rules to different kinds of chains and/or create, edit and delete existing chains and so on. Three basic chains are there always (not deletable): INPUT, OUTPUT and FORWARD. You basically add rules to these chains, create more of them and thus work on packets that move around your system -- what Firestarter does (I don't use it, just figuring out) is give you a nice graphical user interface where you can pick up choices -- after this it forms the needed iptables commands from your choices, and using iptables saves them so they get loaded when you start your system (or should, at least) and the firewall works accordingly. iptables can be used for more than just firewalling, but that's what Firestarter is made for.

All times are GMT -5. The time now is 04:39 AM.