zlb icon indicating copy to clipboard operation
zlb copied to clipboard

Could not recognize the type of the interface tun0. at /usr/share/perl5/Zevenet/Net/Interface.pm line 953.

Open wittyaurelien opened this issue 4 years ago • 2 comments

Hello, I've a problem with OpenVPN. My server is also an OpenVPN server and Zevenet has error on startut : Could not recognize the type of the interface tun0. at /usr/share/perl5/Zevenet/Net/Interface.pm line 953. Interface "tun0" has type 65534.

Thanks

wittyaurelien avatar Apr 12 '20 16:04 wittyaurelien

Those kind of interfaces are not supported because are not tested

Thanks

El dom., 12 abr. 2020 18:22, Aurélien JAMIN [email protected] escribió:

Hello, I've a problem with OpenVPN. My server is also an OpenVPN server and Zevenet has error on startut : Could not recognize the type of the interface tun0. at /usr/share/perl5/Zevenet/Net/Interface.pm line 953. Interface "tun0" has type 65534.

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zevenet/zlb/issues/73, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFBQEPGXWSY3JE5QBBQP6OTRMHTCPANCNFSM4MGPDEYA .

emiliocampos-zevenet avatar Apr 12 '20 20:04 emiliocampos-zevenet

Then it would make much more sense to ignore those interfaces that are not supported, rather than fail at startup.

For anyone that has this problem and not using the zlb in production. Check the type code cat /sys/class/net/<interface_name>/type

Search for the code in /usr/share/perl5/Zevenet/Net/Interface.pm and uncomment the elsif containing that type. For example tunl0 has code 65534, and is found on row 940 in Interface.pm sit0 has code 776 an is on row 927-930

MrIsak avatar Sep 22 '21 18:09 MrIsak