Piwik in closed-network

Hi community,
my first piwikinstallation was successful. Piwikserver is
located in closed-network (DMZ), all cms-server also. The
CMS Server are available with proxy, Piwikserver not.
The headerscript (inside cms-template) referenced to a
local .php (like GitHub - piwik/tracker-proxy: HTTP proxy for Piwik's tracker API. This script allows to track websites with Piwik without revealing to your visitors the secret Piwik server URL.).
Curiously in Piwik i can find trackinginformations from
the trackingsites (also tested with Opera Tor Browser).
But vistitorbrowsers failed to load resource: net::ERR_CONNECTION_RESET
Okay, piwik.js is located on piwikserver in DMZ…
Is it possible to operate a piwikserver without inernetaccess?

Piwik-Version: 3.1.1
MySQL-Version: 5.5.57
PHP-Version: 5.5.9-1ubuntu4.22 
[General]
enable_auto_update = 0
enable_update_communication = 0
enable_marketplace = 0

Thanks for any help.

Hi,

Do the visitors of your website have access to the piwik-server?
If yes, I am not sure why an error occurs, as they should be able to send their data to piwik.
If no, I guess you’ll need something like this:

Hi Lukas,

the vistiors dont have access to the piwik-server.
Tracker-proxy works fine in my configuration. And all
users with access to intranet are able to see the server.
But every visitor without access to piwik-server / intranet became
the error message “Failed to load resource: net::ERR_CONNECTION_RESET”.
The reason is, that visitor browser try to connect the server:
http://myPiwikserver/piwik.php?action_name=Homepage&idsite=4&rec=1&r=423724&h=8&m=28&s=36&url=http%3A%2F%2Fwww.myWebserver%2F&_id=cb5e059cf097a942&_idts=1506666516&_idvc=1&_idn=0&_refts=0&_viewts=1506666516&send_image=1&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=0&java=0&gears=0&ag=0&cookie=1&res=1920x1200&gt_ms=2625&pv_id=TSrVGl net::ERR_CONNECTION_RESET

Hi,

If you are using tracker proxy you’ll need to modify the tracking script to point to the proxy instead of your (not externally reachable) piwik instance, as the Browser otherwise tries to send the data directly:

Hi,
thats what id do.
The tracking script inside CMS-Template connect the local piwik.php:
var u="//{/literal}{$smarty.server.HTTP_HOST}/{literal}";…

Hi Lukas,
problem solved ; -)
Thanks for help!