Port forwarding problem

Hello everybody ! I have got a problem with port forwarding.

There is an Ubuntu 12.04 server, internal ip is: 10.10.10.2/30
There are 2 ports:
10.10.10.2:40000= Torrent client
10.10.10.2:28000= another service

If Torrent client’s 40000 port is enabled, another one is not working.


ip firewall nat add chain=dstnat action=dst-nat to-addresses=10.10.10.2 to-ports=28000 protocol=tcp dst-address=10.10.10.2 in-interface=ether1 ( WAN )

ip firewall nat add chain=dstnat action=dst-nat to-addresses=10.10.10.2 to-ports=40000 protocol=tcp dst-address=10.10.10.2 in-interface=ether1 ( WAN )

I tried to fix it, but so far i could not

You should add a dst-port to those rules, or it will redirect all port requests to the first rule.

/ip firewall nat add chain=dstnat action=dst-nat to-addresses=10.10.10.2 to-ports=28000 protocol=tcp dst-port=28000 in-interface=ether1

/ip firewall nat add chain=dstnat action=dst-nat to-addresses=10.10.10.2 to-ports=40000 protocol=tcp dst-port=40000 in-interface=ether1

I also removed the dst-address since the in-interface parameter covers that.

Hello, it is fixed, thank you very much for your help.