From owner-freebsd-questions@FreeBSD.ORG Tue Jun 26 13:40:59 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3BE1D16A46B for ; Tue, 26 Jun 2007 13:40:59 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.184]) by mx1.freebsd.org (Postfix) with ESMTP id AF08E13C45D for ; Tue, 26 Jun 2007 13:40:58 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: by mu-out-0910.google.com with SMTP id w9so2024174mue for ; Tue, 26 Jun 2007 06:40:57 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MKvkzXaf6O/pahIU5Bk9yxEbTKSWcDxZ2JxUO+LOD6ilGJthwRv7LZcYMK0YlhbchpaFr+qelOUyiACJmtGb1fzUnozaCLBEXA8AryPM6xcRiIQMmZd+SeXuis9nTnikKw3LAW9eLiwIF9vU437sBp+nJJ4j2rpspwCKYO9VDNo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=c0xSgKlAahesI06ImYFWEAzdMLZI8WRmvwCHRBOttLU/DR9KgccZ7TGiFTQm9jcSHPMasqGNyN2OohTwu6ZvwtCMtBtDc690Uxyv7heFHKM7/FKcI58PjW+HO3TSpcz+fFkAMFPJzDjamnfma3L4v0bYeHqhUF+cKDUBRv9uB/4= Received: by 10.82.134.12 with SMTP id h12mr14996935bud.1182865256264; Tue, 26 Jun 2007 06:40:56 -0700 (PDT) Received: by 10.82.191.14 with HTTP; Tue, 26 Jun 2007 06:40:56 -0700 (PDT) Message-ID: <80f4f2b20706260640m396a87fbj49dc476e29d3c9de@mail.gmail.com> Date: Tue, 26 Jun 2007 09:40:56 -0400 From: "Jim Stapleton" To: "Artyom Viklenko" , freebsd-questions@freebsd.org In-Reply-To: <20070626162827.X42212@alf.aws-net.org.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <80f4f2b20706230440n5abeceb6n6d94eef41f776265@mail.gmail.com> <467D1700.8050006@aws-net.org.ua> <80f4f2b20706231120u6b6f2659xa427b7a54f20b243@mail.gmail.com> <467E2BEC.80305@aws-net.org.ua> <80f4f2b20706260504m782e25a2odadaa91be4856e37@mail.gmail.com> <46810D3A.6030308@aws-net.org.ua> <80f4f2b20706260623y6b7514e3q64879b3877fc2ac2@mail.gmail.com> <20070626162827.X42212@alf.aws-net.org.ua> Cc: Subject: Re: ppp/peers/* files 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, 26 Jun 2007 13:40:59 -0000 Hmm, would it be easier for me to setup a 127.0.0.2 loopback and my gateway, and alway point that to the proper gateway, to make things easier when I'm switching between VPN and no VPN? Thanks -Jim Stapleton On 6/26/07, Artyom Viklenko wrote: > On Tue, 26 Jun 2007, Jim Stapleton wrote: > > > What man/handbook pages/sections should I look at to get a clue. I'm > > so far from having one, I don't even know the direction... > > see handbook section about networking. > > simply speaking enter > > route add ip-of-vpn-server ip-of-your-lan-gateway > > > > then start MPD and check is all ok. > if yes, you can add this route to /etc/rc.conf using > static_routes variable. > > > > > > Thanks, > > -Jim Stapleton > > > > On 6/26/07, Artyom Viklenko wrote: > >> Jim Stapleton wrote: > >> > That partially worked. I could only ping 192.168.1.1 on my local setup > >> > (router). > >> > > >> > I used > >> > $ mpd pptp0 > >> > > >> > However, I couldn't access the work DNS either. The latter output of > >> > MPD looked like: > >> > ========== > >> > pptp0] IPCP: rec'd Configure Ack #4 link 0 (Ack-Sent) > >> > IPADDR > >> > [pptp0] IPCP: state change Ack-Sent --> Opened > >> > [pptp0] IPCP: LayerUp > >> > -> > >> > [pptp0] IFACE: Up event > >> > [pptp0] setting interface ng0 MTU to 1396 bytes > >> > [pptp0] exec: /sbin/ifconfig ng0 netmask > >> > 0xffffffff -link0 > >> > [pptp0] exec: /sbin/route add -iface lo0 > >> > [pptp0] exec: /sbin/route add 0.0.0.0 > >> > [pptp0] exec: command returned 256 > >> > ========== > >> > > >> > > >> > I could ping and after running mpd, but I > >> > could not ping them before running it, or after shutting it down. Both > >> > are valid IP addresses on my works internal network. > >> > > >> > Aside from my nve0 and l0 devices, which look normal, ifconfig > >> > displays the following: > >> > > >> > ========== > >> > ng0: flags=88d1 mtu 1396 > >> > inet --> netmask 0xffffffff > >> > ========== > >> > > >> > I could not ping the DNS servers. > >> > > >> > Any suggestions? > >> > >> I think you need static route to your VPN server. > >> After setting up tullel your default route changes. > >> This can lead to incorrect routing. > >> > >> > >> -- > >> Sincerely yours, > >> Artyom Viklenko. > >> ------------------------------------------------------- > >> artem@aws-net.org.ua | http://www.aws-net.org.ua/~artem > >> FreeBSD: The Power to Serve - http://www.freebsd.org > >> > > _______________________________________________ > > freebsd-net@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-net > > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > > > -- > Sincerely yours, > Artyom Viklenko. > ------------------------------------------------------- > artem@aws-net.org.ua | http://www.aws-net.org.ua/~artem > FreeBSD: The Power to Serve - http://www.freebsd.org >