router/firewall log interpretation help
I've set up a Freesco router/firewall (university LAN/WAN) that does logging, and I'd like some help interpreting something I saw in the log. Hopefully, with some help I get here and scattered reading here and there, I'll get a better idea of log entries and how to interpret them. I look at the log once a day or so, just to see what sorts of activity it's logging and to see if I can understand any of it. Some strange entries showed up yesterday, and I'd just like to get some input on what they mean. Here's the relevant excerpt:
-----------BEGIN FREESCO LOG EXCERPT-----------------
Feb 17 15:08:13 - kernel: IP fw-in deny eth0 UDP 192.168.1.101:68 255.255.255.255:67 L=328 S=0x00 I=391 F=0x0000 T=128 <snip> Feb 17 15:46:09 - kernel: IP fw-in deny eth0 UDP 192.168.1.100:68 255.255.255.255:67 L=328 S=0x00 I=183 F=0x0000 T=128 Feb 17 16:29:14 - kernel: IP fw-in deny eth0 UDP 192.168.1.100:68
255.255.255.255:67 L=328 S=0x00 I=17186 F=0x0000 T=128 ----------------END FREESCO LOG EXCERPT-----------------
If I understand correctly, a UDP packet is coming from 192.168.1.101 port 68 to 255.255.255.255 port 67. Have I got that part right? If so, it's sort of like a machine with a local address (192.168.x.x is class c addressing, right?) is making a dhcp request (I understood from something I read that port 68 is for dhcp) to any computer listening on port 67. Doesn't 255.255.255.255 include all machines with any IP address? Couldn't find much in the little bit of searching I did on port 67. And I'm at a total loss on what L=328 and the like means. Clarifications, observations, corrections and comments welcomed.
Thanks, James
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Good start James!
I've tried to clarify, piece by piece the output log for you below...
: Feb 17 15:08:13 - kernel: IP fw-in deny eth0 UDP 192.168.1.101:68 : 255.255.255.255:67 L=328 S=0x00 I=391 F=0x0000 T=128
Date
What did the logging
What chain the packet came in on
What the firewall did to the packet
What interface it came in on
What protocol
The source address:source port
The destination address:destination port
The length of the packet
The service descriptor
<Unsure of the rest>
DHCP works by sending out a broadcast packet, because in essence, it's a broadcast service. All machines connected to the same line need to know that there's a DHCP server running, and when they see the initial DHCP packet, and they're set to accept the service, they ask for an IP, and the server send one out to that physical address.
Let me know if you need more clarification. There are a ton of resources on the web regarding the common log format. Try googling common log format for firewalls, and you should get some more information about the above.
--Armen
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
One correction to what Armen wrote.
The example packet he chose is coming FROM port 68, going TO port 67. 68 is the DHCP client, 67 the server. So a DHCP client is sending out a broadcast packet (the only thing it can do, since it doesn't know the DHCP server's IP address ... in some cases, it won't have its own IP address or even know the network number) to ask any DHCP server that hears it to offer it a lease (an address and related info).
DHCP *servers* often send the replies as broadcast packets too, since they are often replying to hosts that do not yet have IP addresses. But they don't send out broadcast packets just to hear themselves talk ... only in response to a broadcast packet from a client.
The statement that "All machines connected to the same line need to know that
there's a DHCP server running" is the piece that is wrong. Nobody needs to know that there is a DHCP server running, as a general matter. A DHCP client needs to find a server only when it actually needs to get or renew a lease, and it does so by initiating the exchange.
In this case, what you (James) saw was probably a "leaky router" at some other site on the ISP's network ... one that let a broadcast packet improperly leak over to the ISP site. It tried several times but got no responses. There are other things it might be too, none of them your problem.
The simplest place to check port numbers, at least for the common ports, is /etc/services . For the less standard ones, there are bigger listings on the Web (easy to Google).
Quoted 25 lines · Armen Kaleshian
Good start James!
I've tried to clarify, piece by piece the output log for you below...
: Feb 17 15:08:13 - kernel: IP fw-in deny eth0 UDP 192.168.1.101:68 : 255.255.255.255:67 L=328 S=0x00 I=391 F=0x0000 T=128
Date
What did the logging
What chain the packet came in on
What the firewall did to the packet
What interface it came in on
What protocol
The source address:source port
The destination address:destination port
The length of the packet
The service descriptor
<Unsure of the rest>DHCP works by sending out a broadcast packet, because in essence, it's a broadcast service. All machines connected to the same line need to know that there's a DHCP server running, and when they see the initial DHCP packet, and they're set to accept the service, they ask for an IP, and the server send one out to that physical address.
Quoted 3 lines
Let me know if you need more clarification. There are a ton of resources on the web regarding the common log format. Try googling common log format for firewalls, and you should get some more information about the above.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Thanks for clarifying Ray! =D
On Wed, Feb 18, 2004 at 04:07:41PM -0800, Ray Olszewski wrote:
: One correction to what Armen wrote.
:
: The example packet he chose is coming FROM port 68, going TO port 67. 68 is : the DHCP client, 67 the server. So a DHCP client is sending out a broadcast : packet (the only thing it can do, since it doesn't know the DHCP server's : IP address ... in some cases, it won't have its own IP address or even know : the network number) to ask any DHCP server that hears it to offer it a : lease (an address and related info).
:
: DHCP *servers* often send the replies as broadcast packets too, since they : are often replying to hosts that do not yet have IP addresses. But they : don't send out broadcast packets just to hear themselves talk ... only in : response to a broadcast packet from a client.
:
: The statement that "All machines connected to the same line need to know : that
: there's a DHCP server running" is the piece that is wrong. Nobody needs to : know that there is a DHCP server running, as a general matter. A DHCP : client needs to find a server only when it actually needs to get or renew a : lease, and it does so by initiating the exchange.
:
: In this case, what you (James) saw was probably a "leaky router" at some : other site on the ISP's network ... one that let a broadcast packet : improperly leak over to the ISP site. It tried several times but got no : responses. There are other things it might be too, none of them your : problem.
:
: The simplest place to check port numbers, at least for the common ports, is : /etc/services . For the less standard ones, there are bigger listings on : the Web (easy to Google).
:
: At 04:39 PM 2/18/2004 -0500, Armen Kaleshian wrote:
: >Good start James!
: >
: >I've tried to clarify, piece by piece the output log for you below... : >
: >: Feb 17 15:08:13 - kernel: IP fw-in deny eth0 UDP 192.168.1.101:68 : >: 255.255.255.255:67 L=328 S=0x00 I=391 F=0x0000 T=128
: >
: >Date
: >What did the logging
: >What chain the packet came in on
: >What the firewall did to the packet
: >What interface it came in on
: >What protocol
: >The source address:source port
: >The destination address:destination port
: >The length of the packet
: >The service descriptor
: ><Unsure of the rest>
: >
: >DHCP works by sending out a broadcast packet, because in essence, it's a : >broadcast service. All machines connected to the same line need to know : >that
: >there's a DHCP server running, and when they see the initial DHCP packet, : >and
: >they're set to accept the service, they ask for an IP, and the server send : >one
: >out to that physical address.
: >
: >Let me know if you need more clarification. There are a ton of resources : >on the
: >web regarding the common log format. Try googling common log format for : >firewalls, and you should get some more information about the above. :
:
:
:
:
: -
: To unsubscribe from this list: send the line "unsubscribe linux-newbie" in : the body of a message to [email protected]
: More majordomo info at http://vger.kernel.org/majordomo-info.html
: Please read the FAQ at http://www.linux-learn.org/faqs
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs