Netgate SG-1000 microFirewall

Author Topic: Maybe a bug in status_interfaces.php or other include file  (Read 202 times)

0 Members and 1 Guest are viewing this topic.

Offline pete.s.

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Maybe a bug in status_interfaces.php or other include file
« on: September 06, 2017, 02:40:57 pm »
This threw me for a loop today.
Webgui shows interface status is down when it is actually up - but not enabled in pfsense config.

Dmesg output:
Quote
igb2: link state changed to UP

ifconfig output:
Quote
igb2: ...
...
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active

When interface is not enabled in pfsense config, Status / Interfaces shows:
Quote
Status  down

When interface is enabled in pfsense config, Status / Interfaces shows:
Quote
Status  up


I would have liked to see if the link is up or down even when the interface is not enabled in config.
Or perhaps shown "not enabled" instead of "down" and then I would have known to hook up with ssh to check what the status really is.

Best Regards,
Pete


Offline phil.davis

  • Hero Member
  • *****
  • Posts: 4613
  • Karma: +550/-3
    • View Profile
    • International Nepal Fellowship
Re: Maybe a bug in status_interfaces.php or other include file
« Reply #1 on: September 10, 2017, 09:15:50 am »
A first simple override of the up/down for disabled interfaces:
https://github.com/pfsense/pfsense/pull/3820

but perhaps there is more that can be done underneath to actually find out the hardware state even when at the pfSense software level the interface is disabled.
As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/