ADSL over PPTP problems in Austria

Discussion in 'Tomato Firmware' started by mensa, Feb 9, 2007.

  1. mensa

    mensa Network Guru Member


    I really want to thank you for the best wrt-firmware I ever saw!

    Nearly perfect, but there is a little problem for us ADSL users in Austria.
    Here in our country ADSL is tunneled over PPTP and there are a lot of internet service providers, which cut the connection automatically after 24 hours or even 8 hours. The problem is, that tomato doesn't recognize this cut and doesn't go online again by itself. The webinterface still says "connected" - but that's not true. It's only true, that it's connected with the ADSL Modem which is also the PPTP server / gateway - but not connected to the internet. We have to click on disconnect and connect to connect again
    - but that's only possible from the lan side. Another option is to reboot the router, but only possible if on-site.

    Can you plese fix this, that tomato will recognize such connection losses and connect automatically to the internet again?

    I hope this description is comprehensible? Or maybe you already know of this problem? I know only our country Austria, where ADSL is tunneled over PPTP but maybe also users from other countries with the same technologie have the same problem.

    If I turn off the modem or plug out the network cable from the wan side, tomato recognizes the connection loss and tries to re-connect. That works perfect.

    But if I plug out the phone line from the modem or there was a forced connection drop from the internet service provider, tomato doesn't recognize it. Thats the problem.

    Can you please, please fix this? A whole country would thank you a lot!
  2. der_Kief

    der_Kief Super Moderator Staff Member Member

    Hi mensa,
    whats the connect mode "connect on demand" or "keep alive" ? Somewhere i read that you have set this to "keep alive" if there's a problem like yours. Maybe you should try this.

  3. mensa

    mensa Network Guru Member

    Hi der_Kief,

    thanks for you help, but I already had set the "Connect Mode" to "Keep Alive" and the "Redial Interval" is set to 30 seconds. That are also the default settings.

    The redial works correct, when I plug out the network cable to the modem or power off the modem, like I described.

    But there is no redial, when I plug out and in again the phone line from the modem. Tomato even doesn't recognize, that there was a connection loss. In the webinterface it still says "Connected" but that's not correct. I also did wait for about 5 minutes, but the router didn't reconnect, because it thinks, that it is still connected. Also no entries in the syslog.

    Maybe the check routine for the wan status has to be changed for ADSL over PPTP connections?
  4. der_Kief

    der_Kief Super Moderator Staff Member Member

    Hi mensa,

    since i use ADSL by PPPoE i have no experience with the other connection modes and so i'm not a great help with this. I think you should send Jon a email about this problem ! I think he can help you :biggrin:

  5. azeari

    azeari LI Guru Member

    i'm guessing its possible to use cron to manually force disconnect and reconnect after every 8 or 24hrs as u mentioned. unfortunately me have no experience with that :p someone else might wanna chip in here

    Edit: btw, i believe its ur modem's fault that it doesn't report the disconnection to the router.
  6. der_Kief

    der_Kief Super Moderator Staff Member Member

    Yes thats possible. For example:
    cru a WAN_Restart "15 5 * * * service wan restart"
    will restart the WAN service at 5.15 a.m. or
    cru a WAN_Restart "* */8 * * * service wan restart"
    will restart the WAN service every 8 hours.

    One more idea. Maybe you can upgrade the modem firmware and see if it include a fix for that !?

  7. axelc

    axelc LI Guru Member

    Hi Mensa,

    I'm using tomato since 0.6 and never had problem with aon. Do you have the same problem with the original firmware?
    I use a wrt54 GS V 1.1 with tomato 1.3 and the following settings.
    Hope this helps.

    Attached Files:

  8. mensa

    mensa Network Guru Member

    Hi axelc,

    I also have a GS v1.1 but with tomato 1.04.0944 (I am only a tomato since 2 days ;) ).

    No, I don't have this problem with the original Linksys firmware. It recognizes the connection loss and reconnects automatically (like it also should be in future tomato versions). But this is also a known problem in the DD-WRT firmware. Please have a look at this bugtracker entry: or in the DD-WRT forum there are also some threads because of this problem.

    I have the same PPTP settings like you, axelc (for check interval I use 30 seconds, but thats the default value and shouldn't be a problem). I use the SpeedTouch 546 v6 Modem with newest Telekom Austria Firmware in bridge / single user mode - not router mode.

    @ der_Kief, azeari: It's not the modem's fault, because it works without problems with original Linksys firmware and also has the newest Telekom Austria firmware already on it.

    Axelc, can you please try following steps? Would be very helpful:
    - Open tomato's webinterface Status - Overview.
    - Plug out the phone line cable (not the rj45 networking cable) from your ADSL modem (which one are you using?)
    - Watch for some minutes if tomato recognizes the connection loss -> Status - Overview - Status should change from "Connected" to "Disconnected" or "Connecting". Mine still says "Connected", but that's not correct. What does your's say?
    - Plug in the phone line cable again into your ADSL modem and have a look again on Status - Overview - Status. What does it now say?
    - Try to visit any website in your browser. Possible?

    - From where in Austria are you?

    Thanks for your help.
  9. der_Kief

    der_Kief Super Moderator Staff Member Member

    Hi mensa,

    did you contact Jon by email ? Normally he response very quick and maybe he already has a fix for that. Give it a try !

  10. mensa

    mensa Network Guru Member

    Yes, I'm in contact with him too, but it's hard to fix this for him, because he can't test this connection type.

    He also suggested a workaround with a cronjob which restarts the wan from time to time, or another better solution which tries to pings one or more targets in the internet and if there is no respond, wan service will be restarted.

    Yes, it's a workaround but no real solution.
  11. axelc

    axelc LI Guru Member

    Hi mensa,

    tomato 1.03 or 1.04 is nearly the same (see changelog), thats the reason i'm still on 1.03

    I disconnected my speedtouch modem (don't know the firmware, how can i check this?) from the phoneline and tomato shows still connecting. I think this is correct because i'm connected to the modem via pptp and not to the wan. When I reconnect it was not possible to browse a site. I had to click disconnect and then connect.
    But if you take a look to my screenshoot, you will see that my wrt is since 18 days online. So in this time i had at least 18 drops from aon and no problem at all. I think there is a differents between unplug the phoneline and drop the line by aon.

    The only problem I have, after a manuel disconnect and connect it takes at least 2 minutes to change the status from connecting to connected.


  12. mensa

    mensa Network Guru Member

    Ok, maybe there is really a difference, but so you have the same problems like me.

    But shouldn't it be also fixxed, that the router reconnects automatically if there was a problem with the phone line (shouldn't be to often, but would be really helpful altough).

    You can see the firmware in the webinterface of the modem.
  13. ZORAX

    ZORAX Network Guru Member

    I want a script that would start with the router and do exactly the above - test from time to time if there is a connection with the Internet and, if it is down, restart the WAN interface.

    Could anyone please show me an example of a script that would do that?
  14. c_antonio

    c_antonio Guest

    Shell script that pings

    This is the shell script I use on Tomato Version 1.19-mp1 to get around the problem.

    if ping -c 1
    echo success
    echo failure
    logger AUTO-RECONNECT: PING failed, restarting WAN
    service wan restart

    I'm Canadian, so I'm pinging (if this site is down, then for me there is little point to using the internet). If the ping fails, it forces a wan restart and logs it in the system log. Just add it to the crontab:

    cru a WAN_RESTART "*/5 * * * * /path-to-script/"

    It was really peeving me off when I'd be away for long periods and my internet would disconnect early on, preventing me from being able to shell home.
  15. mensa

    mensa Network Guru Member

    I use this command in "Administration" - "Scripts" - "WAN Up":

    cru a wan_check "*/15 * * * * ping -c 1 || ping -c 1 || ( date >> /jffs/wan_restarts.log ; cru d wan_check && service wan restart ) "
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice