From owner-freebsd-questions@FreeBSD.ORG Wed Jan 19 21:53:19 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 5797416A4CE for ; Wed, 19 Jan 2005 21:53:19 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4FF843D54 for ; Wed, 19 Jan 2005 21:53:18 +0000 (GMT) (envelope-from mbrunstein@gmail.com) Received: by wproxy.gmail.com with SMTP id 58so15206wri for ; Wed, 19 Jan 2005 13:53:16 -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=Vqg4IQUuOa1ylhQZA4DiY7fC7uJGv52YM8uoRAWEYnzwzAJRwdd9ui8QcGQ9gC3JcMGo1Iw6C7zJSFhDEMnZ+cqyhLY014snzCDCy/eaGnzM95hioq479DX1o1jDaMI+/XBZYtyP7XYD99gz2/6avxvt2IR1bO8WPDXKKgX+fKc= Received: by 10.54.39.78 with SMTP id m78mr183309wrm; Wed, 19 Jan 2005 13:53:15 -0800 (PST) Received: by 10.54.3.36 with HTTP; Wed, 19 Jan 2005 13:53:15 -0800 (PST) Message-ID: <5982296405011913535f848139@mail.gmail.com> Date: Wed, 19 Jan 2005 18:53:15 -0300 From: Mauricio Brunstein To: Hexren In-Reply-To: <16421516128.20050119224404@hexren.net> 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> cc: freebsd-questions@freebsd.org Subject: =?iso-8859-1?q?Re=3A_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: Mauricio Brunstein List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2005 21:53:19 -0000 Hexren: The pocess of PID 212 is ppp: server:~ $ ps auxw|grep 212 =20 root 212 0.0 0.8 3240 2112 ?? Ss 5:53PM 0:00.43 ppp -ddial default mauro 687 0.0 0.4 1472 892 p0 S+ 6:48PM 0:00.00 grep 212 server:~ $ My rc.conf has references to tun0: server:~ $ sudo cat /etc/rc.conf # -- sysinstall generated deltas -- # Sun Nov 21 13:07:41 2004 # Created: Sun Nov 21 13:07:41 2004 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. # ############################################################## hostname=3D"server.estudio" netd_enable=3D"YES" saver=3D"dragon" scrnmap=3D"NO" sshd_enable=3D"YES" sshd_flags=3D"-4 -p 222" usbd_enable=3D"YES" network_interfaces=3D"lo0 rl0 fxp0 tun0" #network_interfaces=3D"lo0 rl0 fxp0" ifconfig_tun0=3D" " ifconfig_rl0=3D"inet 192.168.2.1 netmask 255.255.255.0" ifconfig_fxp0=3D"media 10baseT/UTP up" ppp_enable=3D"YES" ppp_mode=3D"ddial" ppp_nat=3D"YES" ppp_profile=3D"my_isp" router_enable=3D"YES" gateway_enable=3D"YES" # Set to YES if this host will be a gateway pf_enable=3D"YES" # Enable PF (load module if required) pf_rules=3D"/etc/pf.conf" # rules definition file for pf pf_flags=3D"-d" # additional flags for pfctl startup #pflog_enable=3D"YES" # start pflogd(8) #pflog_logfile=3D"/var/log/pflog" # where pflogd should store the logfile #pflog_flags=3D"" # additional flags for pflogd startup inetd_enable=3D"YES" # Run the network daemon dispatcher (YES= /NO). inetd_program=3D"/usr/sbin/inetd" # path to inetd, if you want a different = one. inetd_flags=3D"-wW -C 60" # Optional flags to inetd #nmbd_enable=3D"YES" #smbd_enable=3D"YES" #winbindd_enable=3D"YES" named_enable=3D"YES" # Run named, the DNS server (or NO). named_program=3D"/usr/sbin/named" # path to named, if you want a different = one. named_flags=3D"-u bind" # Flags for named named_pidfile=3D"/var/run/named/pid" # Must set this in named.conf as well named_chrootdir=3D"/var/named" # Chroot directory (or "" not to auto-chr= oot it) named_chroot_autoupdate=3D"YES" # Automatically install/update chrooted # components of named. See /etc/rc.d/named. named_symlink_enable=3D"YES" # Symlink the chrooted pid file server:~ $ Thank you again, Mauricio. On Wed, 19 Jan 2005 22:44:04 +0100, Hexren wrote: > MB> Hexren: >=20 > MB> Thank you for answer so quickly. I discovered that the problem is tha= t > 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. >=20 > MB> Here is the output of ifconfig: >=20 > MB> server:~ $ ifconfig > MB> rl0: flags=3D8843 mtu 1500 > MB> options=3D8 > 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=3D8843 mtu 1500 > MB> options=3D8 > 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=3D108810 mtu 1500 > MB> lo0: flags=3D8049 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=3D8051 mtu 1500 > MB> Opened by PID 212 > MB> tun1: flags=3D8051 mtu 1492 > MB> inet 200.127.126.73 --> 200.32.0.42 netmask 0xffffffff > MB> Opened by PID 230 > MB> pflog0: flags=3D0<> mtu 33208 >=20 > MB> Thank you for all!!! >=20 > MB> Mauricio >=20 > MB> On Wed, 19 Jan 2005 22:22:33 +0100, Hexren wrote: > >> >Hi to all! > >> > >> >I can=B4t 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. (tr= y > >> ssh -v or ssh -vv) > >> > >> Hexren > >> > >> >=20 >=20 > --------------------------------------------- >=20 > 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 >=20 > 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. >=20 > Hexren >=20 >