I followed the guide in the wiki and enabled a secondary APN. My first APN is in passthrough mode and pass the public IP to my main router. Hence, I was thinking to connect another LAN port of RUTX50 to my router’s secondary WAN port and leave my main router handle the load balancing.
The question is , how could I isolated a physical port at RUTX50 to be used solely by the secondary APN connection?
What you’re trying to configure is a bit different in real-world applications. Setting up two separate APNs would require two simultaneous connections, which in turn would require two separate modems for both connections to be active. However, the RUTX50 has only one modem. Currently, we have only one device with two modems—the RUTX12.
Thanks for your feedback. I am trying to setup two APNs in the same mobile network. My sim card has access at two APNs. I followed this guide (Multi-APN - Teltonika Networks Wiki) and have two IPs shown in the WAN interfaces page.
My question is how can I isolate one of these wan interfaces to specific LAN port.
Please note that the LAN and WAN interfaces and zones have been separated. When the guide mentions the LAN interface, go to Network → LAN, and when it mentions the WAN interface, go to Network → WAN.
I spend the whole day trying to adapt the guide your provided to myt problem. I wasn’t succesful. I have one WAN mobile interface which is bridge, a second one which is NAT. Both on the same SIM.
If you could please help by giving instructions on how to accomplish this it would be very appreciated.
I tried to adapt the instructions on the link above, but those are for separating WIFI and LAN clients, while I would need to separate two different LAN ports. If you could just give me a hint and I will try to figure out the rest.
The difference between RUTX50 WEB UI and the wiki doesn’t make it easy.
Sorry for the misunderstanding. Bridge mode simply passes traffic without performing any routing. This means that only one instance of a bridge/passthrough interface can be active at a time. Therefore, the solution described here (Splitting Network Traffic Via Multiple Interfaces - Teltonika Networks Wiki) will only work for interfaces operating in NAT mode.
Could you please clarify why you need this specific configuration? Your initial request wasn’t very clear.
I have two APNs on the same SIM card. The first one provides access to the Internet with a Public IP. It also provides bandwidth capped connection (limited speed). The second one provides access to the Intrnet using an IP behind CG-NAT. This one provides no capped bandwidth (unlimited speed).
As you can understand, every type of these connection has its advnatages and disadvantages. Therefore, it would be very helpful to be able to dedicate those two APNs in two different LAN ports of the RUTX50.
Then, my router which is connected back to back with the Teltonika can decide which traffic passes through APN1 or APN2 based on the selection of interface.
This is the network diagram I am trying to describe.
Ideally, in the LAN1 <> WAN1 connection I would prefer to have a bridge connection. So that Public IP can be handled by the ubiquiti router and be able to serve devices that need to open ports to the internet.
In the LAN2 <> WAN2 connection, I can have a NAT of CG-WAN IP, and that would be served to devices that have higher bandwidth needs but don’t care about CG-WAN.
Using NAT on both interfaces will be sufficient in this case. Here is how the configuration should look:
First, go to Network → VLAN → Port Based and set up the configuration as shown in the image below. This will designate the first two ports for one LAN and its corresponding APN, and the other two ports for another LAN and its APN.
Many thanks for your detailed support. I followed the steps from the other wiki page you proposed yesterday and it worked. Step 3 was the most confusing one for me.
Any idea how I could use the APN1 as bridge? I was thinking to hard code the router’s WAN1 MAC address at RUTX50 mon1s1a1 settings, leaving the rest conf for APN2 as is. Do you think that will work?
Edit: it worked APN1 in Bridge, APN2 using NAT. APN1’s IP is passed to all LAN ports, as long as it matches the MAC, no big deal for me.