Hello everybody,
I want to know how can i forward a random port from wan1 to wan2 and then forward to any device on internet, my scenario here:
WAN1: 10.100.11.11
WAN2: 10.200.22.22
Destination(device on internet, assume cloudflare dns tcp port here): 1.1.1.1:53
Already tried these firewall rules, but doesn’t work .(diagram in attachments):
/ip address
add address=10.31.9.1/24 interface=LAN network=10.31.9.0
add address=10.100.11.11/24 interface=WAN1 network=10.100.11.0
add address=10.200.22.22/24 interface=WAN2 network=10.200.22.0
/ip firewall nat
add action=masquerade chain=srcnat out-interface=WAN1
add action=masquerade chain=srcnat out-interface=WAN2
add action=dst-nat chain=dstnat dst-address=10.100.11.11 dst-port=8374 \
in-interface=WAN1 protocol=tcp to-addresses=10.200.22.22 to-ports=3562
add action=dst-nat chain=dstnat dst-address=10.200.22.22 dst-port=3562 \
in-interface=WAN2 protocol=tcp src-address-type="" to-addresses=1.1.1.1 \
to-ports=53
/ip route print detail
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
1 A S dst-address=0.0.0.0/0 gateway=10.100.11.1
gateway-status=10.100.11.1 reachable via WAN1 distance=1 scope=10
target-scope=10
2 S dst-address=0.0.0.0/0 gateway=10.200.22.1
gateway-status=10.200.22.1 reachable via WAN2 distance=1 scope=10
target-scope=10
3 ADC dst-address=10.31.9.0/24 pref-src=10.31.9.1 gateway=LAN
gateway-status=LAN reachable distance=0 scope=10
4 ADC dst-address=10.100.11.0/24 pref-src=10.100.11.11 gateway=WAN1
gateway-status=WAN1 reachable distance=0 scope=10
5 ADC dst-address=10.200.22.0/24 pref-src=10.200.22.22 gateway=WAN2
gateway-status=WAN2 reachable distance=0 scope=10
6 ADC dst-address=192.168.88.0/24 pref-src=192.168.88.146 gateway=MGMT
gateway-status=MGMT reachable distance=0 scope=10
