How to Configure Mikrotik Routeros v6 3G / 4G Modem and Sms Configuration
Mikrotik with the existing line can back up with 3g/4g modem, or any problems with that at present isp connection between the processor system status, etc. can provide something been lost in the notifying you via SMS.
You can see 3g / 4g modem and 3g / 4g MiniPCI card list supported by your router.
http://wiki.mikrotik.com/wiki/Supported_Hardware#3G_cards_and_modems
https://wiki.mikrotik.com/wiki/Supported_Hardware#4G_LTE_cards_and_modems
Now, we’re looking at a 3g / 4g modem to the USB port on the Mikrotik, to check the USB port and see if it recognized the modem.
Default comes as int PPP-out and is in disable mode.
After you connect with winbox to enable, you are enabling interface PPP-out.
Now we will make the settings for 3g / 4g.
The connected USB port is selected and the APN checkbox mgb is written to Turkcell.

In the ppp tab, the phone part is written as * 99 #, the dial command section is ide ATDT, and the add default route is marked.
Now status is connected, connected and received ip information.

Now we have to add a rule to the firewall, to bring the local network to the internet.
1 2 | İp firewall nat chain=srcnat action=masquerade src-address=10.10.10.0/24 out-interface=3G Modem log=no log-prefix=”” |
Now users can use the line over 3g / 4g.
Now let’s set SMS
Under the Tools-SMS menu, we activate the SMS reception.

Now you can see this in the inbox box, even when you can specify the secret to send SMS and you can send SMS by just typing that code in each SMS or you can only accept certain numbers and accept the SMS from those numbers.
Send SMS menu, to send SMS.
Now let’s check the SMS to our phone.
Now we are going to send the notification to us when the script is down with an IP down.
To do this, set the SMS under the tool menu, not watch to make the necessary settings.
System script,
Add a new script
1 2 3 4 5 | /system script add name=Gateway_Down owner=admin policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive source= “tool sms send message=Mikrotik_Routeros_Bildirim_TT_Adsl_Gateway_Down phone-number=05XXXXXXXXX usb1″ |
We’re going to write the same one when it’s up.
1 2 3 4 5 | /system script add name=Gateway_Up owner=admin policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive source= ” tool sms send message=Mikrotik_Routeros_Bildirim_TT_Adsl_Gateway_Up phone-number=05XXXXXXXXX usb1″ |
Now with the netwatch tool underneath the tool menu, we will send sms after 9 seconds.
We show the scripts that we write under Up & down menus, and when the status is down or up, it will run the script based on that.


Let’s test now that I’ve added a drop rule in the direction out of firewall to 195.175.39.39.