From owner-freebsd-questions@FreeBSD.ORG Wed May 10 20:53:57 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F43316ABA3 for ; Wed, 10 May 2006 20:53:57 +0000 (UTC) (envelope-from viper@fx-services.com) Received: from mamata.fx-services.com (mamata.fx-services.com [193.238.27.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A2F843D6D for ; Wed, 10 May 2006 20:53:43 +0000 (GMT) (envelope-from viper@fx-services.com) Received: from c83-250-235-77.bredband.comhem.se ([83.250.235.77] helo=[192.168.2.160]) by mamata.fx-services.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.62 (FreeBSD)) (envelope-from ) id 1Fdvgh-000LME-0N for freebsd-questions@freebsd.org; Wed, 10 May 2006 22:53:40 +0200 Message-ID: <44625316.4050902@fx-services.com> Date: Wed, 10 May 2006 22:54:46 +0200 From: Robin Vley User-Agent: Thunderbird 1.5.0.2 (X11/20060501) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <2cd0a0da0605101331g345b9c44u970fbf5764db6f2c@mail.gmail.com> In-Reply-To: <2cd0a0da0605101331g345b9c44u970fbf5764db6f2c@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus-Scanner: Mail is Virus Free, FXS MailGateway X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - mamata.fx-services.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [26 6] X-AntiAbuse: Sender Address Domain - fx-services.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: Help! FreeBSD Webserver with two NICs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 May 2006 20:53:57 -0000 Maan Jee wrote: Hi! > At present, I have a 100/10 Mbps internet connection > (fiber-optics) but with this connection I cannot get Fixed IP for the > webserver. Sweet. Why-O-Why won't they give you a static IP on that line? :) Here (Sweden) we have full 100/100mbit to some appartment buildings WITH fixed IP. But basicly you can only pull/push 1mbit, since there is a 300GB traffic limit imposed. :) > So, I came to an idea that if I use two NICs, one NIC bounded to 100/10 > Mbps to serve the pages and one which would be bound with 24/1 Mbps > connection with Fixed-IP to litsen the requests.... > > my Question is that is it possible and if so, how? Not possible the easy way: you can't reply to a request from a different IP than the one the request was sent to due to TCP socket limitations. The clients expects an answer from IP x on the socket it opened, but instead receives "unknown" data on a new socket coming from IP Y. To get this working you would need a third fixed IP/machine somewhere and do tunneling with two channels combined. That way your inbound traffic would go via the fixed IP and the outbound via the big pipe. Giving me an idea right away: if you have any such point available close by with a fixed IP (some machine somewhere in a rack with good bandwidth): tunnel it to your home. But if you would have that, you wouldn't have the webserver at home anyway, would you? :) -- Robin Vley F/X Services Managed Hosting http://www.fx-services.com