RB493G Port Forwarding

Hi guys! I’ve a problem…

I want to port-forward some ports on my pc (5800-5900) with a static IP (192.168.2.30)

My modem router IP address is 192.168.1.1

This is the configuration:

Internet —> Modem/Router (192.168.1.1) —> RB493G (192.168.2.1) —> PC (192.168.2.30)

How can i do that?

Thanks in advance!


Sorry if i have posted in a wrong section…

nobody can help me?

It depends on whether you Modem get the public IP from ISP or RB493.
If Modem, you should add NAT rule on Modem, if RB493, it can do it.

I think that it gets the IP from modem, how can i create this rule on NAT?

Thank you for your reply anyway

EDIT: Ok, i figured out on how to make the NAT rule but it doesn’t work

I do like this:

From WinBox i go to IP —> Firewall —> NAT —> Add a rule —> Chain: dstnat
Dst. Address: 192.168.2.30 (The ip of my PC)
Protocol: tcp
Dst. Port: 5900

Action: dst-nat
To Addresses: 192.168.2.30 (The ip of my PC)
To Ports: 5900

What did i do wrong?

Wrong!
It should be like this

ip firewall nat add chain=dstnat dst-address=192.168.1.x protocol=tcp dst-port=5900 action=dst-nat to-addresses=192.168.2.30 to-ports=5900

x: should be the IP of RB interface which associate with Modem directly.

This work if Public IP set on Mikrotik or if you can’t set Public IP to Mikrotik, You should double NAT which means add another NAT rule in modem.
another way, if the modem able to get Static route, you can add route for 192.168.2.0/24 and introduce 192.168.1.x (Mikrotik IP) as gateway.

easiest way, If your IPS provide you Internet with PPPoE service, you can set the modem on bridge mode, then the Mikrotik dial the PPPoE and receive the Public IP itself.

Thank you very much sadeghrafie, now i’m able to open ports on my modem to my router!

Someone Says: I don’t forget to give karma…

:smiley: :smiley: :smiley: