From owner-freebsd-questions@FreeBSD.ORG Wed Jan 19 21:44:06 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 A1E3716A4CE for ; Wed, 19 Jan 2005 21:44:06 +0000 (GMT) Received: from helium.webpack.hosteurope.de (helium.webpack.hosteurope.de [217.115.142.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EBA343D46 for ; Wed, 19 Jan 2005 21:44:06 +0000 (GMT) (envelope-from me@hexren.net) Received: by helium.webpack.hosteurope.de running Exim 4.34 using asmtp helo=hexren.steenbuck.net) id 1CrNcT-0005PQ-8o; Wed, 19 Jan 2005 22:44:05 +0100 Date: Wed, 19 Jan 2005 22:44:04 +0100 From: Hexren X-Mailer: The Bat! (v1.62i) Business X-Priority: 3 (Normal) Message-ID: <16421516128.20050119224404@hexren.net> To: Mauricio Brunstein In-Reply-To: <598229640501191337b644520@mail.gmail.com> References: <59822964050119131120fbb88c@mail.gmail.com> <17020225212.20050119222233@hexren.net> <598229640501191337b644520@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit cc: freebsd-questions@freebsd.org Subject: =?iso-8859-1?q?Re=5B2=5D=3A_Can=B4t_access_a_box_remotely?= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Hexren List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2005 21:44:06 -0000 MB> Hexren: MB> Thank you for answer so quickly. I discovered that the problem is that MB> ppp is using tun1 in place of tun0 and I am usin a dyndns deamon that MB> is configured to update the ip address of tun0 (this is the interface MB> that I want to use). Why ppp is using tun0??? I gess that something MB> could be wrong in rc.conf. If I do and ssh to the ip address of tun1, MB> I can connect normally. MB> Here is the output of ifconfig: MB> server:~ $ ifconfig MB> rl0: flags=8843 mtu 1500 MB> options=8 MB> inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255 MB> inet6 fe80::208:54ff:fe1d:8be5%rl0 prefixlen 64 scopeid 0x1 MB> ether 00:08:54:1d:8b:e5 MB> media: Ethernet autoselect (100baseTX ) MB> status: active MB> fxp0: flags=8843 mtu 1500 MB> options=8 MB> inet6 fe80::211:11ff:fe85:efa8%fxp0 prefixlen 64 scopeid 0x2 MB> ether 00:11:11:85:ef:a8 MB> media: Ethernet 10baseT/UTP MB> status: active MB> plip0: flags=108810 mtu 1500 MB> lo0: flags=8049 mtu 16384 MB> inet 127.0.0.1 netmask 0xff000000 MB> inet6 ::1 prefixlen 128 MB> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 MB> tun0: flags=8051 mtu 1500 MB> Opened by PID 212 MB> tun1: flags=8051 mtu 1492 MB> inet 200.127.126.73 --> 200.32.0.42 netmask 0xffffffff MB> Opened by PID 230 MB> pflog0: flags=0<> mtu 33208 MB> Thank you for all!!! MB> Mauricio MB> On Wed, 19 Jan 2005 22:22:33 +0100, Hexren wrote: >> >Hi to all! >> >> >I canīt access to a box from the internet, using ssh. >> >> --------------------------------------------- >> >> Please specify your problem. >> >> Do you have IP connectivity ? (Do a "ping 216.136.204.117" from the >> machine of which you are showing logs here) >> >> Do you have DNS (Do a "ping www.freebsd.org" ) >> >> Which error is given out when you try to ssh in from the internet. (try >> ssh -v or ssh -vv) >> >> Hexren >> >> --------------------------------------------- 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 is 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