@sarreq In a nutshell, the bug within the proxy pac file:
"
if ( shExpMatch(host, "*.i2p$") ) {
return "PROXY localhost:$PORT_HTTP_PROXY"
}
return "SOCKS localhost:$PORT_TOR";
"
localhost is wrong in this context (in an environment like yours it must be indeed the "server" address, like a NAS).