自动更新DDNS并更新IPSEC

IPSEC更新域名脚本:local localip [/ip address get [find interface=pppoe-out1] address];:set localip [:pick $localip 0 [:find $localip "/"]]:local remoteip [:resolve XXX.3322.org]:local peerA [/ip ipsec peer find comment=site-to-site]:local policyA

端口射设地址更新

:local oldip:local newip:set newip [/ip address get [/ip address find dynamic=yes interface=pppoe-out1 ] address ]:put $newip:set oldip [/ip firewall nat get [find comment=mapping] dst-address ]:if ($newip != $oldip) do={/ip firewall nat set [find co

通过域名获取IP并更改IPSEC的地址。

嗨,我制作并测试了用于设置每15分钟使用DDNS VPN的代码。对不起,意大利的评论。 #Imposta ID della VPN (ID - 1):global VPNID 1# Imposta DDNS_Sorgente attualmente legato al DDNS :global DDNSSorgent

Wisp的MPLS,BGP和OSPF设计

我正在为WISP设计新的设计。我们目前有大约800个客户和大约50个塔。我们准备为我们的核心路由器订购2台Mikrotik CCR1072,并从桥接网络升级到MPLS。我们的需求如下:客户端获得静态NATed IPv4地址或静态公共IPv6支持能够为具有多个站点的客户端创建隧道能够在不同入口点进行回程的冗余连接在不同位置的冗余上游提供商。我们的主要10G连接来自1个位置,而我们在不同位置有几个200M连接。冗余将需要在站点(塔)级别上设置。我想在内部为我们的公共/指定ip地址运行iBGP,我们将

Wisp的MPLS,BGP和OSPF设计

ROS多网段多出口实现

环境介绍:RB2011,ether1为内网口10.0.0.1,ether2/3是两个外网口。内网网段:172.16.1.0/172.16.2.0/172.16.3.0/172.16.4.0/10.7.7.0/10.0.0.0,前五个网段通过S5700三层交换到核心网。计划实现172.16.1.0/172.16.2.0两个网段走ether3的固定IP,172.16.3.0/172.16.4.0/10.7.7.0三个网段走ether2上的pppoe-out1出口。本文中除有标注外所有IP的掩码均是2

ROS多网段多出口实现

获取最新的中国IP的脚本,给ROS可以使用的脚本

wget http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latestecho "/ip firewall address-list" > address-list_`date +"%Y%m%d"`.rscgrep "|CN|ipv4" delegated-apnic-latest | awk -F'|' '{print "add ad

获取最新的中国IP的脚本,给ROS可以使用的脚本

ros wifi把信号弱的客户端踢出去的脚本

以下脚本为小于75强度的都踢出去非capman脚本:/interface wireless registration-table :do {:foreach i in=[find] do={:local sin [get $i signal-strength]:set sin [:pick $sin ([:find $sin "-"]+1) 3]:put $sin:if ($sin >="75") do={remove $i}}}