Multi Port Forwarding problem

I have 2 ports to forward and only the first work fine, if i switch the second to first only the first work fine ???

Please help me

MT 2.9.8

My Nat setup :

/ ip firewall nat
add chain=srcnat src-address=192.168.10.0/24 dst-address=192.168.40.0/24
action=accept comment=“” disabled=no
add chain=srcnat src-address=192.168.10.0/24 dst-address=192.168.20.0/24
action=accept comment=“” disabled=no
add chain=srcnat src-address=192.168.10.0/24 dst-address=192.168.30.0/24
action=accept comment=“” disabled=no
add chain=dstnat dst-address=205.237.56.152 protocol=tcp action=dst-nat
to-addresses=192.168.10.6 to-ports=80 comment=“Port 80” disabled=no
add chain=srcnat src-address=192.168.10.6 protocol=tcp action=src-nat
to-addresses=205.237.56.152 to-ports=80 comment=“Port 80” disabled=no
add chain=dstnat dst-address=205.237.56.152 protocol=tcp action=dst-nat
to-addresses=192.168.10.5 to-ports=3389 comment=“Terminal Service”
disabled=no
add chain=srcnat src-address=192.168.10.5 protocol=tcp action=src-nat
to-addresses=205.237.56.152 to-ports=3389 comment=“Terminal Service”
disabled=no
add chain=dstnat in-interface=LAN src-address=!192.168.10.6
dst-address=!192.168.10.1 protocol=tcp dst-port=80 action=redirect
to-ports=8080 comment=“Rediriger tout port 80 sur proxy” disabled=no
add chain=srcnat out-interface=WAN action=masquerade comment=“” disabled=no

I think you need to specify dst-port as well in your rules. As it is now, the first rule says that any connection to 205.237.56.152 will be forwarded to port 80, regardless of what port the connection is trying to connect to. That is why the second rule is never applied.

Mezlo

Thank’s,

I just add the destination port and all rules run fine

Glad I could help. Good luck with the rest of your setup.

Mez