Difference between revisions of "Mikrotik: Redirect Traffic"

From OnnoWiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
 +
 +
/ip firewall nat add chain=dstnat dst-address=139.177.184.75 dst-port=443 protocol=tcp action=dst-nat to-addresses=202.89.117.244
 +
  
  
Line 15: Line 19:
 
==Referensi==
 
==Referensi==
  
 +
* https://wiki.mikrotik.com/wiki/Manual:IP/Firewall/NAT#Port_forwarding_to_internal_FTP_server
 
* https://stackoverflow.com/questions/36678033/mikrotik-forward-destination-ip-packet-to-another-ip
 
* https://stackoverflow.com/questions/36678033/mikrotik-forward-destination-ip-packet-to-another-ip

Latest revision as of 20:05, 28 May 2021


/ip firewall nat add chain=dstnat dst-address=139.177.184.75 dst-port=443 protocol=tcp action=dst-nat to-addresses=202.89.117.244



To redirect packets destined for 10.20.30.1:2020 to 192.168.20.1:3040 , you add a DNAT rule in the firewall like this:

/ip firewall nat add dst-address=10.20.30.1 dst-port=2020 action=dst-nat to-addresses=192.168.20.1 to-ports=3040


/ip firewall nat add dst-address=139.177.184.75 dst-port=443 action=dst-nat to-addresses=202.89.117.244 to-ports=443



Referensi