Forward data received from traccar device from one server to another server

Shahid2 years ago

Hi,
I have 3 servers,

  1. One in DMZ Zone - InternetServer (Which is accessible from internet)
  2. LAN Zone Server - LANServer (Which is accessible to only InternetServer)
  3. Database Server (Which is accessible from LANServer only)

If I install traccar service in DMZ(InternetServer) then i cannot store records in database since database is not accessible from InternetServer server.
My traccar service must be installed in LANServer but the tracking devices cannot communicate directly to LANServer since it is not accessible to outside internet.

So according to my understanding, I must have some thing installed in DMZ InternetServer which forwards the received data from tracking devices to my LANServer where i can install Traccar Service.

If anyone knows the solution to implement such scenario, could you please help me understand to achieve this.

Thanks

Track-trace2 years ago

Not telling which OS you use on these server?

How about router port forwarding?

Shahid2 years ago

Hi,

Its windows OS Server.

How about router port forwarding?
Yes this could be one solution.

I am trying to find if there is any configuration in the traccar that i can forward the request to another server.

Track-trace2 years ago

I also wonder how many devices you will have on your traccar server. Because it should be easy to have at least 100 devices on a server which has both traccar and database running on it..

Anton Tananaev2 years ago

Who set up your network? Why is it so restrictive? And what do they suggest to do in this case?

Shahid2 years ago

It is our client who have this setup and they don't allow communication with the internal servers through internet. Instead the internet users hits a web server which internally calls their local server(internal) server.

I just wanted to clear if their is any implementation from traccar itself to tackle this issue. SO if i dont find any solution I will contact them.

Shahid2 years ago

I tried calling
<entry key='forward.url'> and i received the data

2023-01-12 13:29:55  INFO: [T27f66f06: teltonika < ] 16030300e2010000de030363bfe12272edc4a7a667ce4466fc40ce3c40ebf2dd1f568d8a2ae21721523a2f000054c024c028003dc026c02a006b006ac00ac0140035c005c00f00390038c023c027003cc025c02900670040c009c013002fc004c00e00330032c02cc02bc030009dc02ec032009f00a3c02f009cc02dc031009e00a201000061000a001600140017001800190009000a000b000c000d000e0016000b00020100000d001600140603060105030501040304010402020302010202001700000000001a001800001561766c7465737464622e737263612e6f72672e7361ff01000100

but it is corrupted data

What i did is
I installed traccar service in both servers
In one server i am using <entry key='forward.url'> and it does forward the data to another server but it is corrupted data.

Anton Tananaev2 years ago

You're not using the forwarding right. It won't forward the original messages.

Shahid2 years ago

Is there any method to forward the original message?

Anton Tananaev2 years ago

No.

Shahid2 years ago

Thanks, Will opt for port forwarding mechanism from firewall