1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PPTP password cannot contain ~!@#$%^&*()_+ in tomato gui why?

Discussion in 'Tomato Firmware' started by friedgreen, Jan 26, 2014.

  1. friedgreen

    friedgreen Serious Server Member

    All Tomato gui's have an inability to use special characters #$%^etc in the pptp password. Is there any permanent fix for this gui limitation ? Editing the chap-secrets file and inserting those characters between quote symbols fixes this but only until the next reboot.
    This has been a long standing bug, and requires a modification of the gui to insert quote symbols into the pptp chap-secrets file.

  2. mstombs

    mstombs Network Guru Member

    Guess it's because the characters are invalid in nvram vars. Would need a mod author to store the info in coded form, base64 or similar. There is a way to store files in nvram using this encoding - but I suspect the chap-secrets file is regenerated just before use.
  3. koitsu

    koitsu Network Guru Member

    Re: storing the info in an alternate form (base64, md5, etc.) has been discussed. There is a solution but it involves introduction of a second NVRAM variable, which introduces its own set of complexities. Those wondering should read (not skim) the thread as it goes over the problem in detail: http://www.linksysinfo.org/index.php?threads/why-is-http_passwd-not-stored-with-md5crypt.67389/

    TL;DR -- It sounds easy to fix at first but it really isn't. There are many, many edge cases.

    As for the OP's issue: there is an NVRAM capability called nvram setfile2nvram which in effect allows you to make certain files "retained" after reboot. This may work for you for your pptp configuration file. Read the thread and the reference materials from Toastman: http://tomatousb.org/forum/t-297838/

Share This Page