From owner-freebsd-net@FreeBSD.ORG Thu Oct 31 18:39:54 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C617FBA for ; Thu, 31 Oct 2013 18:39:54 +0000 (UTC) (envelope-from raitech@gmail.com) Received: from mail-pa0-x236.google.com (mail-pa0-x236.google.com [IPv6:2607:f8b0:400e:c03::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A08442756 for ; Thu, 31 Oct 2013 18:39:54 +0000 (UTC) Received: by mail-pa0-f54.google.com with SMTP id fa1so2974791pad.13 for ; Thu, 31 Oct 2013 11:39:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=D/TXGFZfJwut2mbSh3PXedyv8nuHm7UH0uo97f3R6Cg=; b=bjLOMp2VqxS+nO/lWCHLEBujjIY9e6vjgdfcSZ5kOWjye1YVU5HznbUD+TxvPQEQNH +PqXEGaioiEc3uW8N026W0taZ6Gu91jIB0BNL0j3OMo5nBZANCUl6ZR2CzpfKW32AC7+ TZ4vCVd6V9c1oMIM/LazqkaFX6s5cqeCKBNOtMe+NtUy2pdP0RvDxGBfQ9fJWLhmDhc6 rCgzhZr/dsX5kNNQyJr2hLFD0VUPIAqoUAA4aqrzyoifTxcTZhcfdVK5XTrHSFIgRQEC QGtHTSoeiBeZEZfmHIXbYO8eA1g7RFKL7l1QVyOG6ksGLv2y2PwVg3yJy9CvO0ZeX83U 00og== X-Received: by 10.67.30.100 with SMTP id kd4mr5422876pad.24.1383244794107; Thu, 31 Oct 2013 11:39:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.70.101.70 with HTTP; Thu, 31 Oct 2013 11:39:33 -0700 (PDT) In-Reply-To: References: From: Raimundo Santos Date: Thu, 31 Oct 2013 16:39:33 -0200 Message-ID: Subject: Re: MPD PPTP seting 0 on net.inet.ip.forwarding To: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Oct 2013 18:39:54 -0000 Ok, I have found some weird thing: On 31 October 2013 16:08, Raimundo Santos wrote: > > > As you can see, there is no gateway_enable="YES", but there is > net.inet.ip.forwarding=1 in /etc/sysctl.conf > > MPD do not respect my configuration in sysctl.conf, only the one in rc.conf. To test: * put net.inet.ip.forwarding and net.inet6.ip6.forwarding = 1 in sysctl.conf * put gateway_enable="YES" in rc.conf * connect to PPTP server You will see that net.inet.ip.forwarding, after PPTP connection are stablished, remains 1, but net.inet6.ip6.forwarding goes to 0! Is that behaviour expected? Am I worng when setting a router without gateway_enable="YES" in rc.conf but with net.inet.ip.forwarding=1 in sysctl.conf? Thank you, Raimundo Santos