Firewall status tray icon - firewallstate-2.1

Configuration wizards, scanners, remote desktop, etc.
Message
Author
User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#136 Post by tasmod »

Version 2.0 fixes Firewall ON/OFF in 5.2.8 and 5.2.9 as well as Slacko
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
MinHundHettePerro
Posts: 852
Joined: Thu 05 Feb 2009, 22:22
Location: SE

#137 Post by MinHundHettePerro »

Hello, tasmod :)!

Really like this application of yours; seen it/used it in many recent pups, where it's included by default.

I cannot find the sources for ver. 2.0 of the compiled file /usr/local/firewallstate/firewallstate, perhaps I missed the location of the sources by only reading this first page of the thread .........

Are the sources available for downloading somewhere?

Cheers :)/ MHHP
[color=green]Celeron 2.8 GHz, 1 GB, i82845, many ptns, modes 12, 13
Dual Xeon 3.2 GHz, 1 GB, nvidia quadro nvs 285[/color]
Slackos & 214X, ... and Q6xx
[color=darkred]Nämen, vaf....[/color] [color=green]ln -s /dev/null MHHP[/color]

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#138 Post by tasmod »

MHP,

Sorry missed your post.

I'm almost sure that the version 1.8 source was very close to v2.0 but to be sure I uploaded version 2.0 source.

Note that there are other files called but they are annotated in the source and available in the pet. They are gtk scripts that can be read in Geany etc.
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#139 Post by tasmod »

Version 2.1 posted.

Information window now updates when called. (So external IP report is correct)
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#140 Post by tasmod »

I was asked why the change.

Well, on startup firewallstate retrieves the external IP address and the internal LAN IP. Then stops accessing after placing them in /tmp, this saves further processing.

On a reboot this information is refreshed, no problem, the information is correct.
However, if, as I discovered later, your router drops out and then re-syncs it obtains a new external IP but your system is still running and hasn't rebooted, only your router.
Firewallstate IP checking is not re-run, so the information isn't updated and is incorrect.

I therefore added a call when the right click menu item 'Information' is clicked, to re-run the IP scripts again, thus refreshing the information.

Funny how sometimes an event doesn't take place for quite a while to show up a 'bug' :lol:
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
kickstart
Posts: 92
Joined: Wed 09 Mar 2011, 23:59

#141 Post by kickstart »

Hi Tasmod

For your info I have just installed the version 2.1 PET in Racy 522.

No problems with the installation and on reboot the tray icon appears and everything works fine on the right click.

Many thanks for your efforts, this is a really useful PET for Puppies like Racy that don't have any firewall status indication.

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#142 Post by jpeps »

tasmod wrote:I was asked why the change.

Well, on startup firewallstate retrieves the external IP address and the internal LAN IP. Then stops accessing after placing them in /tmp, this saves further processing.
....

I therefore added a call when the right click menu item 'Information' is clicked, to re-run the IP scripts again, thus refreshing the information.

Funny how sometimes an event doesn't take place for quite a while to show up a 'bug' :lol:
For that reason I opted for a static icon on my tray instead of a running process...with buttons for turning the firewall off/on.
Attachments
myfirewall.png
(14.99 KiB) Downloaded 1353 times
myfirewall.pet
(1.13 KiB) Downloaded 1002 times

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#143 Post by Argolance »

Hello,
... I like this little and very useful program...
Question: why is it only in English? :shock:
I already localized simple external firewallstate-2.1 scripts (for Toutou Linux, French version of Puppy)... could modify chains directly inside source files then compiling, but I think it would be lost time. The best indeed should be a gettext localized main script to get the right click menu translated.
Now that Barry is seriously working for Puppy to be "deeply" localized, should not this (pleeeeeease!), be done systematically from the beginning by programs conceptors? :wink:

Cordialement.

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#144 Post by tasmod »

Argolance,

Simple and honest answer : I don't know how :oops:

I will however look into doing it.

Rob
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#145 Post by Argolance »

Hello,
...Great! :D
It should not be so difficult (?)!
Just a suggestion: Inside the right-click menu, are Psync, Date and time and Internet connexion wizard really convenient here? These have, by all appearances, directly nothing to do with the Firewall settings and seem to make double-use with some other applets?

Cordialement!

User avatar
tuxtoo
Posts: 173
Joined: Tue 14 Dec 2010, 19:45
Location: Knaresborough, North Yorkshire, UK
Contact:

Firewallstate for puppy-412

#146 Post by tuxtoo »

Does anyone know if there is a version that works with Puppy-412 and where I can geta hold of it.

I know 412 is out of date but I like it. So please don't give me a hard time.
Puppy Linux search engine.

[b][url]http://wellminded.net63.net/[/url][/b] Suitable for older browsers.

Mirror [b][url]https://puppysearch.neocities.org[/url][/b]

rodin.s
Posts: 344
Joined: Wed 22 Sep 2010, 19:50
Location: Ukraine

i18n for firewallstate

#147 Post by rodin.s »

I am working on Russian version of Slacko so I have made i18n-ed firewallstate. Firewallgtk can be translated using MoManager, the pot-file for binary firewallstate is in /usr/share/doc/nls/firewallstate. I also put Russian mo-files in /usr/share/locale/ru/LC_MESSAGES.
File /usr/share/applications/firewallstate.desktop also has 'Name[ru]' line for Russian. But I don't understand what should it point to. In original it points to directory.
I have also changed line for locale detection:

Code: Select all

locale | grep 'LANG=' | cut -d '=' -f2
Attachments
firewallstate-2.2.pet
i18n-ed firewallstate
(16.04 KiB) Downloaded 944 times
firewallstate-2.0.c.gz
source file with gettext
(3.67 KiB) Downloaded 879 times

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#148 Post by Argolance »

Thank you...
Attachments
firewallstate_fr_po_mo-files.tar.gz
French Firewallgtk and firewallstate po and mo files
(1.78 KiB) Downloaded 852 times

User avatar
James186282
Posts: 270
Joined: Tue 08 Sep 2009, 19:14
Location: Minnesota

#149 Post by James186282 »

I tried to close all the ports in the firewall supplied on the 5.6 Distro but I flunking the shields up port tests on GRC.com Is there something I should be doing? I tried custom and selected all ports.

The Information display for the firewall seems to have a bug. I should learn how to post a screen shot but in short this is what I get.

Your external IP is _________ blank space.
PC network address 127.0.0.1

I have good IP addresses (connections.) I checked with iw and ifconfig and they were in th 10.0.0.x range (Which was the router I was trying to connect to. I have another machine (Attached to a different router) and the firewall does the same thing. This is a tower (a gateway 831GM)it connecting ok to the standard 192.168.x.x. IP range My Wife's laptop laptop is running slacko 5.5 on it with the same issues *another T60 Thinkpad.

I hope this is helpful I really appreciate the effort so many of you put in for such an amazing system.
Science is what we understand well enough to explain to a computer.
Art is everything else we do.
[i]Donald Knuth [/i]

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#150 Post by tasmod »

Hi James,

The problem of the blank IP is quite simple.

The addresses you quote are internal router addresses.

Firewallstate IP information uses an external site to send back the External IP info. On the "other side" of the router, your ISP connection.

Rob
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#151 Post by OscarTalks »

01micko recently published a firewallstate-2.5 source package in another thread, but it is set up for the new autostart mechanism. I am no expert, but I was having a play around with some modifications to the scripts and the source in order to make a version for the current and recent (non Woof-CE) Puppies which use /root/Startup

I have also noticed that in many cases if you click the menu entry multiple times you get multiple instances of the icon/applet in the tray. My script now looks to see if firewallstate is already running and if so it just gives a message box and does not launch another instance. Others may be able to come up with something more sophisticated.

Apart from this, what I have so far is the nice new green and red shield tray icons. The icon on the exit button of the Firewall On/Off dialog box is fixed. You can start it from console with the command firewallstate (is this a good idea?). It restarts if you reboot or restart X but if you right-click and exit it won't then restart unless you do so manually from the menu or from console.

Everything seems to be working as it should and of course this version does not call out to external hosts to determine your WAN IP. Apparently some people are concerned about that.

In case anyone wants to take a look or give it a try I will name it as version 2.5.1 and upload here:-
http://smokey01.com/OscarTalks

Probably best to remove the old files and folders (if present) before installing, eg:-
/root/Startup/firewallstaterun
/usr/local/firewallgtk (directory and contents)
/usr/local/firewallstate (directory and contents)
Attachments
firewall-on-off-dialog.jpg
Icons all display in Firewall ON / OFF Dialog
(22.5 KiB) Downloaded 1249 times
already-running.jpg
Message Box instead of multiple instances
(10.13 KiB) Downloaded 1250 times
Oscar in England
Image

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#152 Post by Smithy »

Very nice.
Would it be difficult to be able to use or make and save presets for the firewall?

Even if it was just sh files on a basic level, it might be good for different setups that one could change at will.

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#153 Post by greengeek »

OscarTalks wrote:01micko recently published a firewallstate-2.5 source package in another thread, but it is set up for the new autostart mechanism. I am no expert, but I was having a play around with some modifications to the scripts and the source in order to make a version for the current and recent (non Woof-CE) Puppies which use /root/Startup
Hi Oscar, does your version have the ability for autostarting as you've mentioned exists in the 01micko version, or did you remove that ability. I'm quite keen on having the firewall autostart function combined with the 'don't connect to external hosts' thing you've incorporated here.

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#154 Post by OscarTalks »

My version autostarts via the file in /root/Startup as normal.
Only the very recent Woof-CE Puppies will have the new autostart mechanism.
Oscar in England
Image

User avatar
tuxtoo
Posts: 173
Joined: Tue 14 Dec 2010, 19:45
Location: Knaresborough, North Yorkshire, UK
Contact:

#155 Post by tuxtoo »

I asked almost two years ago on this thread (page 10) if there is a version that works on Puppy-412. I have eventually given up waiting and just thought I would ask again.

v1.9 works up to a point, in that the tray icon won't change to 'On'

Any ideas . . . anyone . . .
Puppy Linux search engine.

[b][url]http://wellminded.net63.net/[/url][/b] Suitable for older browsers.

Mirror [b][url]https://puppysearch.neocities.org[/url][/b]

Post Reply