From owner-freebsd-bugs Fri Jan 24 19:33:38 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA15304 for bugs-outgoing; Fri, 24 Jan 1997 19:33:38 -0800 (PST) Received: from bsd1.nyct.net (myj@bsd1.nyct.net [204.141.86.3]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA15297 for ; Fri, 24 Jan 1997 19:33:31 -0800 (PST) Received: from localhost (myj@localhost) by bsd1.nyct.net (8.8.3/8.7.4) with SMTP id WAA10298 for ; Fri, 24 Jan 1997 22:33:22 -0500 (EST) Date: Fri, 24 Jan 1997 17:41:17 -0500 (EST) From: Paul Sandys To: Julian Elischer Subject: Re: kern/2569: route -iface breaks inet behaivour In-Reply-To: <32E896C8.41C67EA6@whistle.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII ReSent-Date: Fri, 24 Jan 1997 22:33:04 -0500 (EST) ReSent-From: Paul Sandys ReSent-To: freebsd-bugs@freebsd.org ReSent-Message-ID: Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Fri, 24 Jan 1997, Julian Elischer wrote: > Date: Fri, 24 Jan 1997 03:02:32 -0800 > From: Julian Elischer > To: myj@nyct.net > Subject: Re: kern/2569: route -iface breaks inet behaivour > > Paul Sandys wrote: > > > > >Number: 2569 > > >Category: kern > > >Synopsis: route -iface breaks inet behaivour > > >Confidential: no > > >Severity: serious > > >Priority: high > > >Responsible: freebsd-bugs > > >State: open > > >Class: sw-bug > > >Submitter-Id: current-users > > >Arrival-Date: Thu Jan 23 23:10:01 PST 1997 > > >Last-Modified: > > >Originator: Paul Sandys > > >Organization: > > New York Connect > > >Release: FreeBSD 2.1.6.1-RELEASE i386 > > >Environment: > > > > interface ed0 is on 204.141.86.0/24 and 207.198.184.0/22 > > > > >Description: > > This is configuration of ed0 interface: > > > > ifconfig ed0 204.141.86.3 netmask 0xffffff00 > > ifconfig ed0 204.141.86.xxx netmask 0xffffffff alias - lot of virtual addr. > > route add -net 207.198.184.0 -netmask 0xfffffc00 204.141.86.3 -iface > > > > After issuing route command, all outgoing connections (telnet rlogin etc.) > > are originating from random IP address assigned to ed0, not from > > 204.141.86.3 > > > > >How-To-Repeat: > > > > create simillar environment > > WHY ARE YOU DOING THAT!??? -iface requires a following argument.. > like -netmask does.. -iface doesn't require any parameter, it's just a flag. >From route manpage: Routes have associated flags which influence operation of the protocols when sending to destinations matched by the routes. These flags may be set (or sometimes cleared) by indicating the following corresponding modifiers: -cloning RTF_CLONING - generates a new route on use -xresolve RTF_XRESOLVE - emit mesg on use (for external lookup) -iface ~RTF_GATEWAY - destination is directly reachable -static RTF_STATIC - manually added route -nostatic ~RTF_STATIC - pretend route added by kernel or daemon -reject RTF_REJECT - emit an ICMP unreachable when matched -blackhole RTF_BLACKHOLE - silently discard pkts (during updates) -proto1 RTF_PROTO1 - set protocol specific routing flag #1 -proto2 RTF_PROTO2 - set protocol specific routing flag #2 -llinfo RTF_LLINFO - validly translates proto addr to link addr end snip > > for Point to point links you can say: > > route add default -iface "ppp0" That's nonsense > > for enet interfaces.. > route add 1.1.1.1 -iface 192.198.1.2 (or some address on one of > your interfaces.. (though I'm not clear on why one would do that.. This means route add -host 1.1.1.1 -gateway 192.198.1.2 -iface > > >Fix: > > > > I wish I knew. > > > > >Audit-Trail: > > >Unformatted: > P.