This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DSL timeouts

Hi guys,

Below is a post from over a year ago that describes how to make ASL v4 reconnect its DSL quicker than 15 minutes.  I just upgraded to V5 to find that the stupid timeouts still exist and after a reboot there is no internet connection for 15 minutes.  I have tested this old fix and it still is valid and works well.  I find it hard to believe that it has not being changed in the production build yet!  Anyway, below is the contents of the original post again.

If you are using pppoe (ie DSL) to connect to the net and you reset your modem Astaro takes 15 minutes to reconnect. I traced this to the DSL.sh file in /var/chroot-pppoe/bin where the timeouts are set to 900 seconds. These to me seem to be way too high. I changed mine as follows:


 Code:

# timeouts in seconds
MINTIME=60
ACRETRY=10
PPPOERETRY=60

 

This seems to work very nicely and gets you reconnected to the net almost instantly.

Maybe you might like to either review the default settings or allow them to be overridden in webmin interface.

Simon....


This thread was automatically locked due to age.
Parents
  • theRat,

    the timeout itself is not stupid - many providers block access after a certain number of failed login attempts. Imagine you provide accidentally a wrong password, the firewall tries three or more times uups and your account is blocked and you would have to call the support or you would end up here posting something like 'the stupid firewall doesn't prevent from being blocked ....' [:)]

    A switch to make this option configurable is noted on the wishlist already.


    read u
    o|iver
  • Oliver,

    15 minutes between retries is way too long. I personally don't want to be off the air for 15 minutes everytime I get disconnected from the ISP.  And this delay occurs everytime you reboot the firewall.

    Glad to see it has made the wishlist  
  • Hi,

    Dame i delete some lines in my DSL.sh 
    how i could recover it ?

    Please help.

    can i overwrite this file with a other dsl.sh ?
    how can i copy a other dsl.sh file to my Astaro

    Thanks Greetings Piet
  • @heckpiet: it is a static file, so you could replace it

    @theRat: normally the timer must not be used - it may happen that ASL reconnects too fast  for some DSL access concentrators. Don't want to disclaim that this timer is sometimes a source of support requests but not very often - my personal installation never had a problem with reconnecting.

    read you
    o|iver
  • nod for verizon DSLAMS having the timer set to 10 seconds works just fine..[:)]

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow

Reply Children
  • How i can replace it ??

    Mybe you could explan me this i a few words ...

    thanks
  • heckpiet,

    Below is the contents of the file so you can at least fix it.

     Code:
    #!/bin/bash

    #  Copyright (C) 2001 Astaro AG                
    #  For copyright information look at /doc/astaro-license.txt   
    #  or http://www.astaro.com/doc/astaro-license.txt             
    #
    # $Id: DSL.sh,v 1.9 2004/03/12 17:06:25 mgehrlein Exp $

    #
    # Maintainer: Markus Hennig 
    #

    if [ $# != 2 ] ; then
            echo "./DSL.sh IPPARAM MSS"
            exit 1
    else
            IPPARAM=$1
            MSS=$2
    fi

    HW=$(echo $IPPARAM | awk -F "#" '{print $1}')
    SYMN=$(echo $IPPARAM | awk -F "#" '{print $2}')

    # timeouts in seconds
    MINTIME=60
    ACRETRY=10
    PPPOERETRY=60

    mount -t proc proc /proc 2> /dev/null

    # init for $ETH0 without a ip-address
    # but it works also with a ip adrress, but we dont recommend this!
    ifconfig $HW 0.0.0.0

    # endlos loop for flat, always connected line
    while true; do 
            #debug output access concetrator
            ACERR=1
            while [ $ACERR = 1 ] ; do 
                    ACOUT=$(/usr/sbin/pppoe -I $HW -A | grep -v \"\-\-\")
                    if [ ${#ACOUT} = 0 ] ; then
                            ACOUT="Can not connect DSL AC - retry in $ACRETRY seconds"
                            logger -p daemon.info -t pppoe-sh "$ACOUT"
                            sleep $ACRETRY
                    else
                            ACERR=0;
                            logger -p daemon.info -t pppoe-sh "$ACOUT"
                    fi
            done
            STARTT=`date +"%s"`
            /usr/sbin/pppd-pppoe call $SYMN ipparam "$IPPARAM" pty "/usr/sbin/pppoe -I $HW -m $MSS"
            ENDT=`date +"%s"`

            DIFFT=$(($ENDT - $STARTT))

    # TODO:
    # - watch user hangup (this is no error)
    # - only sleep if "session limit exceeded"

            if [ $DIFFT -lt $MINTIME ] ; then
                    logger -p daemon.info -t pppoe-sh "DSL connection time shorter then $MINTIME seconds ($DIFFT sec): Error? -
     wait $PPPOERETRY seconds"
                    sleep $PPPOERETRY
            fi
    done  

  • Hello,

    either you do a backup and reinstall, or I can email you this file. You can SCP it then onto your machine


    Alex
  • but how can i copy the new DSL.SH from my Windows Maschine into the ASL ?

    Thanks
  • Hi,

    Okay i reinstalled my ASL 5. Thanks for Helping
  • MINTIME=60 => for what is this 
    ACRETRY=10 => for what is this 
    PPPOERETRY=60 => for what is this
  • Edit your account name, save, change it back, save... PPPoE will auto retry then without waiting 15mins.
  • MINTIME=60 => for what is this 
    ACRETRY=10 => for what is this 
    PPPOERETRY=60 => for what is this


    I'd like to also know what these mean.

    I'm trying to keep my box connected to my Verizon FIOS connection that uses PPPoE.