linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* strange fragmented udp packets
@ 2010-12-28  6:54 Thomas Fjellstrom
  2011-01-03 23:47 ` Thomas Fjellstrom
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Fjellstrom @ 2010-12-28  6:54 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-net

I've been seeing a strange problem poke its head up since I switched from 
pfSense to a debian based shorewall firewall.

I've been un able to connect to my VOIP provider due to some oddly fragmented 
UDP sip packets not ever reaching the application layer on the provider's 
side.

I can't explain the packets getting fragmented (or I couldn't, see below). And 
only have a guess as to why my VOIP provider isn't seeing them, I've heard 
that some firewalls explicitly block fragmented UDP as its often used in DoS 
attacks, and for little else.

Here's at least what tcpdump has to say..

packet coming in:
23:38:26.136021 IP x.x.x.x.5060 > x.x.x.x.5060: SIP, length: 582

packet going out:
23:38:18.136085 IP x.x.x.x.5060 > x.x.x.x.5060: SIP, length: 544
23:38:18.136169 IP x.x.x.x > x.x.x.x: udp

...

After writing all that I've realized that the problem is the mtu on the nic 
attached to my cable modem, it was set to 576 for some odd reason. Changing 
the mtu to 1500 fixes my problem, but what is causing it to auto select an mtu 
of 576 anyhow? Could my modem be telling it that 576 is better for it?

-- 
Thomas Fjellstrom
thomas@fjellstrom.ca

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: strange fragmented udp packets
  2010-12-28  6:54 strange fragmented udp packets Thomas Fjellstrom
@ 2011-01-03 23:47 ` Thomas Fjellstrom
  2011-01-04  8:50   ` Alexander Clouter
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Fjellstrom @ 2011-01-03 23:47 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-net

On December 27, 2010, Thomas Fjellstrom wrote:
> I've been seeing a strange problem poke its head up since I switched from
> pfSense to a debian based shorewall firewall.
> 
> I've been un able to connect to my VOIP provider due to some oddly
> fragmented UDP sip packets not ever reaching the application layer on the
> provider's side.
> 
> I can't explain the packets getting fragmented (or I couldn't, see below).
> And only have a guess as to why my VOIP provider isn't seeing them, I've
> heard that some firewalls explicitly block fragmented UDP as its often
> used in DoS attacks, and for little else.
> 
> Here's at least what tcpdump has to say..
> 
> packet coming in:
> 23:38:26.136021 IP x.x.x.x.5060 > x.x.x.x.5060: SIP, length: 582
> 
> packet going out:
> 23:38:18.136085 IP x.x.x.x.5060 > x.x.x.x.5060: SIP, length: 544
> 23:38:18.136169 IP x.x.x.x > x.x.x.x: udp
> 
> ...
> 
> After writing all that I've realized that the problem is the mtu on the nic
> attached to my cable modem, it was set to 576 for some odd reason. Changing
> the mtu to 1500 fixes my problem, but what is causing it to auto select an
> mtu of 576 anyhow? Could my modem be telling it that 576 is better for it?

Anyone have a hint? I've checked with my sip provider and they don't have 
iptables set up, so nothing should be getting in the way of these packets. For 
some reason they just aren't reaching the SIP server.

-- 
Thomas Fjellstrom
thomas@fjellstrom.ca

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: strange fragmented udp packets
  2011-01-03 23:47 ` Thomas Fjellstrom
@ 2011-01-04  8:50   ` Alexander Clouter
  0 siblings, 0 replies; 3+ messages in thread
From: Alexander Clouter @ 2011-01-04  8:50 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-net

Thomas Fjellstrom <thomas@fjellstrom.ca> wrote:
>
>> I can't explain the packets getting fragmented (or I couldn't, see below).
>> And only have a guess as to why my VOIP provider isn't seeing them, I've
>> heard that some firewalls explicitly block fragmented UDP as its often
>> used in DoS attacks, and for little else.
>> 
>> Here's at least what tcpdump has to say..
>> 
>> packet coming in:
>> 23:38:26.136021 IP x.x.x.x.5060 > x.x.x.x.5060: SIP, length: 582
>> 
>> packet going out:
>> 23:38:18.136085 IP x.x.x.x.5060 > x.x.x.x.5060: SIP, length: 544
>> 23:38:18.136169 IP x.x.x.x > x.x.x.x: udp
>> 
>> ...
>> 
>> After writing all that I've realized that the problem is the mtu on the nic
>> attached to my cable modem, it was set to 576 for some odd reason. Changing
>> the mtu to 1500 fixes my problem, but what is causing it to auto select an
>> mtu of 576 anyhow? Could my modem be telling it that 576 is better for it?
> 
> Anyone have a hint? I've checked with my sip provider and they don't have 
> iptables set up, so nothing should be getting in the way of these packets. For 
> some reason they just aren't reaching the SIP server.
> 
pmtu?

Play around with the handy utility tracepath (and tracepath6) to 
<phun>discover</phun> more!

Cheers

-- 
Alexander Clouter
.sigmonster says: May you have many handsome and obedient sons.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-04  9:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-28  6:54 strange fragmented udp packets Thomas Fjellstrom
2011-01-03 23:47 ` Thomas Fjellstrom
2011-01-04  8:50   ` Alexander Clouter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).