找回密码
 注册

QQ登录

只需一步,快速开始

搜索
楼主: supermp3

[其它] ROS能不能做到更改外网IP就自动发邮件?

  [复制链接]
发表于 2010-5-18 20:35:35 | 显示全部楼层
移动的手机邮箱我已测试可以发送。
routeros
回复

使用道具 举报

 楼主| 发表于 2010-5-21 09:15:48 | 显示全部楼层
189的邮箱测试不能发送,但QQ的可以发送,但经常是系统退信,IP也不对,我晕了!
routeros
回复

使用道具 举报

发表于 2013-4-13 17:02:38 | 显示全部楼层
routeros
回复

使用道具 举报

发表于 2013-4-13 18:22:51 | 显示全部楼层
163的邮箱,5.x 可以.

3.x的应该也可以用

163.png
routeros
回复

使用道具 举报

发表于 2013-4-13 19:35:46 | 显示全部楼层
:global currentIP;

:local newIP [/ip address get [find interface="pppoe-out1"] address];

:if ($newIP != $currentIP) do={
    /tool e-mail send to=XXXXXXX@qq.com subject=("Ip change notice") body=("old IP: " . $currnetIP . "  new IP: " . $newIP)
    :set currentIP $newIP;
}


没有测试,我这里用的光纤。

routeros
回复

使用道具 举报

发表于 2013-4-14 20:43:40 | 显示全部楼层
jike106397 发表于 2013-4-13 19:35
:global currentIP;

:local newIP [/ip address get [find interface="pppoe-out1"] address];

少了条件判断!!!!!!!!!!!!!

点评

:if ($newIP != $currentIP) do={ 这里。  发表于 2013-4-14 21:11
routeros
回复

使用道具 举报

发表于 2013-4-15 09:25:19 | 显示全部楼层
建议用ddns, changeip, 3322 和 oray 都支持ros. 写个脚本每天早上自动断线重拨,然后绑定ddns.
routeros
回复

使用道具 举报

发表于 2013-4-15 10:26:40 | 显示全部楼层
ROS 自动改变NAT变量值与IP改变发指定邮箱提醒
http://pzz.cn/bbs/read.php?tid=193803
routeros
回复

使用道具 举报

发表于 2013-4-15 10:30:51 | 显示全部楼层
ROS 自动改变NAT变量值与IP改变发指定邮箱提醒
45_23308_08adbe059e22b7a.jpg
routeros
回复

使用道具 举报

发表于 2013-4-15 11:28:07 | 显示全部楼层

给个脚本测试下吧湘哥
routeros
回复

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-6-5 01:15 , Processed in 0.128258 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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