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

    Any mail from the pfsense appliance has "Arpwatch Notification" in the subject line, even when it is from a completely different package

    Scheduled Pinned Locked Moved pfSense Packages
    7 Posts 3 Posters 1.3k 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.
    • L
      lightningbit
      last edited by

      Hi,

      is anyone experiencing the same?

      Most mail from the pfsense appliance has "Arpwatch Notification" in the subject line, even when it is from a completely different package, and even when the Arpwatch service itself is disabled.

      for example, mails generated from following cron actions :
      /usr/local/bin/mail_reports_generate.php
      /etc/rc.filter_configure_sync

      examples os subject lines :
      xxx.local - Arpwatch Notification : Cron root@xxx /usr/local/bin/mail_reports_generate.php
      xxx.local - Arpwatch Notification : Cron root@xxx /usr/local/bin/speedtest --csv >> /usr/local/www/speedtestloganyserver.csv
      xxx.local - Arpwatch Notification : Cron root@xxx /etc/rc.filter_configure_sync

      it happens on a freshly installed box (2.5.x) and and older box (2.4.x)

      I assume this is a bug? or is there another way to fix this?

      L GertjanG 3 Replies Last reply Reply Quote 0
      • L
        lightningbit @lightningbit
        last edited by

        Following the rules, I'm supposed to wait until someone answers here before reporting it as a bug?
        But without any answers, ... I can't keep waiting, so I'll report it to the pfsense redmine.

        NollipfSenseN 1 Reply Last reply Reply Quote 0
        • NollipfSenseN
          NollipfSense @lightningbit
          last edited by

          @lightningbit said in Any mail from the pfsense appliance has "Arpwatch Notification" in the subject line, even when it is from a completely different package:

          Following the rules

          That would include searching the forum ... there was a recent post with someone else experiencing similar issue.

          pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
          pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

          L 1 Reply Last reply Reply Quote 0
          • L
            lightningbit @NollipfSense
            last edited by

            @nollipfsense
            Hi, I did do a search on this forum, the only other posts on similar issues I found when searching for "arpwatch+mail" dated from 2019 or before, without answers.
            (and 1 other one from myself about an error in the node-exporter package, also without replies)

            NollipfSenseN 1 Reply Last reply Reply Quote 0
            • NollipfSenseN
              NollipfSense @lightningbit
              last edited by

              @lightningbit Well, it must be yours that I saw 12days ago ... carry on with your original plan.

              pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
              pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

              1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan @lightningbit
                last edited by Gertjan

                @lightningbit

                I've installed Arpwatch - and found the issue.

                During installation, a XML record is created :

                22a08cc6-2389-4e1d-8e99-6524e749bff5-image.png

                This is the 'off' state.

                Or, the code references this check box like :
                'cron_disable' instead of 'disable_cron.'

                here : line 236 : /usr/local/pkg/arpwatch.inc

                   ($config['installedpackages']['arpwatch']['config'][0]['cron_disable'] != 'on'))) {
                

                Change this to

                   ($config['installedpackages']['arpwatch']['config'][0]['disable_cron'] != 'on'))) {
                

                edit 2021-06-03 : the next isn't needed. Just the first one (above) and do Save on the aprwatch settings page. The file /usr/local/arpwatch/sendmail_proxy.php will get regenerated.

                Change also this file :

                /usr/local/arpwatch/sendmail_proxy.php :
                Line 12 :

                   ($config['installedpackages']['arpwatch']['config'][0]['cron_disable'] != 'on'))) {
                

                into

                   ($config['installedpackages']['arpwatch']['config'][0]['disable_cron'] != 'on'))) {
                

                During installation, a small PHP file is created, "/usr/local/arpwatch/sendmail_proxy.php" that is sym linked to /usr/sbin/sendmail .... ( ugly ...) because 'arpwatch' takes an email adress on the commande line :

                13720  -  Ss       0:00.06 /usr/local/sbin/arpwatch -N -z -Z -f /usr/local/arpwatch/arp_em1.dat -i em1 -w is.this@used.or.not 
                

                The 'arpwatch' process uses the famous '/usr/sbin/sendmail' which is symlinked from our /usr/local/arpwatch/sendmail_proxy.php, crated by the package arpwatch during installation.
                This special version should test if the captured output of a PHP-cron task is from the 'arpwatch' process, or some other cron task.
                That test fails, everything - all "PHP crons outputs" are captured and send as a mail.

                So, this option should be set :

                85ea8df4-bd78-4f54-a029-5798fa318618-image.png

                and now the state is reflected in the config :

                1d74d02a-9407-4a56-8868-9f414ebaa031-image.png

                and the test will exclude PHP cron messages.

                I'll have these edits in place right now. I'll test.
                Maybe some fiddling with && and || are still needed.
                I'll edit if needed.

                Btw :
                From what I see, this mail address isn't used:

                364086e3-2ca7-497f-a06d-6b58dff9a5f3-image.png

                as the mail set up under System > Advanced > Notifications is used.

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                1 Reply Last reply Reply Quote 1
                • GertjanG
                  Gertjan @lightningbit
                  last edited by Gertjan

                  @lightningbit said in Any mail from the pfsense appliance has "Arpwatch Notification" in the subject line, even when it is from a completely different package:

                  I assume this is a bug? or is there another way to fix this?

                  The issue is already known, and a solution is in the pipeline : read https://redmine.pfsense.org/issues/11366

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

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