FireLog v1.2.3 -- updated (Aug 20th)

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
NoobieDoobieDo
Posts: 60
Joined: Mon 14 Nov 2005, 19:47

FireLog v1.2.3 -- updated (Aug 20th)

#1 Post by NoobieDoobieDo »

Updated : FireLog v1.2.3 released 4/19/2007

Download FireLog

Introducing the first iptables / firewall / netstat frontend for Puppy Linux !

This is my FIRST SCRIPT , so go easy on me :)

Run firelog by typing firelog at the command line.

Firelog official homepage

Many updates have been made since v1.2.1 !

Image
Download FireLog

FireLog v1.2 Features

Easy access to :

- Start or stop rc.firewall
- View static or real time filewall statistics
- View firewall settings
- Save firewall settings

- Add firewall rules
- Delete firewall settings
- Restore firewall settings

- Change iptables chain policies
- View netstat info

- start / stop ethernet connection
- reset the DHCP daemon
- ping / traceroute

- logs important actions

Installation :

1. Download FireLog
2. Move firelog to /sbin/ or something like that
3. Make sure it is executable with "chmod +x"

Now type "firelog" at the console and the interface you see pictured above should load.

edit : please report all problems here
Last edited by NoobieDoobieDo on Sun 16 Sep 2007, 20:22, edited 9 times in total.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#2 Post by Lobster »

:) A lot of people will be very happy with this. I do nothing more than use the firewall wizard and I think my router has a firewall too.

What added facilities does this offer? What sort of situation is this a good idea for? I am asking because I know very little about firewalls. When I was still using Windows, the percentage of time (I estimate 30%) was spent on running security progs. The ones I remember are AVG, Spybot etc but there were many more . . .
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
NoobieDoobieDo
Posts: 60
Joined: Mon 14 Nov 2005, 19:47

#3 Post by NoobieDoobieDo »

Note : The HTML live firewall statistics render better in Opera than in Firefox. This is because firefox ignores the spaces in the text file even when using the <pre> tag

FireLog is good for anyone using the Puppy Linux firewall or anyone who wants to use the Puppy Linux firewall.

It provides the following :

- Easy way to make sure your firewall is up (options : j, k & L)
- Easy way to start / stop the firewall (options : a, b)
- Easy way to view firewall statistics in realtime (options : k & L)
- Easy way to save the firewall settings (options: f,g)
- Easy way to restore the firewall settings (option: i)
- Easy way to view active network connections (options: m, n and the browser based live stats)
- Easy way to add/delete firewall rules & change policies (option : e)

Like a lot of linux programs anything FireLog does can be done by you via the command line - this just makes it easier and prettier :)

KJ
Posts: 176
Joined: Thu 20 Jul 2006, 13:29
Location: Above sea level .. about 320m

FireLog

#4 Post by KJ »

I think this will be a great addition to the puppy family but I am a real newbie on firewall admin (and most things Linux).

I installed FireLog on Puppy 109CE and Puppy 212. FireLog on Puppy 109CE seemed to install and Pupget indicates that it is installed but I see only a flash of a black window and nothing more when I attempt to run it. However, FireLog seems to run great on the 212 install.

The ShieldsUp site indicates that my 212 is responding to pings .... how do I turn this function off?

Thanks,

KJ

User avatar
NoobieDoobieDo
Posts: 60
Joined: Mon 14 Nov 2005, 19:47

#5 Post by NoobieDoobieDo »

Anytime you run a program and all you get is a black window flash it most likely means the program created an error.

Try to run FireLog from the command line to see what the error is - I`ll get back to you on the other stuff later.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#6 Post by BarryK »

NoobieDoobieDo wrote:Note : The HTML live firewall statistics render better in Opera than in Firefox. This is because firefox ignores the spaces in the text file even when using the <pre> tag
Can you substitute hard-spaces? HTML code: &nbsp;

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

Connection sharing

#7 Post by raffy »

Can it do Internet connection sharing? (using 2 LAN cards, that is)
Puppy user since Oct 2004. Want FreeOffice? [url=http://puppylinux.info/topic/freeoffice-2012-sfs]Get the sfs (English only)[/url].

User avatar
NoobieDoobieDo
Posts: 60
Joined: Mon 14 Nov 2005, 19:47

#8 Post by NoobieDoobieDo »

BarryK wrote:
NoobieDoobieDo wrote:Note : The HTML live firewall statistics render better in Opera than in Firefox. This is because firefox ignores the spaces in the text file even when using the <pre> tag
Can you substitute hard-spaces? HTML code: &nbsp;
Tried that, firefox still breaks it. There is a section in firelog.sed that can be uncommented which will add underscores instead of spaces to produce proper spacing on "broken" browsers.

User avatar
NoobieDoobieDo
Posts: 60
Joined: Mon 14 Nov 2005, 19:47

Re: Connection sharing

#9 Post by NoobieDoobieDo »

raffy wrote:Can it do Internet connection sharing? (using 2 LAN cards, that is)
Currently there aren't any ICS features built in, sorry.

KJ
Posts: 176
Joined: Thu 20 Jul 2006, 13:29
Location: Above sea level .. about 320m

FireLog

#10 Post by KJ »

NoobieDoobieDo

When I fired up Puppy 109CE this evening and tried FireLog from the dotpup icon I saw the black screen flash again. When I ROX to /usr/local/firelog and type "sh firelog" in the xterm window, fireLog starts logging in my browser window but I do not get the script window with your other options. I am not a console person .... perhaps I am not useing the proper commands. I see no errors listed just the following in my xterm window.

# sh firelog

=============================================
| Trying to load default browser with file |
| /usr/local/firelog/firelog.html |
=============================================
| Starting statistics gathering loop |
=============================================
| Press CTRL + C to exit. |
=============================================

Happy New Year,

KJ

KJ
Posts: 176
Joined: Thu 20 Jul 2006, 13:29
Location: Above sea level .. about 320m

FireLog

#11 Post by KJ »

NoobieDoobieDo

I also get this error message when I'm in Puppy 109CE. Hope that this helps.


# sh firelog.sh
firelog.sh: 65: function: not found
firelog.sh: 95: Syntax error: "}" unexpected
#

KJ

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

Internet Connection Sharing

#12 Post by ecomoney »

I got excited when I saw this because internet connection sharing with a firewall feature built in would be a godsend, its a major feature that puppy is lacking (the built in firewall wizard seems to have a bug) that would put a lot of older pcs to use as useable firewall computers that would give many windoze users their first taste of Linux. Its been requested time and time again and would be very simple to implement by someone with just a minimal amount of networking knowledge.

Please Please Please Lobster, make it do this too in the next version!!!!

Heres something that may help

http://www.murga-linux.com/puppy/viewto ... 7&start=15
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
NoobieDoobieDo
Posts: 60
Joined: Mon 14 Nov 2005, 19:47

Re: FireLog

#13 Post by NoobieDoobieDo »

KJ wrote:NoobieDoobieDo

When I fired up Puppy 109CE this evening and tried FireLog from the dotpup icon I saw the black screen flash again. When I ROX to /usr/local/firelog and type "sh firelog" in the xterm window, fireLog starts logging in my browser window but I do not get the script window with your other options. I am not a console person .... perhaps I am not useing the proper commands. I see no errors listed just the following in my xterm window.

# sh firelog

=============================================
| Trying to load default browser with file |
| /usr/local/firelog/firelog.html |
=============================================
| Starting statistics gathering loop |
=============================================
| Press CTRL + C to exit. |
=============================================

Happy New Year,

KJ
Hi,

Sorry to get back to you so late.

Try this at the prompt :

sh firelog.sh

Thanks

KJ
Posts: 176
Joined: Thu 20 Jul 2006, 13:29
Location: Above sea level .. about 320m

FireLog

#14 Post by KJ »

NoobieDoobieDo

This is what I get in the xterm window opened n the FireLog folder

# sh firelog.sh
firelog.sh: 65: function: not found
firelog.sh: 95: Syntax error: "}" unexpected
#

When I use 'xrun commandline' with directory set as '/usr/local/firelog' and 'command' as 'sh firelog.sh' I see no output to the screen


I tried a fresh installed dotpup on a clean Puppy 109CE booted direct from the CD (no Pup001) and got the same behaviors as listed above.

109CE came with Firefox 1.5.0.3 as default browser ....

May 2007 be kind to you and yours

KJ

User avatar
NoobieDoobieDo
Posts: 60
Joined: Mon 14 Nov 2005, 19:47

Re: FireLog

#15 Post by NoobieDoobieDo »

KJ wrote:NoobieDoobieDo

This is what I get in the xterm window opened n the FireLog folder

# sh firelog.sh
firelog.sh: 65: function: not found
firelog.sh: 95: Syntax error: "}" unexpected
#

When I use 'xrun commandline' with directory set as '/usr/local/firelog' and 'command' as 'sh firelog.sh' I see no output to the screen


I tried a fresh installed dotpup on a clean Puppy 109CE booted direct from the CD (no Pup001) and got the same behaviors as listed above.

109CE came with Firefox 1.5.0.3 as default browser ....

May 2007 be kind to you and yours

KJ
Hi...

I don't know enough about bash/linux scripting to understand the problem.

Line 65 is the begining of a function in the program. Each function in the program looks like this :

function thing_name {
code stuff
}

So I'm unsure as to why older versions of puppy are not able to understand the "function" operator.

Also .. line 95 is merely the end of the function - nothing special there ....

Sorry i can't be of more help . Maybe someone who understands puppy and bash scripting better can find an easy work around for this. Later on I`ll try to DL your version of puppy linux and play with it to see if I can get it to work..

Best wishes

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#16 Post by BarryK »

'function' is a bash-specific thing. Older puppies use Busybox Ash which does not understand 'function'.
The solution is simple -- remove 'function', do it this way:

Code: Select all

thing_name() {

}
...works in both.

User avatar
NoobieDoobieDo
Posts: 60
Joined: Mon 14 Nov 2005, 19:47

#17 Post by NoobieDoobieDo »

Ah IC .. thank you very much .. I'll be updating this soon :)

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

Re: Internet Connection Sharing

#18 Post by Lobster »

Please Please Please Lobster, make it do this too in the next version!!!!
Well I hope it finds its way in. That is up to NoobieDoobieDo (firewall code creator) and Barry (main developer and creator of Puppy). I would also hope those with an interest in security, test and comment

:)

What is interesting is how many Puppy progs are first time efforts. MUT and JWM configurator come to mind.

Amish is working on a Puppy Basic tutorial and
the Rute guide is one of the best ways to learn scripting
http://rute.2038bug.com/index.html.gz
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

KJ
Posts: 176
Joined: Thu 20 Jul 2006, 13:29
Location: Above sea level .. about 320m

Firelog updated

#19 Post by KJ »

Firelog still doesn't run on Puppy 109CE. I tried it on a clean CD load without a pup001 and Got the following screen that slowly flashes and will not allow use of options except (e) exit. Didn't try it on a Puppy 2.x yet .... will do later.


\e[32m============================================\e[0m
\e[31m| FireLog |v1.1|\e[0m
\e[32m============================================\e[0m


\e[33mRC.FIREWALL\e[0m
=========================================
| (a) --- Start rc.firewall |
| (b) --- Stop rc.firewall |
=========================================

\e[33mIP TABLES\e[0m
=========================================
| (c) --- Add rule |
| (d) --- Delete rule |
| (e) --- Change chain policy |
| |
| (f) --- Save iptables settings |
| (g) --- Backup iptable settings |
| (h) --- Flush iptables settings |
| (i) --- Restore iptables settings |
| |
| (j) --- Show settings |
| (k) --- Show statistics |
| (l) --- Show live statistics |
=========================================

\e[33mOther\e[0m
=========================================
| (m) --- Netstat (servers + etc) |
| (n) --- Netstat (only servers) |
| (o) --- Netstat (tcp only) |
| (p) --- Netstat (udp only) |
| (q) --- Netstat (both) |
=========================================
e(x)it [F1] Help

\e[32m#\e[0mread: 815: Illegal option -n


KJ

User avatar
NoobieDoobieDo
Posts: 60
Joined: Mon 14 Nov 2005, 19:47

#20 Post by NoobieDoobieDo »

Thanks for the update .. it appears the older puppy version doesn't support colors at the prompt and doesn't support reading only 1 char of input.

I'll retool it and upload a patched version later tonight

edit : I'll probably have 2 versions available for download

1 for new puppy releases (the current version)
1 for old puppy releases (the retooled version)

Post Reply