| 155 | |
| 156 | Add nat rule to forward port to dst-nat IP address |
| 157 | {{{ |
| 158 | [admin@LOTUSBKP101] /ip firewall nat> print |
| 159 | Flags: X - disabled, I - invalid, D - dynamic |
| 160 | 0 ;;; defconf: masquerade |
| 161 | chain=srcnat action=masquerade out-interface-list=WAN ipsec-policy=out,none |
| 162 | |
| 163 | 1 chain=dstnat action=dst-nat to-addresses=192.168.188.21 to-ports=80 protocol=tcp in-interface=l2tp-out1 dst-port=8001 log=yes log-prefix="" |
| 164 | |
| 165 | 2 chain=dstnat action=dst-nat to-addresses=192.168.188.22 to-ports=80 protocol=tcp in-interface=l2tp-out1 dst-port=8002 log=no log-prefix="" |
| 166 | |
| 167 | 3 chain=dstnat action=dst-nat to-addresses=192.168.188.23 to-ports=80 protocol=tcp in-interface=l2tp-out1 dst-port=8003 log=no log-prefix="" |
| 168 | |
| 169 | 4 chain=dstnat action=dst-nat to-addresses=192.168.188.23 to-ports=22 protocol=tcp in-interface=l2tp-out1 dst-port=2203 log=no log-prefix="" |
| 170 | |
| 171 | 5 chain=dstnat action=dst-nat to-addresses=192.168.188.21 to-ports=22 protocol=tcp in-interface=l2tp-out1 dst-port=2201 log=no log-prefix="" |
| 172 | |
| 173 | 6 chain=dstnat action=dst-nat to-addresses=192.168.188.22 to-ports=22 protocol=tcp in-interface=l2tp-out1 dst-port=2202 log=no log-prefix="" |
| 174 | [admin@LOTUSBKP101] /ip firewall nat> |
| 175 | }}} |