From nobody Fri Aug 26 10:42:11 2022 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MDbxh5j76z4ZpYY for ; Fri, 26 Aug 2022 10:42:16 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4MDbxg71qKz3tlF for ; Fri, 26 Aug 2022 10:42:15 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.16.1) with ESMTPS id 27QAgCTh085431 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 26 Aug 2022 12:42:13 +0200 (CEST) (envelope-from wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1661510533; bh=aPdOfmwhoWKuCGFlwwkadSg+PzdqLzULhN+2LNG+MTQ=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=Hb7iBLDVBg3aByeeA4wk5KGSB2M/PqcmYuyFtlsjC8donTbTRNVM+0m7CMPYTIbuq 0DTdU5ZrLA4Nx8T/Eab9mVbT4LB1kkXi/ap2eYL41MgBRz/7hB7535qF8n++baJMdr WYpQTyFaBzpWgwg6SNHCvClvr75GlFYSpDK3+QbQ= Received: from wojtek.intra (localhost [127.0.0.1]) by wojtek.intra (8.16.1/8.16.1) with ESMTP id 27QAgCMo067992; Fri, 26 Aug 2022 12:42:12 +0200 (CEST) (envelope-from wojtek@puchar.net) Received: from localhost (wojtek@localhost) by wojtek.intra (8.16.1/8.16.1/Submit) with ESMTP id 27QAgBxh067989; Fri, 26 Aug 2022 12:42:11 +0200 (CEST) (envelope-from wojtek@puchar.net) X-Authentication-Warning: wojtek.intra: wojtek owned process doing -bs Date: Fri, 26 Aug 2022 12:42:11 +0200 (CEST) From: Wojciech Puchar To: Eugene Grosbein cc: freebsd-hackers@freebsd.org Subject: Re: ipfw nat problem In-Reply-To: <57a9cad0-c2ef-6e1f-2185-0f7563fe3758@grosbein.net> Message-ID: <90b59493-95d6-5b2a-b0dc-2fece0a9df7b@puchar.net> References: <623ac39e-2915-463a-9e4c-9f99bae28c69@puchar.net> <57a9cad0-c2ef-6e1f-2185-0f7563fe3758@grosbein.net> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 4MDbxg71qKz3tlF X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=puchar.net header.s=default header.b=Hb7iBLDV; dmarc=none; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-3.49 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.99)[-0.987]; R_SPF_ALLOW(-0.20)[+mx:c]; R_DKIM_ALLOW(-0.20)[puchar.net:s=default]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[puchar.net:+]; RCVD_COUNT_THREE(0.00)[3]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[puchar.net]; HAS_XAW(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N >>> on any interface creation (tunX, ngX, etc.) will switch forwarding to 0 again. >> >> Well - i do create tun or other interfaces without problems. Can you point an example of this? > > Some scripts (f.e. from /etc/devd.conf) invoke /etc/pccard_ether $subsystem start > (the name "pccard_ether" is just historic, it serves any cloned network interface). > > It runs "/etc/rc.d/netif quietstart" $ifn that runs "/etc/rc.d/routing static any $_if" > that may reset net.inet.ip.forwarding=0 unless you have gateway_enable="YES" in /etc/rc.conf > despite you could have set net.inet.ip.forwarding=1 via sysctl.conf. > > > > Thanks. Fortunately i don't use devd on any servers. Anyway - with ip.forwarding on ssh still disconnect randomly. Just after much larger amount of data transmitted (like 10-100MB, not <1MB) Just on this server. Any ideas what may be wrong?