How can I access to my Rak Gateway 7258 when connecting with LTE

Hello,

I have put a SIM card into my 7258 gateway and it connects to the internet since I am capable of receiven packets in my LoRaWAN server, yet I don’t know how to access to the gateway.

I have tried to put the ip that appears (by accessing through WiFi at the same time it has LTE connection) yet there is no way to access without using the local ip assigned by the wifi router.

Could you please tell me how to access settings of the gateway when it is only connected to LTE?

Best regards.

Hi @mat92,

At this point this is not possible. In the next couple of days there should be a firmware update to solve this issues.

Regards
Vladislav

Hello Vladislav,
First of all, thanks for your answer. Can you please notify me when this happen together with instructions on how to do it? It would be great if you do that.

Thanks for your time and effort,

Regards!

Hi @mat92,

Sure, just in case check by end of next week. I hope we have something for you by than. I hope I don’t forget to notify you. We will think of some king of notification for the new firmware. Perhaps a newsletter would be good.

Regards
Vladislav

Any news my friend?

I have seen some folder with a version from 07-12, yet I don’t know whether it is last version neither how to install it.

Regards!

Hi @mat92,

We are still working on it :frowning:
I am not sure I understand your last comment. Folders, versions ???
Are you trying to update the firmware ?

Regards
Vladislav

Hello Hobo,

I have found this: https://downloads.rakwireless.com/en/LoRa/Indoor-Gateway-RAK7258/
And there seems to be a new firmware version than the one I have on my GW.

Regards!

Hi

I have my gateway up and running but need the LTE working. (For conference demos and client testing)

Is there firmware available to get this working yet?

Thx

Peter

There seem to be several different topics here.

The first question seems to be asking for a way to access settings when the gateway has only an LTE connection. If you are actually right next to the box while it is on LTE, running its internal wifi in access point mode would work for local access to the settings, but not for remote administration.

For remote administration, generally speaking mobile networks do not allow inbound traffic (though there are sometimes special offerings). So what is usually done is to have a daemon make an outbound connection to a cloud server which forwards a port back. “ngrok” is a commercial offering of such a service but might not literally work in this case. Using openwrt scripting I have a solution mostly working. I don’t think this is a stock feature, though it would be a good one - and of course it needs a cloud server to function at the “jump host”.

The next major question is if the RAK7258 in the newest question is actually the LTE model. All models have the SIM slot, but only some have the LTE modem soldered to the board underneath the LoRa card. If it isn’t an LTE model, it is possible to connect an external LTE card to the USB port, but I don’t know if the stock software would support this. We needed a very specific LTE card so have gotten this working by rebuilding openwrt with chat as well as ppp and copying over the chat & ppp scripts we worked out on a larger system in order to run it.

A simpler solution could be to connect the gateway to a mobile access point by Ethernet.

For a portable demo, the simplest of all may be to tether it via wifi to your phone.

(Beware that some hotels and conference venues go to efforts (often illegally) to block the use of the personal access points, in order to charge high fees for access to their in-house network. Where this is done by attacking foreign wifi networks, an Ethernet linked AP would be workaround)

Hi

Yes bought the model that has the LTE Module.

Don’t need for configuring, can do that in the office with Ethernet.

Was for taking with us for demos, most of these att and Verizon hot spots are crap and a problem to configure.

Hopefully get some firmware to enable soon. Not an option to use public wifi networks etc for us,

Thx for tips

Peter

Hi Hobo,
Is there a solution now for remote access into LTE versions of this gateway?
Can you please give me some instructions. We have quite a few of those gateways and also the external version. Working great but we need remote access capabilities.
Thanks

I’m not 100% sure if it will work on the factory build and don’t have specific instructions, but on a proof-of-concept basis we’ve used an OpenWRT procd init script with the OpenWRT-default dropbear ssh client to create an SSH tunnel to a bastion server in the cloud through which we can connect back down.

That’s mostly for command line tasks though in theory you could forward whatever ports the web configuration interface needs instead.

Why do not you setup a OpenVPN, so that you can access remotly any time.

Yes I can see the gateway has 3 openvpn options in a tab but I am not familiar with that. My understanding is that I need to have an openvpn server and register the gateway on this network with the client vpn option. This is still very vague to me. Would you be able to shed some lights for me?

setup openvpn is super easy. Try this repo below, it will setup everything for you in 5 minutes.

On Debian or Redhat perhaps.

Do you have evidence this is going to work on OpenWRT, and RAK’s build in particular ?

If so, great - it’s just that its a very different and more limited flavor of Linux than contemplated by that script, with a completely different concept of package management.

You use the script above to setup Openvpn server in the cloud, use whatever distro you like (Debian, Redhat or whatever).

Once setup the OpenVPN server, the script will guide you create client configuration file step by step.

On the RAK gateway, use the created OpenVPN client configuration to configure and then you have it.

You may also need to configure it as static ip address.

Now you can remote access your RAK gateway.

Ok thanks @pauldeng That install script is awesome and a lot simpler.
I got that working. I have a client file with .ovpn extension. Just tried using an android openvpn client and it works well. I can connect to the server and when asking google about my ip , I get the one from the server. Cool.
Now I believe I need to get this client file to be used by the rak gateway and have a fixed local ip address assigned to this client. This way I can connect with my laptop using another openvpn client and get to the gateway by accessing the web console using this fixed local ip.
Is that how it would work?

And how do you tell the open vpn client to assign itself a static ip?

Thanks again, it is helping me a lot

For static IP, please refer to https://github.com/Nyr/openvpn-install/issues/281#issuecomment-482672864.

Here is how I configure RAK:

  1. edit the generated .ovpn file

;persist-tun

  1. rename .ovpn to .conf and copy it to /etc/openvpn/

  2. edit /etc/config/openvp file to

config openvpn 'openvpn'
option enabled '1'
option config '/etc/openvpn/FILENAME.conf'

  1. edit /etc/config/dhcp

# Remove the line "option resolvfile ‘/tmp/resolv.conf.auto’"
# Add following lines
option noresolv '1’
list server '1.1.1.1’
list server ‘8.8.8.8’

  1. reboot RAK

  2. enjoy~~

I just got back to it.

Procedure above works fine to get the VPN working. I can now access the gateway remotely on the vpn ip address.

But as soon as I activate the VPN on the gateway, the lorawan server does not receive anything from the gateway. Not sure what could be the issue gateway firewall rules? lorawan server firewall rules?

Is there a way to keep the gateway using a normal connection for the udp packer forwarder on port 1700 and use openvpn for therest? I don’t think it is a good idea but I would like to get openvpn working and having the lorawan traffic not go through the vpn server. The vpn server is just there so the gateway admin can be accessed remotely.