Hi Kaltersia,
try this below firewall nat rules.
add action=dst-nat chain=dstnat dst-address=202.X.X.X dst-port=81 in-interface=ether1-gateway protocol=tcp to-addresses=192.168.5.2 to-ports=81
add action=dst-nat chain=dstnat dst-address=202.X.X.X dst-port=81 in-interface=ether1-gateway protocol=udp to-addresses=192.168.5.2 to-ports=81
add action=dst-nat chain=dstnat dst-address=202.X.X.X dst-port=82 in-interface=ether1-gateway protocol=tcp to-addresses=192.168.5.2 to-ports=82
add action=dst-nat chain=dstnat dst-address=202.X.X.X dst-port=82 in-interface=ether1-gateway protocol=udp to-addresses=192.168.5.2 to-ports=82
add action=dst-nat chain=dstnat dst-address=202.X.X.X dst-port=83 in-interface=ether1-gateway protocol=tcp to-addresses=192.168.5.2 to-ports=83
add action=dst-nat chain=dstnat dst-address=202.X.X.X dst-port=83 in-interface=ether1-gateway protocol=udp to-addresses=192.168.5.2 to-ports=83
Please change "202.X.X.X" to your public ip address.
To take access of web server please try 202.X.X.X:81 from outside of your network.
Also note that port of webserver you are mentioned in rule must be same as you access in from your internal network.
______________________________________________________
already done that. i can access my webserver from outside network.
here is where the tricky part starts, lets assume the user writes my publik ip address without the port number in his browser and he is taken to myip:80 , but i only have ip address and i want that ip address that comes on port 80 to dst-nat to another port "in my case to port 81,82 and port 83
.
any ip to por 80
specific ip to the port i want.