From owner-freebsd-questions@FreeBSD.ORG Wed Aug 31 05:23:14 2005 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 B6C8D16A41F for ; Wed, 31 Aug 2005 05:23:14 +0000 (GMT) (envelope-from wayofbsd@verizon.net) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7231943D48 for ; Wed, 31 Aug 2005 05:23:14 +0000 (GMT) (envelope-from wayofbsd@verizon.net) Received: from [192.168.0.27] ([68.236.212.14]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTPA id <0IM2003X9MYOHT00@vms048.mailsrvcs.net> for freebsd-questions@freebsd.org; Wed, 31 Aug 2005 00:23:13 -0500 (CDT) Date: Wed, 31 Aug 2005 01:23:12 -0400 From: WOB In-reply-to: <4314A7BE.1080806@computer.org> To: Eric Schuele Message-id: <43153EC0.3060007@verizon.net> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-Accept-Language: en-us, en References: <431477C3.7040809@verizon.net> <4314A7BE.1080806@computer.org> User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) Cc: freebsd-questions@freebsd.org Subject: Re: Is there a way to connect to a Microsoft VPN? 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: Wed, 31 Aug 2005 05:23:14 -0000 > I use /usr/ports/net/pptpclient to connect to a MS VPN endpoint and > /usr/ports/net/rdesktop to "Remote Desktop" to my XP machine at the > office. Works great. > This sounded like what I needed to do. When I run the pptp client, it doesn't appear to do anything. I did the following: cd /usr/ports/net/pptpclient make install clean cd /usr/ports/net/rdesktop make install clean rehash I found these instructions at FreeBSD Diary and tried to follow them: http://www.freebsddiary.org/pptp.php My connection information is as follows: My workplace's outside VPN Name: vpn.wobs-work.com My workplace's outside VPN external IP: 100.200.300.16 My workplace Username: wob My workplace Password: wobpassword My Workplace's Windows XP Pro PC: 5.10.15.79 My Workplaces Internal Subnet: 5.10.15.x My home FreeBSD's IP: 192.168.1.25 My FreeBSD's machine NIC: fxp0 My home router's IP: 192.168.1.1 So I made a /etc/ppp/ppp.conf file: WORKVPN: set authname wob set authkey wobpassword set timeout 0 set ifaddr 0 0 add 100.200.300.16/24 HISADDR alias enable yes Then I ran it as root: cd /etc/ppp /usr/local/sbin/pptp vpn.wobs-work.com WORKVPN The program seems to run for about 5 seconds, then returns to shell prompt. I then tried: /usr/local/sbin/pptp vpn.wobs-work.com WORKVPN --loglevel 2 and: /usr/local/sbin/pptp 100.200.300.16 WORKVPN --loglevel 2 But it still did not print out anything. ifconfig tun0 displays: tun0: flags=8010 mtu 1500 I think I might have to add a route command once the "tunnel" is up. My understanding is, is that the pptp client is not supposed to return to the shell prompt until I cancel it with a CTRL-C. I normally use my home Windows XP Pro box to connect to my works VPN, and then use RemoteDesktop to connect to my Work PC - so I know the connections work under Windows. I want to get rid of my home Windows box. Any suggestions? I'm kinda new, but I am trying to learn.