Multiwan questions

I can see in the settings of multiwan that I should be notified by the change of wan NIC. I looked in the mailbox of root but nothing.

Were and how I should be notified when one of my nic is down ?

Another question, if one of my WAN is down, after a count of ping it is disabled, that is fine, is it possible to enable it again after some minutes if the test of ping is true again.

I say this because my two links are not equal, one is fiber the other is 4G

On the old server-manager there was the option to set the e-mail address:


firewall’s config db props:

  • NotifyWan : can be enabled or disabled , if enabled a mail is sent every time a provider changes its own state
  • NotifyWanFrom : sender address for mails sent if NotifyWAN is set to enabled
  • NotifyWanTo : recipient address for mails sent if NotifyWAN is set to enabled

On cockpit it seems the same settings are used, and if not set by the user they are gathered from root settings:

   notifywanfrom=$(/sbin/e-smith/db configuration getprop root SenderAddress)
   notifyto=$(/sbin/e-smith/db configuration getprop root EmailAddress)

You have to have nethserver-lsm package installed, IIRC.

1 Like

indeed I have a bug to track

[root@firewall ~]# config show firewall
firewall=configuration
    CheckIP=8.8.8.8,208.67.222.222
    Docker=enabled
    ExternalPing=enabled
    HairpinNat=disabled
    MACValidation=disabled
    MACValidationPolicy=drop
    MaxNumberPacketLoss=10
    MaxPercentPacketLoss=50
    NotifyWan=enabled
    NotifyWanFrom=
    NotifyWanTo=
    PingInterval=5
    Policy=permissive
    SipAlg=enabled
    VpnPolicy=strict
    WanMode=balance

something weird

Apr 25 08:33:48 firewall postfix/pickup[21889]: C3F7E2483DB: uid=0 from=<-s>
Apr 25 08:33:48 firewall postfix/cleanup[23775]: C3F7E2483DB: message-id=<20210425063348.C3F7E2483DB@firewall.domain.com>
Apr 25 08:33:48 firewall postfix/qmgr[21890]: C3F7E2483DB: from=<-s@firewall.domain.com>, size=749, nrcpt=5 (queue active)
Apr 25 08:33:48 firewall postfix/error[23785]: C3F7E2483DB: to=<-@firewall.domain.com>, orig_to=<->, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.1.3, status=bounced (bad address syntax)
Apr 25 08:33:50 firewall postfix/local[23792]: C3F7E2483DB: to=<down@firewall.domain.com>, orig_to=<down>, relay=local, delay=1.4, delays=0.01/0/0/1.4, dsn=5.1.1, status=bounced (unknown user: "down")
Apr 25 08:33:50 firewall postfix/local[23784]: C3F7E2483DB: to=<red1@firewall.domain.com>, orig_to=<red1>, relay=local, delay=1.4, delays=0.01/0/0/1.4, dsn=5.1.1, status=bounced (unknown user: "red1")
Apr 25 08:33:50 firewall postfix/local[23806]: C3F7E2483DB: to=<MultiWAN@firewall.domain.com>, orig_to=<MultiWAN>, relay=local, delay=1.4, delays=0.01/0/0/1.4, dsn=5.1.1, status=bounced (unknown user: "multiwan")
Apr 25 08:33:50 firewall postfix/local[25687]: C3F7E2483DB: to=<state@firewall.domain.com>, orig_to=<state>, relay=local, delay=1.4, delays=0.01/0.02/0/1.4, dsn=5.1.1, status=bounced (unknown user: "state")
Apr 25 08:33:50 firewall postfix/cleanup[23775]: 2AB512483DC: message-id=<20210425063350.2AB512483DC@firewall.domain.com>
Apr 25 08:33:50 firewall postfix/bounce[23791]: C3F7E2483DB: sender non-delivery notification: 2AB512483DC
Apr 25 08:33:50 firewall postfix/qmgr[21890]: 2AB512483DC: from=<>, size=3720, nrcpt=1 (queue active)
Apr 25 08:33:50 firewall postfix/qmgr[21890]: C3F7E2483DB: removed
Apr 25 08:33:50 firewall postfix/error[23785]: 2AB512483DC: to=<-s@firewall.domain.com>, relay=none, delay=0.01, delays=0/0/0/0, dsn=5.1.3, status=bounced (bad address syntax)
Apr 25 08:33:50 firewall postfix/qmgr[21890]: 2AB512483DC: removed
(END)

(bad address syntax): Does the email address really start with a dash on purpose?

it is looking for a local email account (that does not exist). Is the email address (and related domain) local or remote?

1 Like

I added my my email address to NotifyWanTo so it should send it, something to check, we have a bug here maybe

cc @filippo_carletti @edoardo_spadoni What do you think bug or feature