公网:
10.0.0.1
局域网:
192.168.88.0/24
局域网服务器 :
192.168.88.13
RouterOS nat设置
#伪装局域网流量并指定局域网接口 /ip/firewall/nat add chain=srcnat action=masquerade src-address=192.168.88.0/24 out-interface=LAN
#回流设置 /ip/firewall/nat chain=dstnat action=dst-nat dst-address-list=your_list_pppoe-ip to-addresses=192.168.88.252 protocol=tcp in-interface-list=LAN dst-port=8006
#获取pppoe地址到your_list_pppoe-ip
/ip firewall mangle add chain=prerouting action=add-dst-to-address-list address-list=your_list_pppoe-ip address-list-timeout=1d in-interface=pppoe-out1
发表评论