Bug 11282

Summary: WebIF: Firewall log shows protocol "47" without description
Product: IPFire Reporter: Timmothy Wilson <itsuperhack>
Component: ---Assignee: Stefan Schantl <stefan.schantl>
Status: CLOSED FIXED QA Contact:
Severity: Aesthetic Issue    
Priority: Will only affect a few users CC: michael.tremer, peter.mueller, peter.mueller, stefan.schantl
Version: 2   
Hardware: all   
OS: All   
Bug Depends on:    
Bug Blocks: 12278    
Attachments: screenshot of the firewall log showing protocol type "47"

Description Timmothy Wilson 2017-01-15 12:14:05 UTC
Created attachment 493 [details]
screenshot of the firewall log showing protocol type "47"

In the WebIF (Logs|Firewall Log), the page shows the protocol type, too.

However, in case of a protocol different than TCP and UDP, it only lists the protocol number (see screenshot, protocol #47 -> GRE). The log file shows that this information is parsed corretly:

Jan 15 11:55:44 firewall kernel: DROP_INPUT IN=ppp0 OUT= MAC= SRC=1.34.187.[REDACTED] DST=188.[REDACTED] LEN=52 TOS=0x00 PREC=0x00 TTL=41 ID=55353 DF PROTO=47 MARK=0xd2

While this is not necessarily an error, it might be useful to display the name of the protocol, too, so the user will not have to look it up. A list of IP protocol numbers is available here: https://en.wikipedia.org/wiki/List_of_IP_protocol_numbers
Comment 1 Alexander Marx 2017-01-21 16:13:15 UTC
i will have a look at it.
Comment 2 Peter Müller 2017-08-30 16:50:21 UTC
Something similar happens here with protocol number 4 (IP-in-IP encapsulation):

16:28:19 IN=ppp0 OUT= MAC=[REDACTED] SRC=87.123.XXX.XXX DST=87.173.XXX.XXX LEN=106 TOS=0x00 PREC=0x00 TTL=59 ID=0 DF PROTO=4 MARK=0xcb
Comment 3 Peter Müller 2020-04-10 11:10:02 UTC
This is more or less a firewall bug, but not a critical one.
Comment 4 Stefan Schantl 2021-07-13 17:01:24 UTC
I've send a patch to the development mailing list to fix this issue.

https://patchwork.ipfire.org/project/ipfire/patch/20210713165851.3261-1-stefan.schantl@ipfire.org/

Please test and provide some feedback.

Thanks in advance,

-Stefan