Port forward from LTE

Hello,

So i was using ZTE 5G modem as internet source in bridge mode. All routing where done on “wAP LTE6 kit Mikrotik”. It got internet over ETH1 from ZTE, and over ETH2 internet was passed to the main switch. ZTE stopped working so i’ve send it to the warranty and swapped SIM card from broken ZTE to wAP LTE6 kit Mikrotik.

All routing (and port forward) was done on Mikrotik even with ZTE (because ZTE slow and very basic and worked only in bridge mode).
For all port forwarding rules where set “all ethernet” as source (In. interface). As ZTE gone and SIM card is now directly in the Mikrotik, i’ve changed port forwarding rule and instead on “All Ethernet” i’ve set “LTE”. BUT it’s not working :frowning: it’s not doing port forwarding. And yes, we have fixed public IP on our sim card.

Any ideas how to solve this issue?

Thank you.
Screen Shot 2023-03-27 at 18.11.28.png
Screen Shot 2023-03-27 at 18.11.38.png

Select in In. Interface lte1 and in Action section select dst-nat action and To Address <local_ip>

That’s what i did in the first place. And it is not working :neutral_face:
It looks like you have to change only one parameter (from all ethernet to lte1). But this is not working :frowning:
Screen Shot 2023-03-27 at 18.33.46.png
Screen Shot 2023-03-27 at 18.34.03.png

/export file=anynameyouwish ( minus serial number and any public WANIP information )

The port also needs to be allowed on the “input” in the /ip firewall filter for the same port/protocol as the dst-nat to work. And it should be added just below the ICMP input accept rule. The dst-nat rule is still needed.

Note here…this part is critical:

since most standard LTE services use CGNAT, which would not allow port forwarding.

This should work (unless you have some other rules that affect this), also To Ports doesn’t need to be added if the same as port in Dst. Port. Examining configuration export could help.

Sorry. Did not understand correctly. But i don’t need to export anything. I only need to make some changes in port forwarding so it could port forward FROM LTE1 (sim card) to ETH2. Previous configuration was working from ETH1 port forward to ETH2. Now my internet is coming not from ETH1, but from LTE1, while main switch still on the ETH2.

Is that correct? I don’t have such rule in my configuration, and dstnat forwarding works. I have only input rules for accessing ROS system services (VPNs)

You mean on the same FW NAT rule, on this page:
Screen Shot 2023-03-27 at 18.44.56.png

Do you have your internet over sim card, from LTE1 ?

since most standard LTE services use CGNAT, which would not allow port forwarding. [/i]

You mean there is no way to make port forward using sim card (lte1) as internet source? :neutral_face:
hard to believe..

Yes, I’m using Chateau LTE12. My WAN (internet) inteface is lte1

And you only have “in.interface” as lte1 and port forward is working for you ? :neutral_face:

If is the same SIM as was in ZTE and from there it worked, I doubt that ISP changed something in the mean time, but also can be APN configuration (I have different to get public IP, not network APN)

Sorry for being confusing: If you have a public IP, you really just need to add an input rule with action accept in the IP > Firewall > Filter page. Your title is going to attract attention, so more a note for others, not your case. e.g. having a public IP on LTE is not common

With the default firewall and QuickSet, you need to allow the input traffic to router.

LTE is/should be in WAN interface list, so the !LAN rule in /ip/firewall/filter would drop the traffic incoming traffic for the LTE’s public IP. The dst-nat rule looks right. But it will never get hit because the !LAN is dropping it.

Yes, I actually use In. interface list WAN (which is set to lte1) but it should be the same, others settings as I posted before.

Wooow. You maybe right!!!
i see that now i have NOT my external IP.

Yes, it is the same SIM card, and there is no way ISP could change it. As it was working fine, i just removed sim card from ZTE, put in to Mikrotik and that’s it. It’s not working any more. So maybe there is a catch with APN settings.

YES !!!
You are my saver !!!

I only add one setting in APN and it started to work (with LTE1) as In.interface!!!

Thank you !!!

As long as
a. you have a proper formatted dst-nat rule
b. have the default firewall rule blocking all WAN traffic except for dst-nat or
own rule allowing dst-nat OR
no firewall rules (meaning all is permitted).

It should work. If it does not then it would seem you are stuck and need to contact ISP for a real IP.

Para 5 applies – https://forum.mikrotik.com/viewtopic.php?p=885249#p885249