From owner-freebsd-net Fri Jun 8 11:36:59 2001 Delivered-To: freebsd-net@freebsd.org Received: from smtp-server2.tampabay.rr.com (smtp-server2.cfl.rr.com [65.32.2.69]) by hub.freebsd.org (Postfix) with ESMTP id E827937B405 for ; Fri, 8 Jun 2001 11:36:52 -0700 (PDT) (envelope-from dananderson@cfl.rr.com) Received: from beastie (ubr-a-33.107.139.wintersprings.cfl.rr.com [65.33.107.139]) by smtp-server2.tampabay.rr.com (8.11.2/8.11.2) with SMTP id f58Iapv16308 for ; Fri, 8 Jun 2001 14:36:51 -0400 (EDT) From: "Dan Anderson" To: Subject: mpd and windows shares Date: Fri, 8 Jun 2001 14:32:48 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 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 Hi, I'm trying to implement a way for remote users to gain access to a local office's windows shares. What I currently have is a FreeBSD box with mpd-netgraph installed, dc0 is connected to the isp via a static ip, ne0 is connected to the local net. +----------+ +---------------------+ | | dc0 -> 1.2.3.4 5.6.7.8 | | | FreeBSD |-------------------> internet <--------------| Win 98, NT via pptp | | | | | |----------+ +---------------------+ | | ne0 -> 192.168.1.90 | +---------------------------------------- ... etc | | | 192.168.1.101 | 192.168.1.102 | | +------+ +------+ | NT 1 | | NT 2 | +------+ +------+ mpd.conf -------- default: load pptp pptp: new -i ng0 pptp pptp set iface disable on-demand set iface enable proxy-arp set iface idle 1800 set bundle disable multilink set link yes acfcomp protocomp set link no pap chap set link enable chap set link keep-alive 10 60 set ipcp yes vjcomp set ipcp ranges 192.168.1.90/32 192.168.1.95/32 set ipcp dns 3.4.5.6 (my isp's dns) set ipcp nbns 192.168.1.90 set bundle enable compression set ccp yes mppc set ccp yes mpp-e40 set ccp yes mpp-e128 set ccp yes mpp-stateless set bundle yes crypt-reqd mpd.links --------- pptp: set link type pptp set pptp self 1.2.3.4 set pptp enable incoming set pptp disable originate When I connect with pptp I end up with ng0 being created and the following two commands are executed by mpd: /sbin/ifconfig ng0 192.168.1.90 192.168.1.95 netmask 0xffffffff -link0 /usr/sbin/arp -s 192.168.1.95 00:11:22:33:44:55 pub (changed my mac addr) My understanding is this makes the FreeBSD machine have an ip of 192.168.1.90 on ng0 and the traffic from the remote windows machine will be 192.168.1.95 on ng0. From the remote machine I can ping 192.168.1.95 as well as 192.168.1.90 but not any of the other machines. Also, I do not have a route from 192.168.1.95 out to the isp via 1.2.3.4. Any input as to what I'm doing incorrectly? I sense I'm close but am missing a key piece of information to put it all together. Most likely I just don't have any routing information or something like that. Thanks for your input, Dan Anderson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message