NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
solarsurf
Oct 08, 2020Aspirant
Nighthawk R6400 - Redirect outgoing IP address
I have a data logger on a local area network that sends data to a remote server for long-term storage. The company that provides the server and storage service is terminating support and will no longer accept data from this data logger. The communication protocol between the devices is a simple HTTP call. The data logger has the IP address of this remote server hard-coded in firmware; I am not able to change it.
Is it possible to use the a Netgear router to redirect the outgoing communication from the data logger to a URL of my choosing (instead of the hard-coded IP address) so that I can use my own remote server to receive the data from the data logger?
Thank you for any guidance you can provide.
> Some might. [...]
Note that some non-Netgear routers (or non-Netgear firmware for
Netgear routers) might allow the user to specify name-address data in
potentially useful ways for your situation. I seem to recall (dimly)
questions in these forums from users who sought how-to guidance for a
Netgear router to do what they had been doing on some other vendor's
models. More market research might reveal a router which has a more
helpful feature set.
7 Replies
> I have a data logger [...]
Not a very detailed description of that device.
> [...] The data logger has the IP address of this remote server
> hard-coded in firmware; I am not able to change it.Someone set it once.
> [...] The company that provides the server and storage service [...]
They have no advice or guidance?
> Is it possible [...]
I doubt it. I can't see exactly what it was doing when it worked,
which makes it tough to guess how to intercept whatever it tries to do.
For example, to identify the remote server, does it use a particular IP
address, or a particular DNS name, or what?
I don't see a simple way to do anything for HTTP redirection in
general. I can imagine establishing a custom DNS server and/or a
separate router whose LAN would be on the subnet of the old remote
server, so that you could disguise your own server as the old remote
server. An HTTP proxy might be useful, too, depending of the details of
your "my own remote server".Knowing approximately nothing about your "a data logger", I suspect
that replacing it with something over which you have more control might
make more sense than trying to fake out this one. But what do I know?- solarsurfAspirant
Thank you for the reply.
I'm sorry, I think I was not specific enough and included too much extra information.
I have attached a file that contains a snapshot of a typcial HTTP message from the local device to the remote server. It shows a the IP of the destination server as 174.143.16.154 and the URL of the server as "gw1.eri-gw.com" as specified in the HTTP message.
I am wondering if there is a way to configure a router so that the router substitutes another URL or IP address for the URL "gw1.eri-gw.com"?
I understand that redirecting this HTTP message is unlikely; I just want to fill in the blanks of my original post.
Thank you for your help.
> I'm sorry, I think I was not specific enough and included too much
> extra information.The best of all possible worlds.
> I am wondering if there is a way to configure a router so that the
> router substitutes another URL or IP address for the URL
> "gw1.eri-gw.com"?I know of none. Fiddling with HTTP messages as they pass through
isn't really its job.> I have attached a file [...]
Ok. Depending on what your mystery gizmo really is, some relatively
simple things might be possible.
If it uses (or can use) a "hosts" file for its name resolution, then
you might be able to fool it into using the address of your choice for
that DNS name, "gw1.eri-gw.com" (by editing that "hosts" file).
Otherwise, pointing the thing at a local DNS server could accomplish the
same thing. But I know nothing about how it does name resolution.But, even if you could point your mystery gizmo at a server address
of your choice, then you'd still need to provide the actual server. A
generic web server should not be a big problem, but this one needs to
have a "/rectrack/get_lua.php" (PHP script, I assume) to accept the data
(with those parameters, "serno=xxxxxxxxxxxx&command=get_instruction").With my weak psychic powers, I know nothing about what that script
does with the data. If it were _my_ magic PHP script, then I might be
reluctant to give you a copy of it, but you could always ask the vendor
for assistance.
> I understand that redirecting this HTTP message is unlikely; I just
> want to fill in the blanks of my original post.Understood. A quick Web search for things like "get_lua.php" found
approximately nothing, so I'd guess that we're not dealing with a
mass-market product here. Without some serious cooperation from the
vendor, you might be looking at some real reverse-engineering work to
replace the vanishing service. (Find a talented student who's not
getting enough screen time these days?)