Page 1 of 1

PORT FORWARDING TO INNER NETWORK

Posted: Fri Nov 06, 2015 3:21 pm
by santong7
Does anyone know how to port forward to the mikrotik's inner network.

My configuration is as follows.

I have an adsl modem router with ppoe enabled (not in bridge mode) with the 192.168.0.1/24 dhcp network, and the mikrotik it is connected on it with the 192.168.1.2 ip address which is used also as a gateway inside mikrotik. This is because there are other devices connected on the 192.168.0.1/24 subnet.

On the mikrotik there is an internal network of 192.168.88.0/2 subnet with dhcp. Devices connected on the 192.168.88.0/24 they are connected properly on the internet.

I want to port forward from the adsl router public ip wan address port e.g. 7777 to the mikrotik's internal ip 192.168.88.4 device at the same port.

Is there any way ?

FYI There is a port forward configured on the adsl router, from the public wan address to the mikrotik 192.168.1.2 interface for accesing it through winbox and it works perfect.

Re: PORT FORWARDING TO INNER NETWORK

Posted: Fri Nov 06, 2015 3:43 pm
by PaulsMT
You can forward already forwarded packets from your ADSL router, if the specified destination address/port will match, then the packets will be forwarded:

1. Packet from public network will reach your ADSL router with destination-ip= <ADSL public IP> on port 7777
2. Packet will be forwarded from ADSL to your <Mikrotik WAN IP> on port 7777
3. Add rule which will forward all packets with destination-ip=<Mikrotik WAN IP> port=7777 to internal network (192.168.88.4)

Firewall NAT rule:
/ip firewall nat add chain=dstnat dst-address=192.168.1.2 port=7777 action=dst-nat to-addresses=192.168.88.4 to-ports=7777 protocol=tcp

PORT FORWARDING TO INNER NETWORK

Posted: Sat Nov 07, 2015 10:49 pm
by TyBermea
1:1 Nat may be easier for you