0x01 添加DDNS地址到AddressLists
IP-Firewall,然后在上菜单栏选择Address lists,接着点击加号进入设置页面,Name填WAN_IP,Address填写DDNS地址。
他会通过域名自己解析出对应的IP,等下地址映射需要用到。
0x02 添加回流
1.新建一条规则,Chain为"srcnat",SrcAddress为内网客户端地址。

Action选择"masquerade"保存。
0x03 添加端口映射
新建一条规则,Chain为“dstnat”,DstPort为外网访问的端口。

Action选择“dst-nat”,ToAddresses&Port为需要映射出去的内网服务器的IP跟端口
0x99 其他
参考链接:https://post.smzdm.com/p/ar0v0x2q/
发表评论