Sponsored Content
Top Forums UNIX for Advanced & Expert Users Double question: Apache mod_proxy and force connection over specific interface Post 302155961 by Smiling Dragon on Sunday 6th of January 2008 09:11:52 PM
Old 01-06-2008
Quote:
Originally Posted by Halfwalker
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.
If you create several virtual NICs as above, you can use destination specific routing to choose which interface to use. It's not quite what you've asked for but could be sufficient?
 

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
OCF_HEARTBEAT_IPADDR(7) 					OCF resource agents					   OCF_HEARTBEAT_IPADDR(7)

NAME
ocf_heartbeat_IPaddr2 - Manages virtual IPv4 addresses (Linux specific version) SYNOPSIS
IPaddr2 [start | stop | status | monitor | meta-data | validate-all] DESCRIPTION
This Linux-specific resource manages IP alias IP addresses. It can add an IP alias, or remove one. In addition, it can implement Cluster Alias IP functionality if invoked as a clone resource. SUPPORTED PARAMETERS
ip The IPv4 address to be configured in dotted quad notation, for example "192.168.1.1". (unique, required, string, no default) nic The base network interface on which the IP address will be brought online. .sp If left empty, the script will try and determine this from the routing table. .sp Do NOT specify an alias interface in the form eth0:1 or anything here; rather, specify the base interface only. .sp Prerequisite: .sp There must be at least one static IP address, which is not managed by the cluster, assigned to the network interface. .sp If you can not assign any static IP address on the interface, modify this kernel parameter: sysctl -w net.ipv4.conf.all.promote_secondaries=1 (or per device) .sp (optional, string, default eth0) cidr_netmask The netmask for the interface in CIDR format (e.g., 24 and not 255.255.255.0) .sp If unspecified, the script will also try to determine this from the routing table. (optional, string, no default) broadcast Broadcast address associated with the IP. If left empty, the script will determine this from the netmask. (optional, string, no default) iflabel You can specify an additional label for your IP address here. This label is appended to your interface name. If a label is specified in nic name, this parameter has no effect. (optional, string, no default) lvs_support Enable support for LVS Direct Routing configurations. In case a IP address is stopped, only move it to the loopback device to allow the local node to continue to service requests, but no longer advertise it on the network. (optional, boolean, default false) mac Set the interface MAC address explicitly. Currently only used in case of the Cluster IP Alias. Leave empty to chose automatically. .sp (optional, string, no default) clusterip_hash Specify the hashing algorithm used for the Cluster IP functionality. .sp (optional, string, default sourceip-sourceport) unique_clone_address If true, add the clone ID to the supplied value of ip to create a unique address to manage (optional, boolean, default false) arp_interval Specify the interval between unsolicited ARP packets in milliseconds. (optional, integer, default 200) arp_count Number of unsolicited ARP packets to send. (optional, integer, default 5) arp_bg Whether or not to send the arp packets in the background. (optional, string, default yes) arp_mac MAC address to send the ARP packets too. .sp You really shouldn't be touching this. .sp (optional, string, default ffffffffffff) flush_routes Flush the routing table on stop. This is for applications which use the cluster IP address and which run on the same physical host that the IP address lives on. The Linux kernel may force that application to take a shortcut to the local loopback interface, instead of the interface the address is really bound to. Under those circumstances, an application may, somewhat unexpectedly, continue to use connections for some time even after the IP address is deconfigured. Set this parameter in order to immediately disable said shortcut when the IP address goes away. (optional, boolean, default false) SUPPORTED ACTIONS
This resource agent supports the following actions (operations): start Starts the resource. Suggested minimum timeout: 20s. stop Stops the resource. Suggested minimum timeout: 20s. status Performs a status check. Suggested minimum timeout: 20s. Suggested interval: 10s. monitor Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 10s. meta-data Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s. validate-all Performs a validation of the resource configuration. Suggested minimum timeout: 20s. EXAMPLE
The following is an example configuration for a IPaddr2 resource using the crm(8) shell: primitive p_IPaddr2 ocf:heartbeat:IPaddr2 params ip=string op monitor depth="0" timeout="20s" interval="10s" SEE ALSO
http://www.linux-ha.org/wiki/IPaddr2_(resource_agent) AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors) resource-agents UNKNOWN 03/09/2014 OCF_HEARTBEAT_IPADDR(7)
All times are GMT -4. The time now is 06:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy