It is currently Wed Sep 26, 2018 5:47 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: persistent tunnel not brought up according to timeouts
PostPosted: Fri Jun 01, 2012 3:08 am 

Joined: Tue May 29, 2012 4:30 am
Posts: 1
Hello,

I'm running openl2tp on a mips proc.
Here is my openl2tp.conf:
ppp profile modify profile_name=default \
auth_none=yes \
idle_timeout=30 \
lcp_echo_interval=10 \
lcp_retransmit_interval=1

tunnel create tunnel_name=TEMP dest_ipaddr=192.168.200.1 \
host_name=CLI001 \
persist=yes \
hello_timeout=5 \
max_retries=2 \
retry_timeout=5 \
idle_timeout=5

session create tunnel_name=TEMP \
session_name=TEMP \
user_name=qacafe \
user_password=qacafe123

As you can see, in ppp profile, I'd like to disconnect PPP if 30 seconds have passed without
any activity. I see this happen successfully, but after the tunnel is brought down,
it takes 8-10 minutes to restore instead of 5 seconds.
Also, when the PPP session is disconnected, there is no PPP/LCP Terminate Ack from
the LNS, instead the LNS sends StopCCN, which causes LAC to retransmit PPP/LCP Terminate

I've attached a wireshark capture,

Would appreciate any assistance,

gearhead23


Top
 Profile  
 
 Post subject: Re: persistent tunnel not brought up according to timeouts
PostPosted: Mon Jul 16, 2012 8:47 am 
Site Admin

Joined: Sun Jul 27, 2008 1:39 pm
Posts: 122
gearbox23 wrote:
As you can see, in ppp profile, I'd like to disconnect PPP if 30 seconds have passed without
any activity. I see this happen successfully, but after the tunnel is brought down,
it takes 8-10 minutes to restore instead of 5 seconds.
Also, when the PPP session is disconnected, there is no PPP/LCP Terminate Ack from
the LNS, instead the LNS sends StopCCN, which causes LAC to retransmit PPP/LCP Terminate

In the tunnel, set persist_pend_timeout. It must be at least 120 seconds. This is the minimum persist retry period. You'll need to patch the source to reduce this time. (It is set this high to ensure that any state held by the peer for the previous tunnel has timed out.)
idle_timeout is the time that a tunnel will stay up when it has no sessions. It isn't what you want here.
Set persist=yes and persist_pend_timeout=5 in your session parameters.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group