Community discussions

MikroTik App
 
santong7
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 50
Joined: Tue Jun 04, 2013 1:40 pm
Location: Heraklion Crete Greece
Contact:

PORT FORWARDING TO INNER NETWORK

Fri Nov 06, 2015 3:21 pm

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.
 
User avatar
PaulsMT
MikroTik Support
MikroTik Support
Posts: 282
Joined: Tue Feb 10, 2015 3:21 pm

Re: PORT FORWARDING TO INNER NETWORK

Fri Nov 06, 2015 3:43 pm

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
 
TyBermea
newbie
Posts: 29
Joined: Mon Nov 02, 2015 3:18 am
Contact:

PORT FORWARDING TO INNER NETWORK

Sat Nov 07, 2015 10:49 pm

1:1 Nat may be easier for you