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

    Unofficial E2guardian package for pfSense

    Scheduled Pinned Locked Moved Cache/Proxy
    1.2k Posts 70 Posters 1.5m 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.
    • K
      kenpachizaraki
      last edited by

      @pfsensation
      https://127.0.0.1 403 - Default NETERROR The site requested is not responding
      e2g displays the error when someone access local webserver on development computer.
      is there any settings were in it will bypass to scan the localhost/127.0.0.1

      i tried the bypass settings in Daemon tab but its not working.

      P 1 Reply Last reply Reply Quote 0
      • P
        pfsensation @kenpachizaraki
        last edited by

        @kenpachizaraki said in Unofficial E2guardian package for pfSense:

        @pfsensation
        https://127.0.0.1 403 - Default NETERROR The site requested is not responding
        e2g displays the error when someone access local webserver on development computer.
        is there any settings were in it will bypass to scan the localhost/127.0.0.1

        i tried the bypass settings in Daemon tab but its not working.

        I think 127.0.0.1 at this moment in time may have bugs with transparent proxy. It's been raised already with E2 Guardian team.

        However try adding localhost to bypass or try using the machines IP. Just as a workaround, I haven't run into any issues myself. All my stuff is hosted on servers.

        1 Reply Last reply Reply Quote 0
        • A
          asterix @pfsensation
          last edited by

          @pfsensation said in Unofficial E2guardian package for pfSense:

          @kenpachizaraki said in Unofficial E2guardian package for pfSense:

          @pfsensation said in Unofficial E2guardian package for pfSense:

          @marcelloc I had a look, it looks like e2guardian isn't defined in /etc/inc/service-utils.inc. I attempted to manually define it but wasn't too sure of the parameters. Can you shed some light? ✋

          @pfsensation is this resolve already? I will be deploying e2g tomorrow i dont want to have issue on pfsense crashing

          On your production system, don't upgrade to 2.4.4 yet. I still haven't been able to resolve that log rotation issue. For me it just crashes E2 Guardian once a day and it restarts itself. Barely even notice it but nevertheless its still an issue.

          Going to have to wait for @marcelloc to have a look at this. I tried some fixes but my knowledge of the inner workings of pfsense packages isn't great.

          It’s frustrating now. I tried a clean install but still have the issue with log rotation crash. No internet till I do a full reboot. Any response from @marcelloc ?

          P 1 Reply Last reply Reply Quote 0
          • M
            mococanet
            last edited by

            hey guys, i installed on pfsense 2.4.4 the system patch and created a new patch as:

            -description: marcelloc patch
            -patch contents: *I pasted this patch: https://raw.githubusercontent.com/marcelloc/Unofficial-pfSense-packages/master/244_unofficial_packages_list.patch
            -Patch Strip Count: 1
            -Base Directory: /

            I saved it and clicked in TEST and then APPLY but unfortunatley the e2guardian doesn't appeared in Package Manager.

            Can someone help me solve this please? thank you!

            1 Reply Last reply Reply Quote 0
            • K
              kenrutt
              last edited by

              You need to copy the contents of 244_unofficial_packages_list.patch .
              Do not use url to package. Click on the link in Github and copy all text in the file and past it into patch contents window. Save it then apply it.

              1 Reply Last reply Reply Quote 0
              • M
                mococanet
                last edited by

                thank you @kenrutt for your help, but i'm using raw file link, ie it's the same as I use copy/paste code content. I solved the problem, for 2.4.4 version follow the steps:

                first of all go to Diagnostics->Command Prompt and put the command: fetch -q -o /usr/local/etc/pkg/repos/Unofficial.conf https://raw.githubusercontent.com/marcelloc/Unofficial-pfSense-packages/master/Unofficial.conf and then click in execute.

                then go to packages and install system patch and create a patch as:

                -description: marcelloc patch
                -patch contents: *I pasted this patch: https://raw.githubusercontent.com/marcelloc/Unofficial-pfSense-packages/master/244_unofficial_packages_list.patch
                -Patch Strip Count: 1
                -Base Directory: /

                save it and click in TEST and then APPLY.

                Go to packages and e2guardian5 will be able to be installed.

                thank you

                P 1 Reply Last reply Reply Quote 0
                • P
                  pfsensation @mococanet
                  last edited by

                  @mococanet said in Unofficial E2guardian package for pfSense:

                  thank you @kenrutt for your help, but i'm using raw file link, ie it's the same as I use copy/paste code content. I solved the problem, for 2.4.4 version follow the steps:

                  first of all go to Diagnostics->Command Prompt and put the command: fetch -q -o /usr/local/etc/pkg/repos/Unofficial.conf https://raw.githubusercontent.com/marcelloc/Unofficial-pfSense-packages/master/Unofficial.conf and then click in execute.

                  then go to packages and install system patch and create a patch as:

                  -description: marcelloc patch
                  -patch contents: *I pasted this patch: https://raw.githubusercontent.com/marcelloc/Unofficial-pfSense-packages/master/244_unofficial_packages_list.patch
                  -Patch Strip Count: 1
                  -Base Directory: /

                  save it and click in TEST and then APPLY.

                  Go to packages and e2guardian5 will be able to be installed.

                  thank you

                  You forgot to install the repo first... On upgrades the unofficial repo gets overwritten.

                  1 Reply Last reply Reply Quote 0
                  • M
                    mococanet
                    last edited by

                    yes @pfsensation the problem was solved.
                    thank you very much

                    1 Reply Last reply Reply Quote 0
                    • P
                      pfsensation @asterix
                      last edited by pfsensation

                      @asterix said in Unofficial E2guardian package for pfSense:

                      @pfsensation said in Unofficial E2guardian package for pfSense:

                      @kenpachizaraki said in Unofficial E2guardian package for pfSense:

                      @pfsensation said in Unofficial E2guardian package for pfSense:

                      @marcelloc I had a look, it looks like e2guardian isn't defined in /etc/inc/service-utils.inc. I attempted to manually define it but wasn't too sure of the parameters. Can you shed some light? ✋

                      @pfsensation is this resolve already? I will be deploying e2g tomorrow i dont want to have issue on pfsense crashing

                      On your production system, don't upgrade to 2.4.4 yet. I still haven't been able to resolve that log rotation issue. For me it just crashes E2 Guardian once a day and it restarts itself. Barely even notice it but nevertheless its still an issue.

                      Going to have to wait for @marcelloc to have a look at this. I tried some fixes but my knowledge of the inner workings of pfsense packages isn't great.

                      It’s frustrating now. I tried a clean install but still have the issue with log rotation crash. No internet till I do a full reboot. Any response from @marcelloc ?

                      For me sure E2 Guardian crashes for a second, but it's never so bad that my entire Internet dies until I reboot. Must be something config related, my block page is hosted separately on another nginx instance using the WPAD package. Maybe that's it?

                      I've already let Marcello know about the issue, and I'm sure he knows as well from his own systems. For the time being, I am log rotating using Cron, yeah it's a bit of a pain. But at the end of the day, we have to realise that all the people who contribute to E2 Guardian, including myself do it in our spare time. Sometimes life gets in the way, sometimes work gets in the way. But things will be back to normal again, we just need to be patient.

                      EDIT: Here's the simple command I'm using to literally wipe the access.log roughly every 8 hours (obviously scale this to meet your needs):
                      echo -n "" > /var/log/e2guardian/access.log

                      A 1 Reply Last reply Reply Quote 0
                      • K
                        kenpachizaraki
                        last edited by

                        anybody had success on e2g with mutli wan setup with vlan?
                        currently im using e2g with multi-wan setup + vlan. i had observed that when it is enabled, bandwidth would be maxed out.
                        some vlan gateways are routed to specific ISP_1 but strangely it affects the bandwidth of ISP_2.

                        P 1 Reply Last reply Reply Quote 0
                        • P
                          pfsensation @kenpachizaraki
                          last edited by

                          @kenpachizaraki said in Unofficial E2guardian package for pfSense:

                          anybody had success on e2g with mutli wan setup with vlan?
                          currently im using e2g with multi-wan setup + vlan. i had observed that when it is enabled, bandwidth would be maxed out.
                          some vlan gateways are routed to specific ISP_1 but strangely it affects the bandwidth of ISP_2.

                          That sounds odd, E2 Guardian doesn't support multi WAN yet. Are you using VLANs on WAN side of your pfSense?

                          I've got it working on the LAN side but I've not tested the WAN side yet.

                          K 1 Reply Last reply Reply Quote 0
                          • K
                            kenpachizaraki @pfsensation
                            last edited by

                            @pfsensation using vlan on the LAN side.
                            hhmmm maybe that's the issue...e2g does not support multi-wan - multi ISP setup.

                            P 1 Reply Last reply Reply Quote 0
                            • P
                              pfsensation @kenpachizaraki
                              last edited by

                              @kenpachizaraki said in Unofficial E2guardian package for pfSense:

                              @pfsensation using vlan on the LAN side.
                              hhmmm maybe that's the issue...e2g does not support multi-wan - multi ISP setup.

                              Ahhh that makes sense, your previous message wasn't too clear. If you're using E2 Guardian, and have transparent mode enabled it'll try to route the traffic through it. If you then have other rules outside E2 Guardian they maybe clashing with each other and hence why you're seeing traffic on both WAN lines.

                              K 1 Reply Last reply Reply Quote 0
                              • K
                                kenpachizaraki @pfsensation
                                last edited by

                                @pfsensation ill try to setup vlan with no rules in it and ill check the usage on both ISP.

                                P 1 Reply Last reply Reply Quote 0
                                • P
                                  pfsensation @kenpachizaraki
                                  last edited by

                                  @kenpachizaraki said in Unofficial E2guardian package for pfSense:

                                  @pfsensation ill try to setup vlan with no rules in it and ill check the usage on both ISP.

                                  That'll probably eliminate the issues with activity seen on the second WAN link but the issues persists. E2guardian doesn't support multi WAN yet.

                                  K 1 Reply Last reply Reply Quote 0
                                  • K
                                    kenpachizaraki @pfsensation
                                    last edited by

                                    @pfsensation bumper!!! hope e2g will support multi-wan setup soon.
                                    it's norm nowadays that company have multiple wan

                                    1 Reply Last reply Reply Quote 0
                                    • A
                                      asterix @pfsensation
                                      last edited by

                                      @pfsensation said in Unofficial E2guardian package for pfSense:

                                      @asterix said in Unofficial E2guardian package for pfSense:

                                      @pfsensation said in Unofficial E2guardian package for pfSense:

                                      @kenpachizaraki said in Unofficial E2guardian package for pfSense:

                                      @pfsensation said in Unofficial E2guardian package for pfSense:

                                      @marcelloc I had a look, it looks like e2guardian isn't defined in /etc/inc/service-utils.inc. I attempted to manually define it but wasn't too sure of the parameters. Can you shed some light? ✋

                                      @pfsensation is this resolve already? I will be deploying e2g tomorrow i dont want to have issue on pfsense crashing

                                      On your production system, don't upgrade to 2.4.4 yet. I still haven't been able to resolve that log rotation issue. For me it just crashes E2 Guardian once a day and it restarts itself. Barely even notice it but nevertheless its still an issue.

                                      Going to have to wait for @marcelloc to have a look at this. I tried some fixes but my knowledge of the inner workings of pfsense packages isn't great.

                                      It’s frustrating now. I tried a clean install but still have the issue with log rotation crash. No internet till I do a full reboot. Any response from @marcelloc ?

                                      For me sure E2 Guardian crashes for a second, but it's never so bad that my entire Internet dies until I reboot. Must be something config related, my block page is hosted separately on another nginx instance using the WPAD package. Maybe that's it?

                                      I've already let Marcello know about the issue, and I'm sure he knows as well from his own systems. For the time being, I am log rotating using Cron, yeah it's a bit of a pain. But at the end of the day, we have to realise that all the people who contribute to E2 Guardian, including myself do it in our spare time. Sometimes life gets in the way, sometimes work gets in the way. But things will be back to normal again, we just need to be patient.

                                      EDIT: Here's the simple command I'm using to literally wipe the access.log roughly every 8 hours (obviously scale this to meet your needs):
                                      echo -n "" > /var/log/e2guardian/access.log

                                      My issue is that e2 crashes and recovers during the log rotation but for some reason blocks all internet till I reboot it. The log rotation has been sketchy and I can't pin point the exact time. Sometimes e2 crashes in the middle of the day and my family is without internet till the time I come back home and reboot the VM instance.

                                      P 1 Reply Last reply Reply Quote 0
                                      • P
                                        pfsensation @asterix
                                        last edited by

                                        @asterix said in Unofficial E2guardian package for pfSense:

                                        @pfsensation said in Unofficial E2guardian package for pfSense:

                                        @asterix said in Unofficial E2guardian package for pfSense:

                                        @pfsensation said in Unofficial E2guardian package for pfSense:

                                        @kenpachizaraki said in Unofficial E2guardian package for pfSense:

                                        @pfsensation said in Unofficial E2guardian package for pfSense:

                                        @marcelloc I had a look, it looks like e2guardian isn't defined in /etc/inc/service-utils.inc. I attempted to manually define it but wasn't too sure of the parameters. Can you shed some light? ✋

                                        @pfsensation is this resolve already? I will be deploying e2g tomorrow i dont want to have issue on pfsense crashing

                                        On your production system, don't upgrade to 2.4.4 yet. I still haven't been able to resolve that log rotation issue. For me it just crashes E2 Guardian once a day and it restarts itself. Barely even notice it but nevertheless its still an issue.

                                        Going to have to wait for @marcelloc to have a look at this. I tried some fixes but my knowledge of the inner workings of pfsense packages isn't great.

                                        It’s frustrating now. I tried a clean install but still have the issue with log rotation crash. No internet till I do a full reboot. Any response from @marcelloc ?

                                        For me sure E2 Guardian crashes for a second, but it's never so bad that my entire Internet dies until I reboot. Must be something config related, my block page is hosted separately on another nginx instance using the WPAD package. Maybe that's it?

                                        I've already let Marcello know about the issue, and I'm sure he knows as well from his own systems. For the time being, I am log rotating using Cron, yeah it's a bit of a pain. But at the end of the day, we have to realise that all the people who contribute to E2 Guardian, including myself do it in our spare time. Sometimes life gets in the way, sometimes work gets in the way. But things will be back to normal again, we just need to be patient.

                                        EDIT: Here's the simple command I'm using to literally wipe the access.log roughly every 8 hours (obviously scale this to meet your needs):
                                        echo -n "" > /var/log/e2guardian/access.log

                                        My issue is that e2 crashes and recovers during the log rotation but for some reason blocks all internet till I reboot it. The log rotation has been sketchy and I can't pin point the exact time. Sometimes e2 crashes in the middle of the day and my family is without internet till the time I come back home and reboot the VM instance.

                                        Your machine is definitely failing more miserably. Have you checked to make are that you don't have other packages using the port 80/443? Such as pfblocker and the Web interface? A while back on very first versions of E2 Guardian on pfSense I used to get entire system crashes. After I sorted the things above, it's been stable as a rock.

                                        A 1 Reply Last reply Reply Quote 0
                                        • A
                                          asterix @pfsensation
                                          last edited by

                                          @pfsensation I turned off logging completely and checked under Cron jobs and the log rotation script was removed onces I disabled logging. So far so good. 2 days with no issues.

                                          Speaking for logging, is there a way to show the logs in graphs.. like which ip/subnet made what requests which were denied .. especially the denied ones.

                                          1 Reply Last reply Reply Quote 0
                                          • M
                                            mococanet
                                            last edited by

                                            hey guys, i'm using pfsense 2.4.4 + e2guardian-v5 but every day at midnight a crash system is reported:

                                            PHP ERROR: Type: 1, File: /etc/inc/service-utils.inc, Line: 668, Message: Uncaught ArgumentCountError: Too few arguments to function service_control_stop(), 1 passed in /usr/local/www/e2guardian_logrotate.php on line 42 and exactly 2 expected in /etc/inc/service-utils.inc:668
                                            Stack trace:
                                            #0 /usr/local/www/e2guardian_logrotate.php(42): service_control_stop('e2guardian')
                                            #1 {main}

                                            I've seen some people with the same problems, has anyone managed to solve it?
                                            thank you

                                            P 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.