From owner-freebsd-net Tue Sep 3 13:20:24 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B7E437B405 for ; Tue, 3 Sep 2002 13:20:12 -0700 (PDT) Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69B8443E75 for ; Tue, 3 Sep 2002 13:20:11 -0700 (PDT) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020903202011.MGUM12451.rwcrmhc51.attbi.com@InterJet.elischer.org>; Tue, 3 Sep 2002 20:20:11 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id NAA14748; Tue, 3 Sep 2002 13:13:12 -0700 (PDT) Date: Tue, 3 Sep 2002 13:13:11 -0700 (PDT) From: Julian Elischer To: Sam Feagins Cc: Archie Cobbs , freebsd-net@Freebsd.org Subject: Re: mpd config help In-Reply-To: <20020903.8PM.16511100@www.houstonbroncos.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, 3 Sep 2002, Sam Feagins wrote: > >Then your outgoing packets are not being routed via the PPTP link. > > > >Try 'ping 192.168.2.240' from an inside machine .. I bet that works, > >because there *is* a route to 192.168.2.240 already. > > That's what I thought, but I am not able to ping 192.168.2.240, > but I can hit 192.168.2.243 (local BSD box) > > >You need to add a 'set iface route ...' command to your mpd.conf > >so that your outgoing packets get routed via the PPTP link. > > > >You can do this manually via 'route add x.x.x.x/y -interface ng0'. > > > >What network(s) are on the other side of the link? Those are > >the ones you need to add routes for in mpd.conf. > > I do have a "set iface route 192.168.2.0/24" command in > my mpd.conf. > > When I do a route add 192.168.2.0/24 -interface ng1 I get: > route: writing to routing socket: File exists > add net 192.168.2.0: gateway ng1: File exits > > Apparently mpd is trying to route it through my external > interface fxp1? but when I do a netstat -r, I see a destination > address 192.168.2 routed through ng1, using a gateway of > 192.168.2.240. > > Sam > > P.S. here's my entire routing table it might be more > than 80 chars wide. Sorry.. > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default adsl-64-219-75-198 UGSc 10 59320 fxp0 > adsl-64-219-75-192 link#1 UC 2 0 fxp0 > adsl-64-219-75-193 0:c0:f0:6c:63:4f UHLW 11 1004 fxp0 1186 > adsl-64-219-75-198 0:10:67:0:9a:b1 UHLW 3 0 fxp0 816 > localhost localhost UH 9 18 lo0 > 192.168.2 192.168.2.240 UGSc 0 0 ng1 > 192.168.2.240 192.168.2.244 UH 1 0 ng1 > 192.168.10 link#2 UC 2 0 fxp1 > 192.168.10.100 0:50:2c:2:f7:33 UHLW 1 113145 fxp1 1187 > 192.168.10.101 0:8:c7:da:24:61 UHLW 0 9820 fxp1 894 > use route get 192.168.2.243 and route get 192.168.2.240 to check what ACTUALLY happens. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message