I found a solution.
It is necessary to add an additional IP address to the WAN interface of router R2 and route traffic to R3 via this address using SNAT.
Settings on router R2:
Settings on the R1 router:
It is necessary to add an additional IP address to the WAN interface of router R2 and route traffic to R3 via this address using SNAT.
Settings on router R2:
Code:
/routing/table/add name=route_to_R3 fib/ip address add address=192.168.1.11/24 interface=ether1 network=192.168.1.0/ip firewall nat add action=src-nat chain=srcnat place-before=0 to-addresses=192.168.1.11 routing-mark=route_to_R3/ip firewall mangle add action=mark-routing chain=prerouting comment="Mark comp to R3" dst-address-list=!my_int_ip in-interface-list=LAN new-routing-mark=route_to_R3 passthrough=no src-address-list=comp_to_R3
Settings on the R1 router:
Code:
/ip firewall address-list add address=192.168.1.11 list=comp_to_R3
Statistics: Posted by guru431 — Thu Mar 28, 2024 8:50 am