Linux Netfilter discussions
 help / color / mirror / Atom feed
* Match DF ( Don´t Fragment) bit
@ 2003-04-23 15:24 Mathias Sundman
  2003-04-25  9:15 ` Maciej Soltysiak
  2003-04-25 20:00 ` Martijn Lievaart
  0 siblings, 2 replies; 4+ messages in thread
From: Mathias Sundman @ 2003-04-23 15:24 UTC (permalink / raw)
  To: netfilter

I´m using vtun to create an encrypted ethernet bridge.

My setup is like this:
LocalNet1 - BRIDGE1 - Internet - BRIDGE2 - LocalNet2

where BRIDGE1 and BRIDGE2 is linux mashines that bridge
between one physical interface and a tap device created
by vtun.

This works great, however there is a problem with the MTU.

If a mashine on LocalNet1 sends full size packets (1500b)
to a mashine on LocalNet2, it will exceed 1500 bytes
when it´s encrypted and sent over the internet. These packets
will then be fragmented. This is fine as long as the fragments
gets through...

However, this is not always the case. Therefor I´ve tried to
find a way to make the mashines understand that they can´t
use that big packets when talking to mashines on the other side
of the bridge.

So I made a quick hack in netfilter/iptables which enabled me
to return ICMP "dest-unreachable, fragementation needed but
DF flag set" packets when a to large packet arrives.

That seemed to do the trick, but I´d like to do this only if the
original packet had the DF flag set, so my question is, is it
possible to check whether the DF flag is set or not?

(Please CC me on replies)

Regards
Mathias Sundman




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

end of thread, other threads:[~2003-04-25 20:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-23 15:24 Match DF ( Don´t Fragment) bit Mathias Sundman
2003-04-25  9:15 ` Maciej Soltysiak
2003-04-25  9:43   ` Dmitry Labutcky
2003-04-25 20:00 ` Martijn Lievaart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox