From owner-freebsd-bugs@FreeBSD.ORG Sun Apr 9 07:00:32 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DFEE16A400 for ; Sun, 9 Apr 2006 07:00:32 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8AA7443D45 for ; Sun, 9 Apr 2006 07:00:31 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3970VlI068539 for ; Sun, 9 Apr 2006 07:00:31 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3970V2N068534; Sun, 9 Apr 2006 07:00:31 GMT (envelope-from gnats) Resent-Date: Sun, 9 Apr 2006 07:00:31 GMT Resent-Message-Id: <200604090700.k3970V2N068534@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Daniel O'Connor" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68A4916A402 for ; Sun, 9 Apr 2006 06:57:07 +0000 (UTC) (envelope-from doconnor@metatron.gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E63143D45 for ; Sun, 9 Apr 2006 06:57:06 +0000 (GMT) (envelope-from doconnor@metatron.gsoft.com.au) Received: from metatron.gsoft.com.au (metatron.gsoft.com.au [203.31.81.1]) by cain.gsoft.com.au (8.13.5/8.13.4) with ESMTP id k396uxi5034212 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 9 Apr 2006 16:27:05 +0930 (CST) (envelope-from doconnor@metatron.gsoft.com.au) Received: from metatron.gsoft.com.au (localhost [127.0.0.1]) by metatron.gsoft.com.au (8.12.10/8.12.10) with ESMTP id k396uxBF052502 for ; Sun, 9 Apr 2006 16:26:59 +0930 (CST) (envelope-from doconnor@metatron.gsoft.com.au) Received: (from doconnor@localhost) by metatron.gsoft.com.au (8.12.10/8.12.10/Submit) id k396uxUp052501; Sun, 9 Apr 2006 16:26:59 +0930 (CST) (envelope-from doconnor) Message-Id: <200604090656.k396uxUp052501@metatron.gsoft.com.au> Date: Sun, 9 Apr 2006 16:26:59 +0930 (CST) From: "Daniel O'Connor" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/95532: if_gif has artificial limitations X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel O'Connor List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 07:00:32 -0000 >Number: 95532 >Category: kern >Synopsis: if_gif has artificial limitations >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Apr 09 07:00:30 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Daniel O'Connor >Release: FreeBSD 4.9-STABLE i386 >Organization: >Environment: System: FreeBSD metatron.gsoft.com.au 4.9-STABLE FreeBSD 4.9-STABLE #3: Fri Nov 28 12:06:51 CST 2003 doconnor@cain.gsoft.com.au:/usr/obj/usr/src/sys/METATRON i386 >Description: I have ADSL through the ISP Internode [Australia] and it uses a bridged ethernet configuration - this is pretty standard, however we also have a class C routed to our connection and that is done using an IP over IP tunnel (ie gif). The thing is that if I configure gif like so.. gifconfig gif0 150.101.23.134 203.16.215.227 ifconfig gif0 up mtu 1452 and do route add default -iface gif0 all the machines on our LAN except the gateway itself work as expected. Howver the gateway doesn't work as when it makes outbound connections that aren't explicitly bound to an IP they go out with a from address of 0.0.0.0 which the ISP just drops (I presume). I can configure gif0 like so.. ifconfig gif0 203.31.81.9/32 192.168.254.123 mtu 1452 up (203.31.81.0/24 is our class C, and 203.31.81.9 is a spare IP - the routers normal IP is 203.31.81.1) everything works from including the gateway. The 192.168.254.123 is a bogus address I had to use because gif won't accept only one address.. ie I would think this would be more correct.. ifconfig gif0 203.31.81.9/32 mtu 1452 up Having a work around is OK but it would be nice to know if it's possible to fix (since I imagine the restriction on point to point interfaces is done in the network stack), if there are any other [better] work arounds, and if it is still a problem in 6.0. Thanks >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: