在NAT栏目中添加 masquerade IP伪装的时候要这样写:
General选项
Chain:srcnat
Srcaddress:19216810/24(你内网的IP段)
其他留空
Action选项
Action:masquerade
重点:General选项中 srcaddress 要写自己的网段比如19216810/24,任意(0000/0)地址或不写的话就会出现以上都变成内网网关问题!牛年吉祥你是光纤还是ADSL用户?光纤有固定IP,ADSL绑定动态IP脚本,如下:
system - scheduler - name随便写 - interval 00:30:00
on event 如下
:log info "DDNS: Begin"
:global ddns-user "用户名"
:global ddns-pass "密码"
:global ddns-host "1"
:global ddns-interface "ADSL"(默认的名字是PPPOE OUT后改的ADSL)
:global ddns-ip [ /ip address get [/ip address find interface=$ddns-interface] address ]
:if ([ :typeof $ddns-lastip ] = nil ) do={ :global ddns-lastip 0000/0 }
:if ([ :typeof $ddns-ip ] = nil ) do={
:log info ("DDNS: No ip address present on " $ddns-interface ", please check")
} else={
:if ($ddns-ip != $ddns-lastip) do={
:log info "DDNS: Sending UPDATE!"
:log info [ /tool dns-update name=$ddns-host address=[:pick $ddns-ip 0 [:find $ddns-ip "/"] ] key-name=$ddns-user key=$ddns-pass ]
:global ddns-lastip $ddns-ip
} else={
:log info "DDNS: No change"
}
}
:log info "DDNS: End"
在终端可以填写,也可以脚本运行。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)