I recently bought a LtAP mini LTE kit and put in the sim card today. How do I tell it to use its "lte1" interface only for SMS messages but never for mobile data (or calls)? The internet should only ever be accessed with "ether1"/the bridge that was already set up (didn’t have to create a new one as shown in the "Getting started" guide).
Is it sufficient to simply remove the default (and only) “internet” APN that shows up in the “Interfaces/LTE/LTE APNs” list?
It has to be seen, but probably you need the apn also for sms.
Woldn't it be easier/simpler to add a firewall rule preventing internet connection through lte?
(possibly still allowing - say - ping to have a way to verify that connection is active before attempting to send a SMS)
In any case it depends on how you have the thingy configured, post your current configuration for review:
Is that a ping to see if the sim card is connected to a cell tower/has reception? That would be quite useful!
I don’t need any internet access with the simcard because it’s only a prepaid card and I have to pay for every text message, call and mb used (I’m using it to send a few sms every month, so it’s a lot cheaper than an actual contract). I do however need access to RouterOS via the LAN port, of course, so I can use the API SMS commands.
Is “hide-sensitive=yes” not available in RouterOS 7.16.2 anymore? It just says “expected end of command”.
Iirc I haven’t changed any settings after doing the initial setup via wifi on my phone, then on my PC via the web interface.
I think you should just ensure that there is no DHCP client on your LTE interface, and no any routes to it, so there will be no way to send the data over mobile network.
Probably there are also some AT commands for that, but not sure.
I’m not worried that someone will try to access the internet with the sim card manually (or through my code) because the kit is only going to be accessible from within the same network but only about e.g. auto updates (Router OS). I haven’t been able to find any settings for those yet, so hopefully they aren’t enabled. In the “Traffic” section of the sim card (Interfaces - lte1) it also says:
Tx/Rx Bytes: 184.5 KiB
There’s a spike in the byte and packet graphs once a minute. I’m guessing that it has to check for a signal every once in a while (no idea how this works tbh) but I do not want it to use mobile data at all.
Try to check your "spikes" via Torch tool, you'll see which addresses are accessed. Signal is checked via AT commands, data network is not used for that. It could be DHCP traffic, also it could be time sync (uncheck 'Update time' checkbox in IP->Cloud). In my case, DHCP traffic is not accounted, so I don't care about it, I just set higher Distance for LTE route, so it's only active, if all other networks are unavailable.
SMS are sent via modem interface and not affected by data network or firewall.
Is that for the bridge? I gave the kit a fixed IP (and set the DNS server) when I set it up through wifi on my phone, which probably also disabled DHCP (I won’t use it anyway).
What device? The kit?
My setup: The kit’s got a fixed IP within the network and it’s connected to the same LAN switch that my PC is also connected to. I open a socket to the kit in Java and send commands like /tool/sms/send through it. This obviously has to work and the kit should also have a connection to the internet, so I can download updates (should never happen automatically) but it must always use the wired LAN connection for this, never lte1. This should always only be used to send SMS, nothing else.
Two list entries (#: 0 and 1) keep popping up in Torch tool (no filters used): The “Tx Rate” jumps to a value of 4.3kbps or 496bps (yes, always those exact values), then back down to 0 but the other fields are either “0” or empty.
I just unticked “Update time” and hit “apply” but there are still the same spikes. The small spikes are always one minute apart and the big ones seem to be distanced equally around them.
Ip firewall filter rules are rules for the firewall, they are not "for the bridge" or "for" something, if not what is in the rule itself, the proposed ones mean:
drop each and every packet that enters the router from the interface(s) belonging to the interface list "LAN" (in your case the bridge) and want to go out through the interface(s) belonging to the interface list "WAN" (in your case lte1)
This one instead:
add action=drop chain=output out-interface-list=WAN
means drop anything that tries to go out the interface(s) belonging to the interface list "WAN" (in your case lte1), but not those forwarded.
The second catches everything that is generated from router, the first packets originated from LAN.
You can check how the chains are set in RouterOS in this diagram:
is invalid and should be either corrected or deleted.
Though it won't do any harm and in a simple configuration like yours it doesn't add to complexity, it is good practice to keep configuration clean from this kind of invalid entries, as the simplest check that one does (should do) in case of issues is to make an export, paste it in notepad and search for entires with asterisk, and the prerequisite is that there should be none in a clean configuration.
Thanks for the Packet Sniffer tip! I limited it to the “lte1” interface:
It doesn’t mention the source or destination addresses on the “packets” screen but on “connections” it says that the source address is my PC and the destination is the kit. Is that the connection of the web interface? Why is it using the LTE connection for that, instead of LAN? The bridge is set up with “ether1”, as described in the set up guide.
It’s weird, I checked it before and I’m pretty sure there was a greyed out list entry there but now there’s an active one for “lte1” with an IP address that I do not know (please also read my reply to teslasystems, it’s connected). I exported the file again but it still says “'*4”.