From owner-freebsd-net@FreeBSD.ORG Fri Jan 30 12:44:10 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F30E71065675 for ; Fri, 30 Jan 2009 12:44:09 +0000 (UTC) (envelope-from francovitali@gmail.com) Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.186]) by mx1.freebsd.org (Postfix) with ESMTP id AFC508FC1F for ; Fri, 30 Jan 2009 12:44:09 +0000 (UTC) (envelope-from francovitali@gmail.com) Received: by rn-out-0910.google.com with SMTP id k32so293356rnd.12 for ; Fri, 30 Jan 2009 04:44:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=vJlFeUD8mgealS2YzZezCfC/zZOc1Cii1XWRcVgCK2o=; b=IF8UAF884I7gpR2Yjn5Fc2Qft+38qO8dvzu0zqW9OIhU3ZvGPeXjPFYKj/kootUIpy ErFrPrH2idhgRLBY8wFDBO9+leM0n5envHvptnI1I1fOC/J9bc51VfPjk+hRFECSvE6J ZCvINSBbyL3CvaYZ9FYw7KNurkWhJkGdrKHBw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=d6K39n6yMiOZorJh7MYpssI06CcEMCnbqJ1pQiZsv2uhjUMgm/jeNRQFN5u8hF4hTp uMtqOeV7VfKadhFbmjMa+ZAKtyRbLAeORkSoRDwjMpOJQoNP954b8Zk8fpXuRY1wgo+j t1rO/Gry459CzeYD9yq5OhCyjUoAQuxnWbvXU= MIME-Version: 1.0 Received: by 10.150.143.12 with SMTP id q12mr150833ybd.81.1233317777249; Fri, 30 Jan 2009 04:16:17 -0800 (PST) Date: Fri, 30 Jan 2009 09:16:17 -0300 Message-ID: From: Franco Vitali To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: PPP won t reconnect X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jan 2009 12:44:10 -0000 I search the web for an answer, but i can=B4t find it. There are only unanswered posts, and some of them tell that there is a bug in PPP. I have a production machine with a RELENG_7 and a connection with the cable provider via PPP. The problem is that, when the connection drops, PPP remains like nothing happens, not even a log (even if i plug the ethernet cable). And, ovbiously= , doesn't reconnect. In theory, the daemon must reconnect in "ddial" mode. What I am missing ? The configuration files are as folows: -------------------------------------------------------------------- /etc/rc.conf hostname=3D"vnet01.vnet" gateway_enable=3D"YES" firewall_enable=3D"YES" firewall_type=3D"open" firewall_nat_enable=3D"YES" firewall_nat_interface=3D"tun0" firewall_nat_flags=3D"-f /etc/natd.conf" dummynet_enable=3D"YES" ifconfig_rl0=3D"inet 192.168.2.9 netmask 255.255.255.0" keymap=3D"us.iso" sshd_enable=3D"YES" ........ ddclient_enable=3D"YES" ppp_enable=3D"YES" ppp_mode=3D"ddial" ppp_nat=3D"NO" ppp_profile=3D"bvc" ppp_user=3D"root" -------------------------------------------------------------------- /etc/ppp/ppp.conf default: set log Phase Chat LCP IPCP CCP tun command bvc: set device PPPoE:ed0 set authname "******" set authkey "*******" set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 set dial set login enable dns add default HISADDR -------------------------------------------------------------------- /etc/natd.conf interface tun0 use_sockets yes same_ports yes dynamic yes -------------------------------------------------------------------- ifconfig -a ed0: flags=3D8843 metric 0 mtu 1500 ether 00:00:21:6a:0b:4c media: Ethernet autoselect (10baseT/UTP) rl0: flags=3D8843 metric 0 mtu 1500 options=3D8 ether 00:e0:7d:e1:52:b4 inet 192.168.2.9 netmask 0xffffff00 broadcast 192.168.2.255 media: Ethernet autoselect (none) status: no carrier plip0: flags=3D108810 metric 0 mt= u 1500 lo0: flags=3D8049 metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 tun0: flags=3D8051 metric 0 mtu 1478 inet 190.97.1.31 --> 190.97.1.1 netmask 0xffffff00 Opened by PID 1174 tun1: flags=3D8010 metric 0 mtu 1500 -------------------------------------------------------------------- netstat -rn Internet: Destination Gateway Flags Refs Use Netif Expire default 190.97.1.1 UGS 1 7591577 tun0 127.0.0.1 127.0.0.1 UH 0 678 lo0 190.97.1.1 190.97.1.31 UGH 1 0 tun0 192.168.2.0/24 link#2 UC 0 0 rl0 --------------------------------------------------------------------