Changes between Version 13 and Version 14 of Mikrotikvpn


Ignore:
Timestamp:
04/16/21 06:46:21 (4 years ago)
Author:
krit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Mikrotikvpn

    v13 v14  
    153153/ip firewall filter add action=accept chain=input disabled=no dst-port=22 protocol=tcp place-before=2
    154154}}}
     155
     156Add nat rule to forward port to dst-nat IP address
     157{{{
     158[admin@LOTUSBKP101] /ip firewall nat> print
     159Flags: 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}}}