From owner-freebsd-current@freebsd.org Sun Dec 18 23:37:50 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D30AEC86940 for ; Sun, 18 Dec 2016 23:37:50 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5CE331724 for ; Sun, 18 Dec 2016 23:37:50 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: by mail-wm0-x232.google.com with SMTP id g23so80230489wme.1 for ; Sun, 18 Dec 2016 15:37:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=hCI83DAp/9Gp0TwL8GAcjoKDEZlFS+Ngl5eLf2SA7SM=; b=q3l7c6qYn37WMH6ADZ8ZPYf/dODhbNSXkV1G3uo5ArE8lGpixqjyorDDPEnYgKOtFi AdiuqqmGja7CFCTpl1HG5u7q5MOaFFb7YxJngRh5UuVoIge2Ey9N1ehrZcD8eTdHp2K3 QPRav0yUPH1AYy0M6UErH6TpWLw4HaD4VsaXQeD0M/D5Bh2lCmtT8EHp+Ug93CtfRf1B 1LQlpIIVCJwLQ4TMUfSh9hD+DqoQvxiFu7Y3IAjF66qt7gsSElKhPwnT27vVFx+dSbRu MZjdm/1iDlIMAmuxAped1PQrNuX0jD45/SGfvmR2iYNUK+gD0mxTD2vc3cDk6jVAxzSd GmVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=hCI83DAp/9Gp0TwL8GAcjoKDEZlFS+Ngl5eLf2SA7SM=; b=DZh/lY3g1907tRDDOVJaUeTbMfiMK0QjiXgzJczvI3pUXTcjYEJyIcFPVomK0GOXgX UQ9RBdD+K8Z3YyYB6sbh1WsJ5wHS62UC4slIoqDDZvPdoXR+3J0/BqeNDhsFETxLNE3z PVmIZEvxF2U/xa7nxZibjPHAo3zel+J+ObgqdrEWdEhGn40Rqvfr2mUeOnn/JMQYISo8 U+CxFwgoLmWa9cPdiHhQLxVp4AmUCwtFh3xcZFkFhiktjzV01DsekzW5YjYhGO4yi65L gJOxxwDKGR/uHaz5hA9Y9thNw+aRC60CfRqlVyOJAcFrFDkFk+y86PnhctrcsLnGXTC8 47uw== X-Gm-Message-State: AIkVDXJPhqv6c3U5UBp7sY2GPXc4D1Mq+Rn6R1Bn/wWhtTJwONvyPweJP/yAsAXPjlXqa7DJRvvQLdiE0Boc3Q== X-Received: by 10.28.147.134 with SMTP id v128mr11733474wmd.3.1482104268122; Sun, 18 Dec 2016 15:37:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.172.36 with HTTP; Sun, 18 Dec 2016 15:37:47 -0800 (PST) In-Reply-To: <20161218183134.3c83bd46@thor.walstatt.dynvpn.de> References: <20161218183134.3c83bd46@thor.walstatt.dynvpn.de> From: Ben Woods Date: Mon, 19 Dec 2016 07:37:47 +0800 Message-ID: Subject: Re: service netif restart fails starting ppp/routing To: FreeBSD CURRENT , "O. Hartmann" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2016 23:37:50 -0000 On Mon., 19 Dec. 2016 at 1:37 am, O. Hartmann wrote: > After changing paraemters on my router which uses a modem via ppp/pppoed, > service netif restart > does not bring up ppp and named! > > After "netif restart" and "routing restart" (in this order), tun0 which is > supposed to > have the ISP's IP address is empty and named (the router has bind911 > running) is offline > and needs also to be restarted via "service named restart". > > Is there something I miss or is this a serious bug? It is the first time > on CURRENT > (FreeBSD 12.0-CURRENT #74 r310129: Fri Dec 16 00:33:09 CET 2016 amd64) I > realize this > behaviour. I never had problems before. > I was about to say you will also need to do: # service pppoed restart But a quick look at that rc script seems to show that stop or restart are not implemented: https://github.com/freebsd/freebsd/blob/master/etc/rc.d/pppoed Having a quick look at my router which also uses pppoe, I note that in /etc/rc.conf I am not using the pppoed rc script, but the following: ppp_enable="YES" ppp_nat="NO" ppp_profile="myisp" ppp_myisp_mode="ddial" ppp_myisp_nat="NO" ppp_myisp_unit="0" Therefore when I need to restart my pppoe after making config changes I would use: # service ppp restart Which one are you using in your rc.conf: ppp or pppoe? In my /etc/ppp/ppp.conf I have the following: default: set log Phase tun command # you can add more detailed logging if you wish set speed sync set mru 1492 set mtu 1492 set ctsrts off enable echo set echoperiod 15 enable ipv6cp enable ipcp set timeout 0 set redial 0 0 myisp: set ifaddr MY.IP.ADDR.ESS/0 THEIR.IP.ADDR.ESS/0 set server /var/run/ppp/myisp "" 0177 set device PPPoE:INTERFACE set authname USERNAME set authkey PASSWORD set dial set login add default HISADDR disable dns Note that I handle the NAT and DNS myself through pf and dnsmasq. Regards, Ben