Sponsored Content
Top Forums UNIX for Advanced & Expert Users Double question: Apache mod_proxy and force connection over specific interface Post 302155024 by Halfwalker on Wednesday 2nd of January 2008 05:13:01 PM
Old 01-02-2008
Double question: Apache mod_proxy and force connection over specific interface

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 ...

Code:
ProxyPass        /foo http://foo.example.com/bar
ProxyPassReverse /foo http://foo.example.com/bar
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
                      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 -

D.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

force use of specific Perl library

I am calling a Perl script that uses Net::FTP; from Oracle's Concurrent Request Manager and it fails becuase Oracle's version of Perl doesn't include the NET::FTP library's. The AIX box the script runs on has Perl installed with the needed library's, does anyone know how I can force my script to... (1 Reply)
Discussion started by: methos
1 Replies

2. Solaris

How to force the LAN interface running on 10M

Hi all, I would like to force the LAN card to use 10MB instead of 100MB in UNIX enviroment, please help. thanks! :) (3 Replies)
Discussion started by: Felixkoo
3 Replies

3. IP Networking

Apache mod_proxy +DNS slow response problem

My company has a private network, including a Apache web server (Linux) and some WinXP machines. The web server had been configured to use mod_proxy to connect to window update site via another company proxy server. It works for few years. Recently, some parties had setup a DNS server on the... (2 Replies)
Discussion started by: donaldfung
2 Replies

4. UNIX for Advanced & Expert Users

Apache brute force attack

Hi, I'm trying find out if there is a way to stop a brute force attack on a Webmail site. I'm trying to setup a webmail access, but I would like to prevent too many invalid logins from the same IP. I've looked into Snort, but I was wondering if there was an application level firewall that can... (1 Reply)
Discussion started by: nitin
1 Replies

5. UNIX and Linux Applications

Apache problem: mod_deflate with mod_proxy

I am using Apache 2.2.3 on RHEL5 and having problems to get mod_deflate work with mod_proxy. mod_deflate will compress files by mime-type just fine as long as those files are served statically from the local server. However, files served via dynamic php application (ie, MediaWiki) or via... (2 Replies)
Discussion started by: otheus
2 Replies

6. Solaris

how to force e1000g0 interface in solaris 10

Hi all, I encounter some problem with my e1000g interface running on sol 10. I can't permanently change the auto-nego to disable, if i use ndd commands, it will only stay until the next reboot. But i can't change the link speed either is set to /etc/init.d/nddconfig or using ndd commands. ... (1 Reply)
Discussion started by: mailbox80
1 Replies

7. Solaris

Server interface ip question

Hi Guys, can two interfaces on a server have two different ip addresses? Thanks (6 Replies)
Discussion started by: cjashu
6 Replies

8. Web Development

Apache Mod_Proxy with failover

I have the following setup in my apache vhost: ProxyPass /abc http://www.newest.com/ ProxyPassReverse /abc http://www.newest.com/ I want to setup a failover approach in which if after a particular timeout say 10secs the load shifts to some other website like Refer.com | The world. The timeout... (0 Replies)
Discussion started by: ankur328
0 Replies

9. IP Networking

Internet connection single interface through vpn

Hi. Can you please help me with a routing problem? There are 2 networks: 192.168.10.0/24 (eth0) 192.168.11.0/24 (eth0:1) The default gateway is 192.168.10.1 iPv4 routing is already enabled and working. With vpnc I've built up an VPN connection and can access my home network... (0 Replies)
Discussion started by: tschmi
0 Replies

10. Web Development

LDAP Connection Issue on Apache Web Server

Hi.. I have very limited knowledge on LDAP and its configuration and but I have been trying to figure out one issue that takes place when I am running the program that is written in php, but so far its unsuccessful. The server, I am working on is ldap server, which is running on Apache. After... (1 Reply)
Discussion started by: GomathiUoM
1 Replies
ND(1)							      General Commands Manual							     ND(1)

NAME
nd - Tiny little command line WebDAV interface SYNOPSIS
nd [options] url DESCRIPTION
nd provides a simple command line interface to the RFC 2518 (WebDAV) server. If no option is specified, HTTP GET command is issued and writes response data to the standard output. The options are as follows: -c dest_url COPY url to the dest_url. Use lock token if -t is specified. -f Force override the content even when the MOVE or COPY target already exits. -v View property information of url by PROPFIND. With -g option, only the specified property is displayed. -p file PUT file content to the url. Use lock token if -t is specified. -g name Specify the property name for -v option. -e name=value Edit the property with name to value using PROPPATCH . -N namespace-url Specify the property namespace URL for -e or -g option. -P file POST file content to the url. -T is used for the Content-Type. -T content_type Use content_type as a Content-Type field value of the POST request. Default is `application/x-www-form-urlencoded'. -d DELETE url. Use lock token if -t is specified. -l LOCK url. Use -o as owner, -s as scope, -i as timeout. -o owner Specify lock owner. Default is USER environment variable. -s scope Specify lock scope (`exclusive' or `shared'). Default is `exclusive'. -i timeout Specify lock timeout interval. Default is `Infinite'. -u UNLOCK url. -t option is required. -t token Specify the lock token. -r Set command execution `Depth' as `Infinity'. -a realm Specify authentication realm. -A realm Specify proxy authentication realm. -k MKCOL url -m dest_url MOVE url to the dest_url. Use lock token if -t is specified. -S Print output using s-expression. ENVIRONMENT VARIABLES
http_proxy, HTTP_PROXY Specify HTTP proxy. USER When manipulating a lock without an explicit owner option, the value of USER is used to set the owner of the file lock. BUGS
A maintainer of the Debian package has implemented Digest authentication on top of the original software. However, the upstream source uses the nanoHTTP code from libxml2 to implement the HTTP transport. Due to properties inherent in that code for detecting and following redi- rected target sites, there is no way to pull out the new address in order to insert it into the hashes necessary for the Digest method. Nd will therefore incorrectly answer with 'Bad request' to any method call aimed at such sites. Using the correct logical name for the target will, however, produce a correct response from Nd. AUTHORS
Yuuichi Teranishi (teranisi@gohome.org). SEE ALSO
libxml(4). February 25, 2002 ND(1)
All times are GMT -4. The time now is 12:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy