From owner-freebsd-questions@FreeBSD.ORG Wed May 20 03:56:35 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 24A98436 for ; Wed, 20 May 2015 03:56:35 +0000 (UTC) Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E266E156E for ; Wed, 20 May 2015 03:56:34 +0000 (UTC) Received: by igbyr2 with SMTP id yr2so92904854igb.0 for ; Tue, 19 May 2015 20:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=SFYp9Ew+xtSyw3MykCK2YGNopH1SI8uC5YXwNVJ9IZo=; b=wxQNwchsk2r5gFcgc7n+H90BFBqwU8BaVNwwM1fuwbdT2KhTZ+RoPwDAG5tPtHdmPd t9uu579k8pGQuMrabDHy7lJNay8lNqE7uWICHTJXugVZhCORwUmmwu2fkGgPgBTNfoYb n/hI1xR6QeIXe6ysS2hCW3IXc7OXgX8VJB7pYx6/IZasjiIwL/eW4d6tq8lH1iiC+C3L mQM2iu/jByTT0OGHjvFDhIjHfxrlIxfa20TkbWFot1u1zI5r9q01LgkniQCgC7FKxxkA smqsbqWVnbOYY9ms78yFv7KKyuUzKEC0RX6h8AIcMWofX5rZTgE+UULxeFUfCwgh77QL OGdA== MIME-Version: 1.0 X-Received: by 10.107.34.140 with SMTP id i134mr28842175ioi.88.1432094194361; Tue, 19 May 2015 20:56:34 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Tue, 19 May 2015 20:56:34 -0700 (PDT) In-Reply-To: References: Date: Tue, 19 May 2015 20:56:34 -0700 X-Google-Sender-Auth: yRPCRPU9B04BX_CVIWnXLGXTWdw Message-ID: Subject: Re: Asymmetric routing with FreeBSD on Amazon EC2 within VPC From: Adrian Chadd To: Patrick Gibson Cc: FreeBSD Questions Mailing List Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2015 03:56:35 -0000 Hi, So the "freebsd clean" solution would be to create two listen sockets, one per IP address, and and have each IP address / routing table in a separate FIB, or separate vnet. I don't know if anyone has set that up though. It would be nice to teach some web servers and proxy serversabout FreeBSD FIBs. -adrian On 19 May 2015 at 12:22, Patrick Gibson wrote: > I'm wondering if anyone has managed to figure out a way to have an > Amazon EC2 instance behind a VPC work with multiple public IP > addresses? The issue is with asymmetric routing. It's been resolved in > the Linux world > (http://blog.bluemalkin.net/multiple-ips-and-enis-on-ec2-in-a-vpc/), > but I can't seem to get it working under FreeBSD. Using the setfib > command, I'm able to manually go out through either interface, but for > incoming packets to a webserver that listens to both interfaces, no > dice. :( > > Patrick > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"