Double question: Apache mod_proxy and force connection over specific interface

Discussion in 'Server Operation' started by Nukien, Jan 5, 2008.

  1. Nukien

    Nukien New Member

    Double question here ... Running on Debian Etch and Apache 2.0

    1) Using mod_proxy and/or mod_proxy_http in apache 2.0.

    The basics of using mod_proxy are pretty simple so long as you're using a static config. I'm trying to figure out how to do it dynamically - that is, allow the entry of a url via a form and proxy THAT url ...

    ProxyPass        /foo
    ProxyPassReverse /foo
                          This needs to be entered via form
    This would be a simple page that has a drop-down list to select the outgoing interface (see part 2) and box to enter a url. Clicking the button would fetch the url using the selected interface.

    2) Force a mod_proxy outgoing connection to use a specific local interface (eth0:1, eth0:2 and so on) each with its own IP address/network.

    The local box this would be on would have several IP addresses configured via aliases. The form selection would allow the redirection/proxy to go out over a specific interface/address. This would let us validate the traffic paths and let the target site customize the content to the incoming source IP address.

    Any ideas as to where to look to figure this out ?

    Thanks -

  2. Nukien

    Nukien New Member

    I wonder if using wget or something which allows specification of the local IP address could come into play ? Since we know the local IP to use (from the form) we can craft a command-line wget to go grab the URL.

    Hrm, how then to pass it back up the chain to the original requesting client browser ?


Share This Page