From owner-freebsd-net@FreeBSD.ORG Sat Jan 3 13:30:59 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2BB4A1BC for ; Sat, 3 Jan 2015 13:30:59 +0000 (UTC) Received: from frv190.fwdcdn.com (frv190.fwdcdn.com [212.42.77.190]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DEB56667AC for ; Sat, 3 Jan 2015 13:30:58 +0000 (UTC) Received: from [10.10.2.23] (helo=frv198.fwdcdn.com) by frv190.fwdcdn.com with esmtp ID 1Y7OVc-0002f8-Il for freebsd-net@freebsd.org; Sat, 03 Jan 2015 15:12:48 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=ffe; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-Id:To:Subject:From:Date; bh=I5szegQDEAx3LQZz8HOPP1R0LVGaxVlBrH+WfD0ke9U=; b=odLekRYb0o7/0fZgQ6jvC46bhaPoskAp8J+avPel2SNJimgwqEDYJmThXglSgV+2Q0MUCgyA0/VDJS5mK55hEKfxRQZpezsAplb2AxLgg+C3hP8wlwiNP6cbNkbNvrYHEkxATWWADY0IbQzPdfJZJNcM8y5/NfJJNgaqb+wJx4E=; Received: from [10.10.10.34] (helo=frv34.fwdcdn.com) by frv198.fwdcdn.com with smtp ID 1Y7OVR-0002S4-4x for freebsd-net@freebsd.org; Sat, 03 Jan 2015 15:12:37 +0200 Date: Sat, 03 Jan 2015 15:12:36 +0200 From: wishmaster Subject: Issue with forwarding when creates new interface [was USB Tethering and forwarding] To: freebsd-net@freebsd.org X-Mailer: mail.ukr.net 5.0 Message-Id: <1420288398.485039365.so6mgquw@frv34.fwdcdn.com> References: <1419680989.938234917.k6otv1bh@frv34.fwdcdn.com> MIME-Version: 1.0 Received: from artemrts@ukr.net by frv34.fwdcdn.com; Sat, 03 Jan 2015 15:12:36 +0200 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: binary Content-Disposition: inline X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2015 13:30:59 -0000 Hi, I have been seeing strange behavior of my system lately. After creating new interface the system variable net.inet.ip.forwarding becomes "0". E.g. manually load if_ral kernel module, then rel0 interface appears and net.inet.ip.forwarding becomes "0". Previously this happened when I attached smartphone with USB tethering is on. May be this is VIMAGE-related... Any ideas? Below my original first post. > Hi, list. > > Server works as router for small network and some services in the jails. When I connect Android-based smartphone and attempt to use USB Tethering, the net.inet.ip.forwarding becomes 0 and I must change it to 1 every time. > > Is this normal behavior? > > FreeBSD server.local 10.1-STABLE FreeBSD 10.1-STABLE #1 r275636: Mon Dec 22 11:05:33 EET 2014 wishmaster@server.local:/usr/obj/usr/src/sys/SMS i386 > > Kernel has been compiled with VIMAGE > > > Cheers, > Vitaliy >