OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 16.7 Legacy Series »
  • After firewall rebooted/power-on, apinger never starts automatically
« previous next »
  • Print
Pages: [1]

Author Topic: After firewall rebooted/power-on, apinger never starts automatically  (Read 3648 times)

Taomyn

  • Sr. Member
  • ****
  • Posts: 412
  • Karma: 19
    • View Profile
After firewall rebooted/power-on, apinger never starts automatically
« on: October 11, 2016, 05:37:42 pm »
Since I installed 16.7 and now on 16.7.6-amd64, I have had the apinger service enabled and not once has the service started by itself on restart/power-up. It's always stopped and I have to start it manually which then runs successfully.

Any idea why, have I missed a configuration setting somewhere?

My only gateway is my WAN_PPOE.
Logged

Julien

  • Hero Member
  • *****
  • Posts: 651
  • Karma: 32
    • View Profile
Re: After firewall rebooted/power-on, apinger never starts automatically
« Reply #1 on: October 12, 2016, 01:31:08 pm »
are you on a hardware or virtual gateway ?
this is a hardware related configuration.
check your bios to enable this.
i have done on my home old pc using it as opnsense for testing.
Logged
An intelligent man is sometimes forced to be drunk to spend time with his fool.

Taomyn

  • Sr. Member
  • ****
  • Posts: 412
  • Karma: 19
    • View Profile
Re: After firewall rebooted/power-on, apinger never starts automatically
« Reply #2 on: October 12, 2016, 01:36:09 pm »
It's a small-form-factor PC - what BIOS setting is this related to and why if it "was" disabled would it then work after the firewall is started up and fully functioning? Sorry for the basic question, I couldn't find to much about this on-line.

Quote from: Julien on October 12, 2016, 01:31:08 pm
are you on a hardware or virtual gateway ?
this is a hardware related configuration.
check your bios to enable this.
i have done on my home old pc using it as opnsense for testing.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13693
  • Karma: 1176
    • View Profile
Re: After firewall rebooted/power-on, apinger never starts automatically
« Reply #3 on: October 12, 2016, 07:04:10 pm »
It's very likely this bug: https://github.com/opnsense/core/issues/1016

Apinger historically drops privileges, so it can't reconfigure itself later. That reconfigure wasn't necessary in the original apinger because it used a raw socket, but when it was incorporated into pfSense, it was changed to be a static gateway monitoring tool for multi-wan and never quite fixed for the task.

Now the interface up comes into play, if it can't show an address when apinger tries to configure, apinger drops it as a target. And if it's the only target, apinger exits. This is easily confirmed by starting apinger manually later and all is ok.

We've started to work on apinger, though at the moment my primary care is making the transition to FreeBSD 11.0 as easy as possible for 17.1.

The new apinger home is on GitHub for better visibility.

https://github.com/opnsense/apinger

The question is if we should stop dropping privileges, or plug apinger into devd events or do something completely different. I don't know. :)


Cheers,
Franco
Logged

Taomyn

  • Sr. Member
  • ****
  • Posts: 412
  • Karma: 19
    • View Profile
Re: After firewall rebooted/power-on, apinger never starts automatically
« Reply #4 on: October 12, 2016, 07:12:08 pm »
Thanks Franco - at least I understand and it's not system critical, just a nuisance.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 16.7 Legacy Series »
  • After firewall rebooted/power-on, apinger never starts automatically
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2