Mikrotik: Port Forwarding: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs)
No edit summary
Onnowpurbo (talk | contribs)
No edit summary
Line 1: Line 1:
Contoh:
Contoh:


   /ip firewall nat add chain=dstnat protocol=tcp dst-port=80 in-interface=ether1 to-addresses=192.168.0.168 to-ports=80
/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

Revision as of 23:35, 5 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