
Hello I am new in MikorTik, I have this little network and I cannot access from Internet with winbox, please help me to figure it out what I am missing, in the TP-Link modem is there a dynamic public IP with a no-ip client so I can know my public IP, and the necessaries ports forwarding to the 192.168.1.2 for my DVR 8080, 8880 and for the 8291 (winbox port) the ports forwarding are OK because I can see the cameras. Something similar is in the ISP-2 cable modem even there is a double NAT, for me it is not that necessary winbox with ISP-2, if only ISP-1 let me in is OK.
Anticipates Thanks, Regards.
#############################################################################################################
/ip address
add address=192.168.1.2/29 comment=wan1 interface=ether6 network=192.168.1.0
add address=192.168.2.2/29 comment=wan2 interface=ether7 network=192.168.2.0
add address=192.168.25.1/26 comment=“adm lan” interface=bridge-local network=192.168.25.0
add address=192.168.5.1/26 comment=“guests lan” interface=bridge-guests network=192.168.5.0
#############################################################################################################
/queue simple
add max-limit=384k/2M name=guestqos target=bridge-guests
#############################################################################################################
/ip pool
add name=SUPERV ranges=192.168.25.30-192.168.25.45
add name=GUESTS ranges=192.168.5.5-192.168.5.55
#############################################################################################################
/ip firewall nat
add action=masquerade chain=srcnat comment=“nat wan 1” out-interface=ether6
add action=masquerade chain=srcnat comment=“nat wan 2” out-interface=ether7
#############################################################################################################
/ip dhcp-server
add address-pool=SUPERV disabled=no interface=bridge-local lease-time=12h name=admdhcp
add address-pool=GUESTS disabled=no interface=bridge-guests lease-time=12h name=guestsdhcp
/ip dhcp-server network
add address=192.168.5.0/26 gateway=192.168.5.1
add address=192.168.25.0/26 gateway=192.168.25.1
#############################################################################################################
/ip firewall nat
add action=dst-nat chain=dstnat disabled=no dst-port=8080 in-interface=ether6
protocol=tcp to-addresses=192.168.25.58 to-ports=80 comment=“DVR-1 http wan-1 TCP”
add action=dst-nat chain=dstnat disabled=no dst-port=8880 in-interface=ether6
protocol=tcp to-addresses=192.168.25.58 to-ports=8880 comment=“DVR-1 client wan-1 TCP”
#############################################################################################################
/ip firewall mangle
add chain=input in-interface=ether6 action=mark-connection new-connection-mark=WAN1_mark
add chain=input in-interface=ether7 action=mark-connection new-connection-mark=WAN2_mark
add chain=output connection-mark=WAN1_mark action=mark-routing new-routing-mark=to_ISP1
add chain=output connection-mark=WAN2_mark action=mark-routing new-routing-mark=to_ISP2
add chain=prerouting dst-address=192.168.1.0/29 action=accept in-interface=bridge-local
add chain=prerouting dst-address=192.168.2.0/29 action=accept in-interface=bridge-local
add chain=prerouting dst-address-type=!local in-interface=bridge-local
per-connection-classifier=both-addresses-and-ports:2/0 action=mark-connection new-connection-mark=WAN1_mark
passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=bridge-local
per-connection-classifier=both-addresses-and-ports:2/1 action=mark-connection new-connection-mark=WAN2_mark
passthrough=yes
add chain=prerouting connection-mark=WAN1_mark in-interface=bridge-local action=mark-routing new-routing-mark=to_ISP1
add chain=prerouting connection-mark=WAN2_mark in-interface=bridge-local action=mark-routing new-routing-mark=to_ISP2
#############################################################################################################
add chain=prerouting dst-address=192.168.1.0/29 action=accept in-interface=bridge-guests
add chain=prerouting dst-address=192.168.2.0/29 action=accept in-interface=bridge-guests
add chain=prerouting dst-address-type=!local in-interface=bridge-guests
per-connection-classifier=both-addresses-and-ports:2/0 action=mark-connection new-connection-mark=WAN1_mark
passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=bridge-guests
per-connection-classifier=both-addresses-and-ports:2/1 action=mark-connection new-connection-mark=WAN2_mark
passthrough=yes
add chain=prerouting connection-mark=WAN1_mark in-interface=bridge-guests action=mark-routing new-routing-mark=to_ISP1
add chain=prerouting connection-mark=WAN2_mark in-interface=bridge-guests action=mark-routing new-routing-mark=to_ISP2
#############################################################################################################
/ip route
add dst-address=200.44.32.12 gateway=192.168.1.1 scope=10
add dst-address=200.44.32.13 gateway=192.168.1.1 scope=10
add dst-address=8.8.8.8 gateway=192.168.2.1 scope=10
add dst-address=8.8.4.4 gateway=192.168.2.1 scope=10
add dst-address=10.1.1.1 gateway=8.8.8.8 scope=10 target-scope=10 check-gateway=ping
add dst-address=10.1.1.1 gateway=200.44.32.13 scope=10 target-scope=10 check-gateway=ping
add dst-address=10.2.2.2 gateway=200.44.32.12 scope=10 target-scope=10 check-gateway=ping
add dst-address=10.2.2.2 gateway=8.8.4.4 scope=10 target-scope=10 check-gateway=ping
add distance=1 gateway=10.1.1.1 routing-mark=to_ISP1
add distance=2 gateway=10.2.2.2 routing-mark=to_ISP1
add distance=1 gateway=10.2.2.2 routing-mark=to_ISP2
add distance=2 gateway=10.1.1.1 routing-mark=to_ISP2
#############################################################################################################
/ip service
set winbox port=8291 address=0.0.0.0/0 disabled=no
#############################################################################################################