Community discussions

MikroTik App
mk2soldier
刚刚加入了
Topic Author
Posts: 9
加入: Tue Jul 26, 2011 4:39 pm

RB493G Port Forwarding

Tue Nov 01, 2011 7:41 pm

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...
Top
mk2soldier
刚刚加入了
Topic Author
Posts: 9
加入: Tue Jul 26, 2011 4:39 pm

Re: RB493G Port Forwarding

Tue Nov 01, 2011 9:39 pm

nobody can help me?
Top
用户头像
sadeghrafie
Long time Member
Long time Member
Posts: 514
加入: Sat Nov 14, 2009 11:28 am
Location:Bushehr, IRAN

Re: RB493G Port Forwarding

Tue Nov 01, 2011 9:50 pm

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.
Top
mk2soldier
刚刚加入了
Topic Author
Posts: 9
加入: Tue Jul 26, 2011 4:39 pm

Re: RB493G Port Forwarding

Wed Nov 02, 2011 10:52 am

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?
Top
用户头像
sadeghrafie
Long time Member
Long time Member
Posts: 514
加入: Sat Nov 14, 2009 11:28 am
Location:Bushehr, IRAN

Re: RB493G Port Forwarding

Wed Nov 02, 2011 12:25 pm

Wrong!
It should be like this
Code:Select all
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.
Top
mk2soldier
刚刚加入了
Topic Author
Posts: 9
加入: Tue Jul 26, 2011 4:39 pm

Re: RB493G Port Forwarding

Fri Nov 04, 2011 12:29 am

非常感谢你这里,h sadeghrafie, now i'm able to open ports on my modem to my router!

Someone Says: I don't forget to give karma...

:D :D :D
Top

Who is online

Users browsing this forum: No registered users and 1 guest