Difference between revisions of "Mikrotik: Port Forwarding"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 12: | Line 12: | ||
/ip firewall nat add chain=dstnat dst-address=192.168.0.168 action=dst-nat to-addresses=192.168.100.1 | /ip firewall nat add chain=dstnat dst-address=192.168.0.168 action=dst-nat to-addresses=192.168.100.1 | ||
/ip firewall nat add chain=dstnat dst-port=80 action=dst-nat protocol=tcp to-address=192.168.100.200 to-port=80 | /ip firewall nat add chain=dstnat dst-port=80 action=dst-nat protocol=tcp to-address=192.168.100.200 to-port=80 | ||
+ | |||
+ | |||
+ | Supaya bisa berjalan lancar | ||
+ | port service 80 di mikrotik harus disable dulu |
Latest revision as of 08:05, 6 November 2020
Contoh:
/ip address print
# ADDRESS NETWORK INTERFACE 0 D 192.168.0.168/24 192.168.0.0 ether1 1 192.168.100.1/24 192.168.100.0 bridge1
/ip firewall nat add chain=dstnat dst-address=192.168.0.168 action=dst-nat to-addresses=192.168.100.1 /ip firewall nat add chain=dstnat dst-port=80 action=dst-nat protocol=tcp to-address=192.168.100.200 to-port=80
Supaya bisa berjalan lancar
port service 80 di mikrotik harus disable dulu