• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

[As Good As Solved!] Watchguard Firebox Arm/Disarm LED

Scheduled Pinned Locked Moved Hardware
128 Posts 22 Posters 97.6k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    brcisna
    last edited by Feb 20, 2011, 11:51 PM

    stephen,

    I will have to look at my WG FB. I am thinking mine is not the 'e' suffix? Doesn't the 'e' suffixed WG FB's have the gigE ethernet?
    Mine only has 10/100 nics in it. I should know what the model is too?:(.
    Won't know for a couple days,when I get back to work. I'll give your prog a spin regardless and report.
    I guess,I'm not real clear. Does your prog do the 'native' green to red routine at bootup,when everything is up, ,or is it simply capable of you manually toggling the led to do whatever you want it to?

    thanks,
    Barry

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Mar 12, 2011, 6:13 PM Feb 21, 2011, 1:29 AM

      Hmm, x550 no e?
      Be interesting to see if it detects it.
      At the moment the program is 'manual' only.
      It's easy to put a bash script in /usr/local/etc/rc.d to make it go green at the end of boot.

      Steve

      Edit:
      I can't find any mention of the x550 on Watchguard's website, but a lot of the good information is hidden away. The models I haven't yet any gpio information on are:
      X-Peak-E; almost certainly the same as the X-Core-E but with more ram, faster CPU and vpn card.
      SSL-100; looks like an X550E with different software, maybe an encryption card, 2GB ram!
      SSL-500/1000; also same as X550E.
      SSL-Core; looks like an X-Core but has different software using the harddisk bay!

      All the other newer models are still way too valuable to show up on Ebay!  ::)

      Edit: X-Peak-E confirmed working. Same board as the X-Core-E.

      1 Reply Last reply Reply Quote 0
      • B
        brcisna
        last edited by Feb 21, 2011, 2:34 PM

        stephenw10,

        I miscombobulated on the model number. My FB is x500 ( no 'e').
        I believe this is/was the first generation 1u cased FB. It has the 1.2GHZ celeron cpu,FYI.
        I would guess the mobo is significantly different than the board you were testing on.
        The second gen 1u cased FB's were numbered x550e,x750e,etc,I believe the 'e' designates gigE nics?
        In three-four days ill down your code and try it on this box and file a report,,,:)
        FWIW. This simple box does handle two 3mb up/down connections with about 350 pc's and 1000 users,(possible)
        Using squid,squidGuard,Lightsquid, load balance,failover.

        Take Care,
        Barry

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Feb 21, 2011, 3:32 PM

          X500 (all the X-Core boxes) have been confirmed working. No off mode for the led for some reason.

          Steve

          1 Reply Last reply Reply Quote 0
          • H
            hmeister
            last edited by May 3, 2011, 1:44 PM

            @stephenw10:

            Here is the new program incorporating all the new values for the X-Core.
            Obviously rename it WGXepc (remove the .png extension). Copy it to your box and chmod it to 0755. Run it!  ;D

            Because the new memory locations were quite high I felt it would be dangerous to simply write all the values on every box, which what the previous programs did. This new one tries to find out which Firebox model it's running on by reading the gpio_sel register and comparing it with known values. It works fine for me here on the three boxes I've tested it on but I don't have an X-Core and I can imagine that a different bios version might cause detection problems. Deal with that if it happens. Hopefully this might stop people randomly installing it on any box and messing with some important setting!  ::)

            It seems to run fine on 1.2.3 and 2.0Beta5.

            Steve

            Steve - what syntax do I use when I copy this to the /tmp dir. to run this? (yes-will rename it first!)
            thx
            H.

            Best Regards;
            H.

            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by May 3, 2011, 2:22 PM May 3, 2011, 2:18 PM

              You can use the upload feature in the web gui to copy it /tmp. However /tmp only exists in memory so you have to move it somewhere else if you want it to survive a reboot.
              It's up to you where you put it but /usr/local/bin seems good. Since you are running a full install you shouldn't have any problems with a read-only filesystem.
              You can use WinSCP (if you're running Windows) to copy the file directly to /usr/local/bin.

              Then you can put a script in /usr/local/etc/rc.d that runs on startup.
              Here's mine, called WGXepc.sh

              
              #!/bin/sh
              #
              /usr/local/bin/WGXepc -l green
              

              Steve

              Edit: And make sure the file permissions are set to 0755 or it won't run. You can do this from WinSCP or from the command line:

              
              chmod 0755 /usr/local/bin/WGXepc
              
              
              1 Reply Last reply Reply Quote 0
              • H
                hmeister
                last edited by May 3, 2011, 2:31 PM

                Steve…
                Thanks - will set this up now...
                H.

                Best Regards;
                H.

                1 Reply Last reply Reply Quote 0
                • H
                  hmeister
                  last edited by May 3, 2011, 4:40 PM

                  @stephenw10:

                  You can use the upload feature in the web gui to copy it /tmp. However /tmp only exists in memory so you have to move it somewhere else if you want it to survive a reboot.
                  It's up to you where you put it but /usr/local/bin seems good. Since you are running a full install you shouldn't have any problems with a read-only filesystem.
                  You can use WinSCP (if you're running Windows) to copy the file directly to /usr/local/bin.

                  Then you can put a script in /usr/local/etc/rc.d that runs on startup.
                  Here's mine, called WGXepc.sh

                  
                  #!/bin/sh
                  #
                  /usr/local/bin/WGXepc -l green
                  

                  Steve

                  Edit: And make sure the file permissions are set to 0755 or it won't run. You can do this from WinSCP or from the command line:

                  
                  chmod 0755 /usr/local/bin/WGXepc
                  
                  

                  Steve - working great!

                  Best Regards;
                  H.

                  1 Reply Last reply Reply Quote 0
                  • S
                    stephenw10 Netgate Administrator
                    last edited by May 3, 2011, 9:09 PM

                    Good to hear.  ;D

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • F
                      fastcon68
                      last edited by May 29, 2011, 3:15 AM

                      I added you LED package and it works perfectly.  I got both your LCD package and your ARM/Disarm light package running and they are working great.

                      Since the lcd backlight is not working correctly, I was wondering if I could open the case up and take a USB light and add it internally so you could see the display.  How do you think it would be to do that.
                      RC

                      1 Reply Last reply Reply Quote 0
                      • W
                        woc38
                        last edited by Jul 14, 2011, 7:55 PM

                        Steve, just to let you know: your arm/disarm LED script is working fine on my Core X700! Thanks!

                        pfSense 2.0-RC3 (i386) built on Thu Jul 14 02:02:34 EDT 2011 (nanobsd 4g) running on a 4GB Hitachi microdrive.

                        1 Reply Last reply Reply Quote 0
                        • S
                          stephenw10 Netgate Administrator
                          last edited by Jul 15, 2011, 10:12 PM

                          Thanks for the feedback.  ;D

                          Steve

                          1 Reply Last reply Reply Quote 0
                          • D
                            dmitche
                            last edited by Sep 13, 2011, 7:55 PM

                            For those who are complete noobs at this like me, I thought I would add two pointers to help you out.

                            • In Windows, to use WinSCP, your login should be root, admin never worked for me. root will allow you to change file permissions.

                            • You also must give your WGXepc.sh startup script file execute privileges. I used 0755 again like WGXepc.

                            Don't forget the following post to display different settings:
                            http://forum.pfsense.org/index.php/topic,7920.msg135626.html#msg135626

                            Thanks stephenw10!

                            1 Reply Last reply Reply Quote 0
                            • S
                              stephenw10 Netgate Administrator
                              last edited by Sep 13, 2011, 8:08 PM

                              @dmitche:

                              In Windows, to use WinSCP, your login should be root, admin never worked for me. root will allow you to change file permissions.

                              Good point, I've become too used to logging in as root. A bad habit.
                              The reason is that the admin account always shows the menu when you log in via ssh, root does not have to.

                              Steve

                              1 Reply Last reply Reply Quote 0
                              • S
                                stephenw10 Netgate Administrator
                                last edited by Dec 7, 2011, 5:15 PM

                                Hmm I seem to omitted to attach the source for this.  :-[
                                Not very open.

                                Steve

                                WGXepc.c.png

                                1 Reply Last reply Reply Quote 0
                                • B
                                  bryansxviper
                                  last edited by Jan 31, 2012, 3:03 AM

                                  Yep!

                                  I am a new pfsense user and also have a firebox x700. Just did the led fix and its working great. Running 4GB CF card with pfsense 2.0.1-Release.

                                  Thanks.

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    stephenw10 Netgate Administrator
                                    last edited by Jan 31, 2012, 10:54 AM

                                    Another firebox resurrected.  ;D
                                    With any luck we might be able to get this included with the lcd driver soon. Stuck on some bugs at the moment though. I'll post here when things are closer to working.

                                    Steve

                                    1 Reply Last reply Reply Quote 0
                                    • U
                                      Unubtanium
                                      last edited by Feb 1, 2012, 11:20 AM Feb 1, 2012, 10:34 AM

                                      @stephenw10:

                                      Another firebox resurrected.  ;D
                                      With any luck we might be able to get this included with the lcd driver soon. Stuck on some bugs at the moment though. I'll post here when things are closer to working.

                                      Steve

                                      So there are bugs….  ;D  Good to know, because my Light will not turn/change color no mater what i do, by script or by manual running the prog, its a no go.

                                      When it did not work, i just ignored it and accepted that it would not work.
                                      But now that you mention that there might be bugs in it i want to give it a go and see if i can get it to work.
                                      So any pointer would be helpful to where to start looking....

                                      I am running pfSense-2.0.1-RELEASE-2g-i386-nanobsd.img.gz and the program runs like it should, no errors or feedback when i run it and nothing happens.

                                      So if you think this could be a "bug" let me know and i will give you all the info you need..  ;)

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        stephenw10 Netgate Administrator
                                        last edited by Feb 1, 2012, 12:23 PM

                                        The bugs I mentioned are in the LCD driver/package not WGXepc. Since lcdproc includes code for associated leds we hoped to eventually have the leds controllable through the lcd driver.
                                        WGXepc should be working for any firebox however there are some models that are untested.
                                        Which box is not working? What happens when you run the program?

                                        Steve

                                        1 Reply Last reply Reply Quote 0
                                        • U
                                          Unubtanium
                                          last edited by Feb 1, 2012, 12:59 PM

                                          it is a x500 and when i run it, it looks like it run's it and just goes to next line like this:

                                          #WGXepc -green

                                          No error no nothing, and the LED stays red, have tried the blink also but same result, and have checked that the permissions are correct too  ???

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            [[user:consent.lead]]
                                            [[user:consent.not_received]]