Skip to contentSkip to conversation

pptp conntrack stream timeout

DISCUSSION Thomas Jarosch 2 participants 3 messages Jun 20, 2005 – Jun 21, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

Hello Harald,

while looking at the source of the PPTP conntrack helper, I noticed the "PPTP_GRE_STREAM_TIMEOUT" is set to 5 days.

Is there a reason why this timeout is so high?
5 days is pretty long for a timeout.

Cheers,
Thomas

#1 lore raw
Quoted 7 lines · Thomas Jarosch

Hello Harald,

while looking at the source of the PPTP conntrack helper, I noticed the "PPTP_GRE_STREAM_TIMEOUT" is set to 5 days.

Is there a reason why this timeout is so high?
5 days is pretty long for a timeout.

It's set to the same timeout like the TCP ESTABLISHED timeout.

The main reason being that it is impossible to spoof a connection from one side into that state without appropriate feedback traffic. The other reason being that nothing in the respective protocol specifications prevent a tunnel (or a tcp session) from being completely idle for an indefinite amount of time before continuing traffic.

5 days is the compromise between now and eternity ;)

Signature · 5 lines
- Harald Welte <[email protected]>                 http://netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie
#2 lore raw
Quoted 8 lines · Harald Welte
Quoted 5 lines

while looking at the source of the PPTP conntrack helper, I noticed the "PPTP_GRE_STREAM_TIMEOUT" is set to 5 days.

Is there a reason why this timeout is so high?
5 days is pretty long for a timeout.

It's set to the same timeout like the TCP ESTABLISHED timeout.

Quoted 7 lines

The main reason being that it is impossible to spoof a connection from one side into that state without appropriate feedback traffic. The other reason being that nothing in the respective protocol specifications prevent a tunnel (or a tcp session) from being completely idle for an indefinite amount of time before continuing traffic.

5 days is the compromise between now and eternity ;)

Thanks for enlightening me :)

Thomas