private network system(192.168.2.4) <—(LAN)—>(192.168.2.1)Mikrotik (123.201.xxx.xxx)<—(WAN)—> Internet
123.201.xxx.xxx is public IP but not static IP, if disconnect and connect internet back the IP would have changed.
There is a NAT rule to allow outbound traffic:
srcnat LAN private IP's traffic to be masquerade
chain=srcnat action=masquerade to-addresses=123.201.xxx.xxx src-address=192.168.2.0/24 out-interface=pppoe-out2
Now I can access internet from my private system. now what I want is inbound rule for private system. I am trying to do RDP from my home system to my office system with dst-nat rule in mikrotik router as
port mapping from 100 to 4's 3389
chain=dstnat action=dst-nat to-addresses=192.168.2.4 to-ports=3389 protocol=tcp dst-address=123.201.xxx.xxx dst-port=100
Here am trying to do port maping. In my home system I use 123.201.xxx.xxx:100 in RDP to connect to my office system, but this rule is not working.
add action=dst-nat chain=dstnat comment=“Remote SSH Access” dst-port=
22 in-interface=ether1-gateway protocol=tcp to-addresses=192.168.0.164
to-ports=22Here is an example DST NAT with Dynamic IP see instead of using Packets IP I read which port the packet comes in on
Have you got an allow in your firewall on both your computer and the mikrotik. Try turning windows firewall and anyother firewalls off and disable the rules in the mikrotik firewall
That line is coming when I try initiate RDP from my home system. So from my home system(27.34.253.98) I can access office system(192.168.2.4) but not completely. What would be the problem?
Problem solved. Office systems windows firewall was turned on, my bad I didn’t think in that way. I turned off windows firewall in office system then I got port forwarding work.
Yes it is always the firewall on the machine that you are connecting to and not the computers doing the connecting. turn the office firewall back on and add an accept rule for rdp traffic
;;; srcnat LAN private IP’s traffic to be masquerade
chain=srcnat action=masquerade to-addresses=106.51.187.89 src-address=192.168.2.0/24 out-interface=pppoe-out2
You should remove the to and src address as they are not required and my be causing problems when your IP changes