Traccar public ip behind cloudflare DNS ?

Muayadhussien3 years ago

hey im running traccar on windows with let's encrypt secure connection every thing works fine i had to change my domain name server to cloudflare for more secure layer to prevent exposing my public ip online now the devices cant reach the server any idea what to do? thank you .

Anton Tananaev3 years ago

How did you configure it exactly? Usually Cloudflare provides an HTTP proxy. It won't work for most protocols.

Muayadhussien3 years ago

i changed my domain name server to cloudflare and used the cloudflare universal ssl so now my public ip hidden and i can reach traccar web every thing work and even the traccar client app work but when i set the server url to (https://www.example.com) with out the 5055 port but i cant do that with a gps trackers devices i have to provide the ip in the sms command but it wont work becuase my real ip hidden and thank you for the quick res Anton .

Muayadhussien3 years ago

here is a links for the config in the CF

https://ibb.co/tHK61Yq
https://ibb.co/v4W696x

Richard Acosta3 years ago

Make redirect rules on cloudflare firewall to allow traffic on devices' ports as if it were a normal home router.

Muayadhussien3 years ago

I fixed it by D-Nat rule in my firewall it’s turns out the firewall not forwarding device’s port’s nothing to do with the cloudflare thank you Rich.

Jacob Burrell2 months ago

Also trying this setup.

Ports are closed as also confirmed by https://www.traccar.org/port-check/ e.g. 5055 showing closed.

I can access on another machine on the same LAN

nc -zv 192.168.1.50 5055

Connection to 192.168.1.50 port 5055 [tcp/unot] succeeded!

No special non default setting on Cloudflare and its logs aren't showing anything useful.

Using a remote non-cli setup of Cloudflare.

Would be great to add this to documentation as it seems to be a common issue.