opnsense / core

OPNsense GUI, API and systems backend
https://opnsense.org/
BSD 2-Clause "Simplified" License
3.39k stars 759 forks source link

netflow on pppoe interface not working #7947

Open bsiege opened 1 month ago

bsiege commented 1 month ago

maybe a return of [https://github.com/opnsense/core/issues/4696]

error pppoe1: cannot create netflow node for pppoe1

Steps to reproduce the behavior:

restart netflow via /usr/local/etc/rc.d/netflow restart

setup igc3
setup vlan02
setup pppoe1 [egress only]
ngctl: send msg: No such file or directory
error pppoe1: cannot create netflow node for pppoe1
# ngctl list
There are 23 total nodes:
  Name: ngctl81970      Type: socket          ID: 00000143   Num hooks: 0
  Name: mpd17989-lso    Type: socket          ID: 00000003   Num hooks: 1
  Name: mpd17989-cso    Type: socket          ID: 00000004   Num hooks: 0
  Name: mpd17989-eso    Type: socket          ID: 00000005   Num hooks: 0
  Name: ng0             Type: iface           ID: 00000006   Num hooks: 2
  Name: mpd17989-wan    Type: ppp             ID: 00000007   Num hooks: 4
  Name: mpd17989-wan_link0-lt Type: tee             ID: 00000008   Num hooks: 2
  Name: igc0            Type: ether           ID: 0000000a   Num hooks: 1
  Name: igc1            Type: ether           ID: 0000000b   Num hooks: 0
  Name: igc2            Type: ether           ID: 0000000c   Num hooks: 0
  Name: igc3            Type: ether           ID: 0000000d   Num hooks: 2
  Name: vlan01          Type: ether           ID: 0000000e   Num hooks: 0
  Name: vlan02          Type: ether           ID: 0000000f   Num hooks: 2
  Name: vlan03          Type: ether           ID: 00000010   Num hooks: 0
  Name: vlan04          Type: ether           ID: 00000011   Num hooks: 0
  Name: netflow_igc3    Type: netflow         ID: 0000012c   Num hooks: 3
  Name: ksocket_netflow_igc3 Type: ksocket         ID: 00000132   Num hooks: 1
  Name: mpd17989-stats  Type: socket          ID: 00000036   Num hooks: 0
  Name: netflow_vlan02  Type: netflow         ID: 00000137   Num hooks: 3
  Name: <unnamed>       Type: socket          ID: 0000003a   Num hooks: 0
  Name: <unnamed>       Type: pppoe           ID: 0000003b   Num hooks: 2   <==========
  Name: mpd17989-wan-mss Type: tcpmss          ID: 0000003c   Num hooks: 2
  Name: ksocket_netflow_vlan02 Type: ksocket         ID: 0000013d   Num hooks: 1

Expected behavior

Working netflow on pppoe
or Visible error message in webinterface during configuration. (It seems i did not realized this for some time.)

DZ945brH commented 4 weeks ago

I can confirm this issue on my end:

root@XXXXXXXXx:~ # /usr/local/etc/rc.d/netflow restart setup vtnet6 setup vtnet5 setup vtnet4 setup vtnet3 setup vtnet2 setup vtnet0 [egress only] setup lo1 ngctl: send msg: No such file or directory error lo1: cannot create netflow node for lo1 setup pppoe0 [egress only] ngctl: send msg: No such file or directory error pppoe0: cannot create netflow node for pppoe0

@fichtner why is the label "support" and not "bug"?

fichtner commented 4 weeks ago

Do you want to submit a patch?