Gufw 16.10.0 incorrectly identifies LAN interface

Asked by Veron Rado

Hi
Ruinng Ubuntu 16.10. It has "Predictable Network Interface Names".
My Ethernet device's correct ID is enp0s31f4.

Using the "Add a Firewall Rule" under "Advanced" and then "Interfaces" Gufw IDs it as enp0s31f. (It drops the last digit.)
I only twigged it when I was troubleshooting an Ethernet rule that wouldn't work. When set to "All Interfaces" it worked fine.

All other tools I've use ID the interface correctly (ifconfig, ifstat etc.)

What mechanism does Gufw use to ID the LAN interface?
Is there a character limit that would cause the ID to be truncated by one character?

Thanks.

Question information

Language:
English Edit question
Status:
Open
For:
Gufw Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
costales (costales) said :
#1

Hi
It's getting it with:

netstat -i

Best regards.

Revision history for this message
Veron Rado (junket) said :
#2

Hi

Thanks for that.

netstat has the error alright.

$ netstat -i
Kernel Interface table
Iface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
enp0s31f 1500 41477 0 0 0 18446 0 0 0 BMRU

$ ifconfig -a
enp0s31f4: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500

I suppose I better take my issue to whoever maintains netstat.

Thanks again.

Revision history for this message
costales (costales) said :
#4

I tried that for the most and robust environments. This should work for
your interface, it is weird. You could edit a file and adapt for you, tell
me and i will tell you how to do that :)

--
--
Sent using Dekko from my Ubuntu device

Revision history for this message
Veron Rado (junket) said :
#5

Ok looking in to this some more according to Wikipedia[1] net-tools, of which netstat is a part, is depreciated and superseded by iproute2 (ifconfig etc.).

Are there any plans t move from netstat?

Thanks

[1] https://en.wikipedia.org/wiki/Netstat

Revision history for this message
Veron Rado (junket) said :
#8

Hi costales,
Sorry, I was writing my reply as you posted yours and I missed it.

I don't quite understand what you mean: "You could edit a file and adapt for you, tell
me and i will tell you how to do that"

Revision history for this message
Veron Rado (junket) said :
#9

Can you help with this problem?

Provide an answer of your own, or ask Veron Rado for more information if necessary.

To post a message you must log in.