Community discussions

MikroTik App
 
MonkeyDog
just joined
Topic Author
Posts: 7
Joined: Tue Oct 13, 2020 7:28 am

Port forward subnetwork.

Sat Feb 27, 2021 9:30 pm

I want to ask for help.

I have a Mikrotik LHG LTE device.
Its local IP address is 192.168.88.1
Behind it is a Tp-link router with an IP address of 192.168.0.1
(This device receives a 192.168.88.200 WAN IP address from Mikrotik.)

Behind this TP-link router is a set top box with a local IP address of 192.168.0.18
I would like to open FTP port 21 of this set top box to the internet on external port 21212.

How do I configure NAT and HAIRPIN NAT?

I don't see the router's admin interface from the internet either, even though DDNS is turned on in the CLOUD menu. The LHG device responds to Ping.


Thanks.
 
User avatar
satman1w
Member Candidate
Member Candidate
Posts: 279
Joined: Mon Oct 02, 2006 11:47 am

Re: Port forward subnetwork.

Mon Mar 01, 2021 11:08 am

 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19325
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Port forward subnetwork.

Mon Mar 01, 2021 4:58 pm

Well you start at the TP LINK
Port forward port 21 to the lanip of the FTP server.

At the next stop, the MT, you will be forwarding port 21 to the WANIP of the TPLINK (its LANIP on the MT subnet).
Since its coming into the MT as a different port you will need port translation in your Dst Nat rule.

Why do you need hairpin nat? Just have internal users use the LANIP of the server if behind the TPlink router.
 
MonkeyDog
just joined
Topic Author
Posts: 7
Joined: Tue Oct 13, 2020 7:28 am

Re: Port forward subnetwork.

Tue Mar 02, 2021 10:02 am

Well you start at the TP LINK
Port forward port 21 to the lanip of the FTP server.

At the next stop, the MT, you will be forwarding port 21 to the WANIP of the TPLINK (its LANIP on the MT subnet).
Since its coming into the MT as a different port you will need port translation in your Dst Nat rule.

Why do you need hairpin nat? Just have internal users use the LANIP of the server if behind the TPlink router.
Thanks.
I did port forward, but it doesn't work.

(I guess I don't need to set anything up on the tp-link router for this. Only on Mikrotik.)

I may have done the NAT rule wrong.

Can you make me the specific NAT rule to make it work?

This is an LHG LTE device, no problem?
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19325
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Port forward subnetwork.

Tue Mar 02, 2021 8:03 pm

Sorry if you dont understand that the TP LINK needs port forwarding rules set on its own configuration to get the feed from the primary router on its WAN port, to transfer it to the TP link LAN, and then to the server on the TPLINK LAN, then you are beyond help.

Is there something not understood about your network??
 
MonkeyDog
just joined
Topic Author
Posts: 7
Joined: Tue Oct 13, 2020 7:28 am

Re: Port forward subnetwork.

Tue Mar 02, 2021 10:02 pm

Thanks.
So then:
In the TP-link router, port forward to the FTP server on port 21?
In Mikrotik, should the incoming port 21212 be forwarded to the address of the TP-link router (192.168.88.200) as port 21?
{PUBLIC IP}: 21212 (Mikrotik)---192.168.88.200:21 (TP-link)---192.168.0.18 (FTP server): 21?
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19325
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Port forward subnetwork.

Wed Mar 03, 2021 12:00 am

Thanks.
So then:
In the TP-link router, port forward to the FTP server on port 21?
In Mikrotik, should the incoming port 21212 be forwarded to the address of the TP-link router (192.168.88.200) as port 21?
{PUBLIC IP}: 21212 (Mikrotik)---192.168.88.200:21 (TP-link)---192.168.0.18 (FTP server): 21?
Yes, the microtik can do the port translation to port 21 so the dst-port is 21212 and the to-ports is 21 on the destination nat firewall rule on the MT
 
User avatar
SiB
Forum Guru
Forum Guru
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: Port forward subnetwork.

Fri Mar 05, 2021 6:21 pm

Who is online

Users browsing this forum: No registered users and 79 guests