Re: Setting up communication through a firewall.
Hi,
I was wondering whether anyone has an experience in setting up an indicia client to communicate
with a warehouse that is behind a firewall?
The firewall has been configured to allow any http requests originating from the ip address of our external web server directed at the ip address of our firewall to be redirected to a machine that
is on our local network. I've tested this and found that I can successfully retrieve web pages and
directly communicate with the warehouse.
Having progressed a bit further, I have realised that the default situation for the indicia client helper is for the included javascript and css files to be from the same location as the warehouse. Because the route through the firewall is deliberately limited to the IP address of the web server, attempts by the browser to load these files will fail.
As a crude means of overriding this, I copied the media/js and media/css folders onto the client web server and added the following after line 197 of helper_base.php :
$base = "/indicia/";
This means that the js and css files are being picked up from the client site.
This would probably be better served as an option in the configuration file.
However, this change doesn't apply to ajax calls, which still attempt to communicate directly with the warehouse.
I suspect that it will be necessary to configure ajax communication to be done through a proxy script, but before trying to work this out myself, thought I should ask the members of the forum whether anyone has already found a solution or need a similar solution.
cheers
Robin Jones
IT Manager: Species Conservation
Wildfowl & Wetlands Trust