• SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

VPN - VPN Client (PPTP/L2TP Client) 3.0.0.4.374.35_2

To tell you the truth I am a bit afraid to do it all over again what would you suggest?, what I did was go back to older version 270.26b then upgrade to sdk5 and now it is working I could keep on going and upgrade to the latest version 35_4 but the question is would that make any difference between what i have now and what I would have? and the second question is what should I do just reboot it manually or via the web gui?
 
To tell you the truth I am a bit afraid to do it all over again what would you suggest?, what I did was go back to older version 270.26b then upgrade to sdk5 and now it is working I could keep on going and upgrade to the latest version 35_4 but the question is would that make any difference between what i have now and what I would have? and the second question is what should I do just reboot it manually or via the web gui?

If you are coming from 270.26b then you might as well stick with the sdk5 build since it will use the same wireless driver.

I'm just saying there should be no difference regarding VPN routing between the regular and the sdk5 build. There's a chance your problem came from the fact you are switching back and forth between an sdk5 build and an sdk6 without doing the required factory default reset.
 
There should be no difference in relation to VPN code between both releases. SDK5 merely uses an older wireless driver and HW acceleration module. There's a good chance that what resolved your issue wasn't the FW change but the fact your router was rebooted after flashing.

when you say faster wireless drivers will it go faster than 450 Mbit/s on the 5ghz or htat would be the fastest speed?
 
when you say faster wireless drivers will it go faster than 450 Mbit/s on the 5ghz or htat would be the fastest speed?

and hw acceleration??? really I do not know what that would make a difference for me will it work better?
 
If you are coming from 270.26b then you might as well stick with the sdk5 build since it will use the same wireless driver.

I'm just saying there should be no difference regarding VPN routing between the regular and the sdk5 build. There's a chance your problem came from the fact you are switching back and forth between an sdk5 build and an sdk6 without doing the required factory default reset.

should I press the facoty restore or how do I do that? because I have done that before.
 
when you say faster wireless drivers will it go faster than 450 Mbit/s on the 5ghz or htat would be the fastest speed?

The current RT-N66U wifi driver has range and performance issue. The SDK5 build uses the older driver that fixes both.

The Factory Restore button on the webui will be fine, just make sure you use it only after you have flashed the firmware.
 
Tried again with The curten y versión and again pptp isuues and this time I flashes then factor y default then I did the settings and no luck so for the time I think I'll stick On the sdk5.

Anyway thanks.




Sent from my iPhone using Tapatalk
 
RMerlin, in my attempt to use 35_4 to setup and use long-awaited pptp client i found strange behaviour:
sometimes nvram string "vpnc_clientlist" corrupts and prevents "pptp/l2tp client" tab of "Advanced_VPNClient_Content.asp" from functioning.

I can confirm the nvram variable vpnc_clientlist corruption on my N66U with 3.0.0.4.374.35_4. First time I experienced it was when I had 4 different VPN client settings in the list and DELETED one of them. I also got corruptions simply by clicking the DISCONNECT button when L2TP client connection was active.

Then the string in nvram got corrupted and the VPN Client settings table got completely empty on the web page. Also JavaScript errors resulting from this broken page prevented any new servers to be added.

I hope this is a simple fix that can be implemented soon because it makes this page rather unusable. Before I was able to discover this thread, I had to factory reset my router twice to restore normal page behaviour (now I fix the nvram directly from SSH).

Additionally I have a question: what would be the right shell command to bring up one of the L2TP or PPTP connections configured in the PPTP/L2TP Client tab? How can I specify a particular client configuration? I want my L2TP connection to start automatically using wan-start script.

Thanks!
 
Last edited:
I did number of tests with various PPTP username and passwords, and so far I'm unable to cause it to get corrupted.

Note that Advanced_VPN_Client.asp doesn't use nvram_get() to obtain that list:

Code:
var vpnc_clientlist = decodeURIComponent('<% nvram_char_to_ascii("","vpnc_clientlist"); %>');

I don't remember what's the difference between nvram_char_to_ascii() (which was added by Asus) and nvram_clean_get() (which was added by me), but I would assume Asus's function was written to take care of that issue.
 
Not that I think it should matter but you never know. My connections were all L2TP, not PPTP in that list. I could make a YouTube video to show what happens, but I guess that won't help much anyway.

Could you please point me to the right location of JavaScript that handles interactions with that page? I have sufficient knowledge in web technologies to try and debug this myself but would like not to waste time reverse engineering everything from the start.

Also, could you please answer my question above (shell command that would start L2TP client connection from a script)?
 
Not that I think it should matter but you never know. My connections were all L2TP, not PPTP in that list. I could make a YouTube video to show what happens, but I guess that won't help much anyway.

Could you please point me to the right location of JavaScript that handles interactions with that page? I have sufficient knowledge in web technologies to try and debug this myself but would like not to waste time reverse engineering everything from the start.

A good portion of it is in the httpd daemon, not the Javascript code (which is directly inside the Advanced_VPN_Client.asp page).

Also, could you please answer my question above (shell command that would start L2TP client connection from a script)?

No idea, I haven't had time to study that part of the code (which was added by Asus).
 
You can also use mount bind instead, to mount a modified version of any file on top of the original one.

Double body tags is most likely an error caused by the code merge.
 
No idea, I haven't had time to study that part of the code (which was added by Asus).

Perhaps now after working a bit more on the latest Asus code merging you would have some new insight? (I'm now on 3.0.0.4.374.38)

I am very interested to be able to start and stop a particular PPTP or L2TP client connection (from a list of several connection) using a shell script.

Also, it would help me tremendously if I could learn a way to execute my own scripts once PPTP/L2TP connection has been established or terminated (i.e. when ppp5 interface goes up or disappears).
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top