From owner-freebsd-questions@FreeBSD.ORG Tue Jan 31 08:52:08 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8475416A441 for ; Tue, 31 Jan 2006 08:52:08 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A91943D6E for ; Tue, 31 Jan 2006 08:52:02 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so1222286nzo for ; Tue, 31 Jan 2006 00:52:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IK8KWQ4Qc7RmmoPj3KbbWaDC2HhD4OGL8Fe1Q7j2pRUz4DHOqdIxHDCyGyOgjdYP+RZZvBM5f1RpJjpfCFX8JcrXRtOlngn/bgNj7NiRevCO3qz/gthe+922SHIYf4snUHOmyCRM3xMO76YCy7sNDQ61DN72sGzLWlRIK04I2ck= Received: by 10.36.250.55 with SMTP id x55mr3869983nzh; Tue, 31 Jan 2006 00:52:01 -0800 (PST) Received: by 10.37.20.11 with HTTP; Tue, 31 Jan 2006 00:52:01 -0800 (PST) Message-ID: Date: Tue, 31 Jan 2006 11:52:01 +0300 From: Andrew Pantyukhin To: gahn In-Reply-To: <20060131080026.90075.qmail@web52113.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060131080026.90075.qmail@web52113.mail.yahoo.com> Cc: mpd , freebsd general questions Subject: Re: [Mpd-users] routing issue of mpd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2006 08:52:08 -0000 On 1/31/06, gahn wrote: > Hi: > > I got mpd working and logined into pptp server through > internet. From my pc, I can ping internal interface of > the pptp server, 192.168.128.1 (my pc address is > 192.168.128.10). the problem is that I can't ping > anything beyond that, such as 192.168.128.2 (it > actually is an interface of a router, on the same > subnet). > > From cmd of windows, with command "ipconfig": > > Ethernet adapter Local Area Connection: > > Connection-specific DNS Suffix . : > IP Address. . . . . . . . . . . . : > 254.254.254.100 > Subnet Mask . . . . . . . . . . . : > 255.255.255.0 > Default Gateway . . . . . . . . . : > 254.254.254.1 > > PPP adapter test: > > Connection-specific DNS Suffix . : > IP Address. . . . . . . . . . . . : > 192.168.128.10 > Subnet Mask . . . . . . . . . . . : > 255.255.255.255 > Default Gateway . . . . . . . . . : > > So how could I change the length of the masking of the > ppp adapter? > > once I can change the length of the masking bits, then > I can route my traffic into the rfc1918 networks that > behind of the vpn server. > > the manual page of: > > http://www.bretterklieber.com/mpd/doc3/mpd22.html > > don't seem to be matter though. > > here is the mpd.conf: > > default: > load pptp0 > > pptp0: > new -i ng0 pptp0 pptp0 > set ipcp ranges 192.168.128.1/21 > 192.168.128.10/21 > load common > > common: > set iface disable on-demand > set iface enable proxy-arp > set iface idle 1800 > set iface enable tcpmssfix > set bundle disable multilink > set bundle enable compression > set bundle yes crypt-reqd > set link no pap chap > set link enable chap-msv2 > set link keep-alive 10 60 > set link enable acfcomp protocomp > set ipcp yes vjcomp > set ipcp dns 192.168.64.96 > set ccp yes mppc > set ccp yes mpp-e128 > > BTW, mpd4 seems to be not very stable; I switched back > to 3.18 and it works fine. > > TIA > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 > _______________________________________________ > Mpd-users mailing list > Mpd-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mpd-users > It would be strange if a ppp connection had a different subnet mask. You really should get into some reading on basic TCP/IP. What you need is to setup a route, something like this: route add 192.168.128/21 192.168.128.1