From owner-freebsd-questions@FreeBSD.ORG Wed Jan 19 23:22:56 2005 Return-Path: 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 72B1C16A4CE for ; Wed, 19 Jan 2005 23:22:56 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D67943D45 for ; Wed, 19 Jan 2005 23:22:54 +0000 (GMT) (envelope-from mbrunstein@gmail.com) Received: by wproxy.gmail.com with SMTP id 58so31858wri for ; Wed, 19 Jan 2005 15:22:54 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=NGJAAhWHkxoWBdNsfr6PH9Omxo7SUapcywGsTprux0Uz0oWQxuxJ6G03T68DIn93U7/cKjewttGlIU4F920ywDKTSL2vn7MnuqQHa3Mrl6cD/4bY+MRjW8w1QVasVdrOAy/UA6VWcm0u7JvP0cJuiH6SH8ug/zE7VWst7rhkdmM= Received: by 10.54.6.31 with SMTP id 31mr221521wrf; Wed, 19 Jan 2005 15:22:53 -0800 (PST) Received: by 10.54.3.36 with HTTP; Wed, 19 Jan 2005 15:22:53 -0800 (PST) Message-ID: <598229640501191522557cd927@mail.gmail.com> Date: Wed, 19 Jan 2005 20:22:53 -0300 From: Mauricio Brunstein To: Hexren In-Reply-To: <5982296405011914294f879bce@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: <59822964050119131120fbb88c@mail.gmail.com> <17020225212.20050119222233@hexren.net> <598229640501191337b644520@mail.gmail.com> <16421516128.20050119224404@hexren.net> <5982296405011913535f848139@mail.gmail.com> <7122618543.20050119230226@hexren.net> <5982296405011914294f879bce@mail.gmail.com> cc: freebsd-questions@freebsd.org Subject: =?iso-8859-1?q?Re=3A_Re=5B4=5D=3A_Can=B4t_access_a_box_remotely?= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Mauricio Brunstein List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2005 23:22:56 -0000 Hexren: Also I have another question: If you look at the handbook it states that if you use ppp, you need to put router_enable=3D"NO" in rc.conf, because if you enable routed, it can delete the routes added by ppp. The problem is that if I put router_enable=3D"NO" in rc.conf, i cant access my box from outside, and this time is not a dyndns related issue. I don=B4t have idea that what could be the cause of this situation. Does it seems familiar to you??? Thank you for all your help!!! Mauricio. On Wed, 19 Jan 2005 19:29:48 -0300, Mauricio Brunstein wrote: > Hexren: >=20 > Why do you say: >=20 > > As a quick workaround: In your ppp.conf delete the default profile and > > rename your profile default. The remove the 'ppp_profile=3D"my_isp"' > > line from your rc.conf. >=20 > I actually want to dial to my_isp from rc.conf. If I delete the > "default" profile, then I need to copy those 2 lines in that profile > to the "my_isp" profile? >=20 > Than you again, >=20 > Mauricio >=20 > PD: This is my ppp.conf: >=20 > server:~ $ sudo cat /etc/ppp/ppp.conf > default: > set log Phase Chat IPCP CCP tun command > set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 >=20 > my_isp: > set device PPPoE:fxp0 # replace fxp0 with your Ethernet device > set mtu 1492 > set mru 1492 > enable mssfixup > set ctsrts off > set speed sync > disable acfcomp protocomp > deny acfcomp > set authname xxxxxxxx > set authkey yyyyyyyyy > add default HISADDR > # enable lqr > disable ipv6cp > # set lqrperiod 5 > enable dns > server:~ $ >=20 > On Wed, 19 Jan 2005 23:02:26 +0100, Hexren wrote: > > MB> Hexren: > > > > MB> The pocess of PID 212 is ppp: > > > > MB> server:~ $ ps auxw|grep 212 > > MB> root 212 0.0 0.8 3240 2112 ?? Ss 5:53PM 0:00.43 = ppp > > MB> -ddial default > > MB> mauro 687 0.0 0.4 1472 892 p0 S+ 6:48PM 0:00.00 grep 2= 12 > > MB> server:~ $ > > > > > > >> > > >> --------------------------------------------- > > >> > > >> Wild guessing here: > > >> Maybe the interface tun0 gets created when it is first called by > > >> something refering to rc.conf. (It is in there isn't it ?). When ppp > > >> the fires up it creates its own tun device, taking the next "free" > > >> name which is tun1 as tun0 already exists and ppp can't know if it i= s > > >> used by something else. > > >> Try removing all references to tun0 from /etc/rc.conf > > >> > > >> Keep in mind that this is only a guess. > > >> Also look at what hides behind PID 212. You can see in th output you > > >> provided that tun0 was created by that PID. > > >> > > >> Hexren > > >> > > >> > > > > --------------------------------------------- > > > > It is not the reference. > > When ppp is started it first tries to dial in using the profile named > > default. > > >"root 212 ppp -ddial default" > > > > As a quick workaround: In your ppp.conf delete the default profile and > > rename your profile default. The remove the 'ppp_profile=3D"my_isp"' > > line from your rc.conf. > > > > I am pretty shure there is a cleaner way to do this. But unfortunatly > > I am unaware of it. > > > > Hexren > > >