From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HnYAK-00087r-Bs for garchives@archives.gentoo.org; Mon, 14 May 2007 10:52:33 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l4EAoOCO001158; Mon, 14 May 2007 10:50:24 GMT Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.234]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l4EAjQ8a027506 for ; Mon, 14 May 2007 10:45:27 GMT Received: by nz-out-0506.google.com with SMTP id x7so382911nzc for ; Mon, 14 May 2007 03:45:26 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=HtJe71e5a2URUmiQFqZPZgkAFOoPcHZWT4JnBVR7OlAyXhjNI/3jTCgO8yBLBEeUiOqNl8Col1Wd6iic0k4B6KeSwcAMz48GrqQhAk/uq7B2+mb3/OE2dF4pIvbH2qT/Z/Vk9IpDsaE+pcjEZ04eQW5vIqavuxgtf3kg6++gzag= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=H6TZ59W1Ifp2P9FN6vlV8zS3bxJUsGoPDxZcM0ETBpZcD38+b/zagDsMPqgUy9oMBdyEQqkRY68EXlPrTYtbXEuVkBEkQIZJxd1X3radioJDncQheXsuyF5D0xNERSam/WUVt+SUXMIUhZVnEsV6H8Yx6kCwe16VZ42SGpz9VzI= Received: by 10.115.88.1 with SMTP id q1mr942440wal.1179139525649; Mon, 14 May 2007 03:45:25 -0700 (PDT) Received: from kureyon.gremlins.biz ( [61.10.251.131]) by mx.google.com with ESMTP id y25sm12491421pod.2007.05.14.03.45.24; Mon, 14 May 2007 03:45:25 -0700 (PDT) From: Crayon Shin Chan To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Force app to use specific outgoing ip address? Date: Mon, 14 May 2007 18:45:18 +0800 User-Agent: KMail/1.9.5 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705141845.19939.crayon.shin.chan.uk@gmail.com> X-Archives-Salt: eaa0221b-b00d-40b9-b940-af36eecf8856 X-Archives-Hash: a2a614b9f7179fb70a3545b16c355b64 I have a gateway machine with a single NIC but several virtual IP addresses. I have several instances of apache running, each bound to listen on their own virtual IP address. All the instances of apache are running in proxy mode. What is happening now is that all the apache instances use the 'main' IP address for all outgoing connections. What I would like is for each instance of apache to use their own virtual IP address for outgoing connections. Is it possible to rig iptables to achieve this? And how would I do this? NB I'm open to solutions using proxies other than apache. thanks -- Crayon -- gentoo-user@gentoo.org mailing list