Community discussions

MikroTik App
 
truefriendcz
newbie
Topic Author
Posts: 39
Joined: Mon Jun 05, 2017 11:07 am

2 internet connections with different types WAN to LAN, LAN to WAN

Sun Jan 16, 2022 3:35 pm

Hello, I have Mikrotik router hAP ac³ LTE6, and 2 internet connections:
1. lte1 in MicroSIM slot
- The public IP address is activated on the network and I want to use it as a connection to access the server behind the router (port 80). There is a low data limit (from ISP) on this connection so I cannot use it as a user connection to the Internet but only to access the web server.
2. lte2 in USB dongle slot
- There is a large data package on this network but it does not have a public IP address.

I want to ask how would you recommend me to set up a router so I can use connection number 2. from the LAN to access the WAN, download files, browse the site, etc.
And to access the web server in my LAN use the connection number 1. for from the WAN to the internal LAN?

I understand, that it's possible to configure, but i don't know the right way, or right keywords to google for..
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19099
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: 2 internet connections with different types WAN to LAN, LAN to WAN

Sun Jan 16, 2022 4:04 pm

Assumptions
1. Server is on subnet A 192.168.5.0/24
2. Users are on subnet B 192.168.0.0/24
3. Using version 7 firmware

Use LTE1 (capped connection) as Primary Router
USE IP CLOUD and dyndns name provided to use as the incoming URL:80
If your ISP doesnt allow port 80 inbound, then just use 8088 for example and then in MT firewall rules translate that to 80.

THUS
/ip route
dst=0.0.0.0/0 gwy=LTE1 distance=5
dst=0.0.0.0/0 gwy=LTE2 distance=10
dst=0.0.0.0/0 gwy=LT2 distance=10 table=use=LTE2

Route rule
Src-address=192,.168.0.0/24 Action: lookup-only-in-table table=use-LTE2

Prior to creating the routes above, you need to create the Table above......


Not available in winbox yet, so use the terminal and command line to create it.....
Not sure which is correct??? THis one...........
/routing table add name=use-LTE2 fib


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Result, all USERs will be directed out LTE2 for all their internet work.
The IP CLOUD service dyndns URL will provide the public IP address of LTE1 and can be used by external folks requiring access to the server.
Return traffic from the server will go out the primary route which is LTE1.
 
truefriendcz
newbie
Topic Author
Posts: 39
Joined: Mon Jun 05, 2017 11:07 am

Re: 2 internet connections with different types WAN to LAN, LAN to WAN

Thu Jan 20, 2022 1:04 am

That configuration doesn't work for me. I have RouterOS 7.1.1. Once set, there is no operation on either interface.
I set up IP routes as needed

(On screen... I connected that wlan2 to get to the internet and the internet and access to public IP do not work even when wlan2 is disabled)
Capture.PNG
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: 4l4R1, CodeAlpha, Majestic-12 [Bot], shadarim and 41 guests