From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MqZWl-0003yu-OC for garchives@archives.gentoo.org; Wed, 23 Sep 2009 21:37:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 09475E0777; Wed, 23 Sep 2009 21:37:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id D7739E0777 for ; Wed, 23 Sep 2009 21:37:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 277DF645F3 for ; Wed, 23 Sep 2009 21:37:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -2.495 X-Spam-Level: X-Spam-Status: No, score=-2.495 required=5.5 tests=[AWL=0.104, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f27yD8sWGE4n for ; Wed, 23 Sep 2009 21:37:22 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 21CF964794 for ; Wed, 23 Sep 2009 21:37:18 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1MqZVV-0003GW-Ph for gentoo-user@gentoo.org; Wed, 23 Sep 2009 23:36:13 +0200 Received: from www.buffer.net ([24.73.161.102]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Sep 2009 23:36:13 +0200 Received: from wireless by www.buffer.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Sep 2009 23:36:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: James Subject: [gentoo-user] OT: iptables w/ 2 web servers Date: Wed, 23 Sep 2009 21:35:30 +0000 (UTC) Message-ID: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 24.73.161.102 (Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.22) Gecko/20090820 SeaMonkey/1.1.17) Sender: news X-Archives-Salt: 3fcdf4c0-1912-4d8f-9d22-b25e4e298bf9 X-Archives-Hash: 1dbdec5f1fc902f443fdbf8132031df6 Hello, I have one static IP with DNS (primary and secondary) performed by my isp. I'm setting up a second web server with a different domain name. It is setup already by the ISP for DNS. Could someone post some simple iptable examples of how to route 2 different web server traffic streams to 2 different machines? Both are inside the same DMZ....2 different machines with different (NAT) IP addresses. Right now, all port 80 traffic is auto forwarded to a single NAT address on the firewall. Simple. Now I have to figure out how to forward different web traffic streams to 2 different NAT ip addresses, each on a different ip address and a different machine. I do not want to put the sites on the same machine, for a variety of reasons, beside one machine moves in a few months to a different physical location (and network numbers). Suggestions or a good book for example would be keen. I use raw IPtables/netfilter on the firewall. All servers are gentoo. James