Routing with two networks

First of all, I’m sorry for my bad english, but it’s not my native language. And I’m complete beginner with RouterOS. Here is my situation:

I have a wireless connection (with public IP), which uses network addresses 10.0.0.x, and I have two computers in LAN, so the network is as follows:

10.0.0.1 - router
10.0.0.2 - PC 1
10.0.0.3 - PC 2

Both computers are under Windows OS.

I have another PC, under Linux ( Fedora 8 ), and it is connected via another LAN to PC 2. This LAN uses addresses 192.168.0.x:

192.168.0.1 - Windows (PC 2)
192.168.0.2 - Linux (let’s call it PC3)

PC 3 uses PC 2 as a gateway, and there are no problems. This is want I want to do, but as a beginner I have no idea how to solve the problem: I want people from outside to reach my PC 3, or in other words to forward some ports from router (or PC 2) to PC 3. Ports such as 21, 80, 6667, etc… Could anyone please explain it to me, with an example? I would really appreciate it.

Thanks and cheers!

Anyone, guys? :confused:

Hi Pedja ,

To forward your ports on RouterOS you can use the followin firewall nat rule for any port you want as an example to forward port 21 the rule will look like this

/ip firewall nat
add action=dst-nat chain=dstnat comment=“” disabled=no dst-address=(ur-public-ip)
dst-port=21 protocol=tcp to-addresses=10.0.0.X(PC you want to be accessed) to-ports=21

Regards,

I’m not sure if I’ve explained my problem well. My public IP is already forwarded to PC 3, but I was wondering if it is possible to forward it directly from ruoter to PC 4 (10.0.1.1 → 192.168.0.2), because if not, I should forward all ports under Windows OS (on PC 3), and as far as I know, it’s a huge problem.

Greetings!

It will take two inbound redirects. One in the router from the router to PC2, and another in PC2 from PC2 to the Linux box. I think there are enough examples on the site to set up the MikroTik box in the documentation and the wiki. The Windows box is a different story.