找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5602|回复: 17

请教bwq518版主的tomato固件如何增加pptp客户端数量(现在最多6个)--已部分解决。

[复制链接]
发表于 2014-10-12 00:14 | 显示全部楼层 |阅读模式
本帖最后由 cnhhwy 于 2014-10-19 16:54 编辑

大家好,我用hg320刷了bwq518版主的tomato-K26USB-1.28.121-MIPSR2-20140808.Hyzoom.RT_N5x-16M-AIO-PY-GAE.trx这个固件,在使用pptp virtual**的过程中,发现最多可以建立6个客户,并且说明里也说明了这一点,现在我有10多个用户打算使用这个,请问如何能超出6个的限制啊。谢谢了。

.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
发表于 2014-10-12 20:22 | 显示全部楼层
在买一个哈
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-10-13 16:19 | 显示全部楼层
一定要pptp?openvirtual**的客户端无数量限制的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-10-13 19:24 | 显示全部楼层
openvirtual**无限制,只是要配置一下,Openvirtual**还支持账号密码认证或者证书认证,更方便,随便选
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-10-13 21:47 | 显示全部楼层
试试修改pptpd_users这个nvram变量,应该是可以的。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-10-14 08:09 | 显示全部楼层
非常感谢,我去试下,结果回来汇报,主要是openvirtual**需要客户端的,为了操作方便点。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-10-14 08:50 | 显示全部楼层
看了下virtual**-pptp-server.asp文件,如您说所应当是pptpd_users文件,可找查了tomato.js文件和interfaces.js文件,水平不行,都没有找到如何限制的内容,nvram里的东西确实不知如何修改了,我不想当伸手党,可百度不到这方面的,能提示下吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-10-14 09:14 | 显示全部楼层
又试了下,不支持mtd命令:(
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-10-14 09:33 | 显示全部楼层
查到了。pptpd_users里配置的是添加的用户名和密码,限制的地方还是没有找到。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-10-16 22:04 | 显示全部楼层
自已顶一下,还没有找到思路。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-10-17 12:44 | 显示全部楼层
我给你个思路, 就是一个用户名可以同时供好几个人使用,你可以试试。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-10-17 16:35 | 显示全部楼层
非常感谢,能不能建立超过6个的用户名啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-10-19 16:53 | 显示全部楼层
通过调试,找到了。在virtual**-pptp-server.asp文件中的
this.init('ul-grid', 'sort', 6, [
那个“6”就是限制。当然下面的ip范围判断(超过6个)也要手动删除掉。
if (Math.abs((aton(a.value) - (aton(b.value)))) > 5) {
ferror.set(a, '错误的IP地址范围 (最多6个IP)', quiet);
ferror.set(b, '错误的IP地址范围 (最多6个IP)', quiet);
elem.setInnerHTML('pptpd_count', '(?)');
return 0;
}
增加后看了下,nvram 里的pptpd_users里已有用户。会不会有别的没发现的问题,没条件试了。

感谢各位的提示,收益非浅。




本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

点评

LZ牛屄,那么我想请问一下,修改这个限制后,pptp同时在线的客户端能超过6个吗?还是只是能配置更多的客户名,但同时在线仍旧不超过6个?谢谢!  详情 回复 发表于 2016-1-30 14:24
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-9-22 11:27 | 显示全部楼层
你好,问下bwq518的tomato pptp里服务器设置里,pptp用户列表没办法设置客户端办公网络,怎么样才能设置呢,谢谢

tomato muiltwan版本里有“客户端办公网络”这个设置
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-10-6 16:22 | 显示全部楼层
我用老外的方法,SSH连进去, 3个指令就好。

Alright, sorry it took so long, but here goes,

The way I got it to work was to SSH into the router, that is, to use an SSH client, such as PuTTY on windows, to connect to the router. Keep in mind that you have to have the SSH Daemon turned on, via ADMINISTRATION > SSH DAEMON on the web-configuration page.

I got in using username 'root' and the password was the same that I use on the web-configuration page.

Issuing the following command will list (in plain-text) the users & passwords currently set up.

nvram get pptpd_users
This will return a text-string consisting of all the usernames & passwords, where the username is immediately followed by the password in brackets ( username<password> ) So, all I did was append this string with the additional usernames and passwords, and used the following command to save it back to the nvram of the router.

nvram set pptpd_users='existing_username1<existing_password1>existing_username2<existing_password2>new_username1<new_password1>'
next, I committed nvram, which as I understand it, "saves" it so that it will be there after restarts.

nvram commit
After this, I exited my SSH connection, and via the web-configuration page, I rebooted the router. Upon reconnecting to it, I saw my new user & password on the list. I'm up to 8 users & passwords, and it seems to be working fine. I don't know how long of a string you can pass to that "nvram set" command, so maybe at some point it will error out if you put too many or too many with long usernames & passwords, but in any case, that's how I did it.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-26 00:43

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表