ROS配置的几个事项

在ROS热点的开发测试工作中发现,如果更改配置设计当前在线用户的,用户在下次登录后生效。

在其它模式下同上。

ros时间转换正常时间或时间戳

routeros的时间让我们用习惯了php之类语言的来说真是个坑,他用的是w(周)d(天)h(小时)m(分钟)s(秒)来记录的。。在php之类的程序里可能会有点麻烦,写了几行代码来转换。

$str="1w5d4h5m28s";
$xx = explode(",",substr(preg_replace("/([a-z])/", ",", $str), 0, -1));
for($x=count($xx); $x<=4; $x++) {array_unshift($xx,'0');}
$t = ($xx[0]*604800)+($xx[1]*86400)+($xx[2]*3600)+($xx[3]*60)+$xx[4];
echo "启动时间".date("Y-m-d H:i:s",time()-$t);

$t就是总运行的秒数~
用当前时间戳减$t就可以得到启动的时间戳,再转换时间格式就可以了。

ROS VPN 穿透管理

现在好多ISP接入都已经变成内网IP,不方便从外网远程管理。下面为大家介绍由熊茂祥提供的VPN穿透服务器,支持PPTP、L2TP、SSTP、OPENVPN(不建议使用PPTP,可能出现干扰无法使用),这4种VPN至少有一种能穿透你的内网。支持任何有VPN客户端的系统,包括但不仅限于ROS,碧海威(PPTP)。

开发人员提供了自动切换VPN协议的脚本,防止出现当前协议无法使用的问题:https://ros6.com/?action=show&id=218

服务器列表

洛杉矶:http://cts1.cat-home.org/
青岛:https://cts2.cat-home.org/(PPTP存在异常,请使用其他协议)
杭州:https://cts3.cat-home.org/
深圳:https://cts4.cat-home.org/
深圳2:https://cts5.cat-home.org/
香港:https://cts6.cat-home.org/

使用教程

选择一个服务器注册并登陆,过程简略;

添加映射,如下图,这里解释2个,VPN端口,这个无所谓,是服务器上的端口,后续访问需要用这个,本地端口需要特别注意,如果映射8291也就是Winbox管理端口,根据需要添加!

接下来到routeros添加vpn客户端,这里以PPTP为例,填写对应服务器的ip,填写在服务器上注册的账号、密码,如果已经连上服务器就已经可以使用了,这里要提醒,PPTP、L2TP、SSTP(端口为22)、OPENVPN(端口为110)

再到服务器上查看下,如下图,我们VPN端口是11304,本地是8291winbox管理的端口。

接下来我们就可以用130.27.112.125:11304(服务器IP:VPN端口)winbox来连接ros了,如下图。

其它注意事项请查看各服务器首页!

The united states can not preserve it and the variety they will must enroll from the pool that is nutritious’ll not be received by them.

While composing an article you will need to follow several fundamental actions that are inherent in almost any essay. They are able to be typically employed verbs generally article documents. There are lots of methods on how better to compose an essay. writings performed by true professionals Somehow, it’s seen as a type of illustrative article also. 继续阅读“The united states can not preserve it and the variety they will must enroll from the pool that is nutritious’ll not be received by them.”

The key encourages young individuals who see their globe with respect to Legos.

Even though writing an auto Biography is a trying occupation ( showing every among the details concisely ), it might become a satisfying experience ultimately. This phase is referred to as peer review, and its own relevance is really in letting others the opportunity to cause his or her biases and judgments upon your composition. Have an incredible time, reminiscing and writing. 2Nd, the process for composing this one (Three!) Before getting started, there are a couple of matters you need to be aware of around writing an article. 继续阅读“The key encourages young individuals who see their globe with respect to Legos.”