From owner-freebsd-net Tue Sep 3 13: 1:36 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 414AC37B400 for ; Tue, 3 Sep 2002 13:01:33 -0700 (PDT) Received: from www.houstonbroncos.com (adsl-64-219-75-194.dsl.hstntx.swbell.net [64.219.75.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D2E543E7B for ; Tue, 3 Sep 2002 13:01:32 -0700 (PDT) (envelope-from sfeagins@Bugdesign.com) Received: from www.houstonbroncos.com (www.houstonbronco.com [64.219.75.194]) by www.houstonbroncos.com (8.11.6/8.11.6) with ESMTP id g83Jupr29105; Tue, 3 Sep 2002 14:56:51 -0500 (CDT) (envelope-from sfeagins@Bugdesign.com) X-Originating-IP: [209.184.81.197] From: "Sam Feagins" To: "Archie Cobbs" Cc: freebsd-net@Freebsd.org Subject: Re: mpd config help Date: Tue, 03 Sep 2002 19:56:51 +0000 Message-ID: <20020903.8PM.16511100@www.houstonbroncos.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-Disposition: inline X-Mailer: phpGroupWare (http://www.phpgroupware.org) v 0.9.14.000 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 >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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message