Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a linux ubuntu vm which hosts a xampp setup. Unfortunately i'm behind an NTLM proxy so i cannot get php to "communicate" with the outside world. Apt-get works fine since i have setup ntlmaps. Is there any way that i can redirect apache-php to ntlmaps? (Hard coding proxy in php curl code is not an option).

share|improve this question

closed as off topic by Michael Hampton, Scott Pack, Magellan, Ladadadada, Zoredache Oct 23 '12 at 16:50

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

It is possible, but it's not a simple setup. First you need an HTTP proxy server which supports transparent connections. You could use squid, or tinyproxy for something lighter. This proxy server should be configured to use ntlmaps as an upstream proxy. You then need to setup iptables rules to redirect the outgoing connections to the transparent proxy. You may need to use the --uid-owner match to to catch just the traffic from PHP. This page has some information about using tinyproxy in this configuration ("A Transparent Proxying solution" section).

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.