From owner-freebsd-net@freebsd.org Wed Dec 20 08:48:15 2017 Return-Path: Delivered-To: freebsd-net@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 39BD7E9FEB5 for ; Wed, 20 Dec 2017 08:48:15 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C4450633E5 for ; Wed, 20 Dec 2017 08:48:13 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id vBK8m5kG098708 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Dec 2017 09:48:06 +0100 (CET) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: artemrts@ukr.net Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id vBK8m2mR070678; Wed, 20 Dec 2017 15:48:02 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: ng_patch and swap_pager_getswapspace error To: wishmaster , freebsd-net@freebsd.org References: <1513663683.700534911.voagagit@frv52.fwdcdn.com> <5A391519.8040707@grosbein.net> <1513694407.556184943.ya3sdvt4@frv52.fwdcdn.com> From: Eugene Grosbein Message-ID: <5A3A23C2.2030707@grosbein.net> Date: Wed, 20 Dec 2017 15:48:02 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <1513694407.556184943.ya3sdvt4@frv52.fwdcdn.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE, T_DATE_IN_FUTURE_Q_PLUS autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * 0.0 T_DATE_IN_FUTURE_Q_PLUS Date: is over 4 months after Received: date * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-Spam-Level: ** X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Dec 2017 08:48:15 -0000 On 19.12.2017 21:46, wishmaster wrote: >>> /sbin/ipfw add 15002 netgraph 100 ip from me to not me recv "*" >> >> Why do you have incoming ip packets sourced from your IP? > > It's ok. I use per-interface ACL. > > # out > ipfw -fq table tbl_OUT_IF flush > ... > ipfw table tbl_OUT_IF add tun1 15000 # > ... > > > $cmd 100 skipto tablearg log all from any to any in recv "table(tbl_IN_IF)" > $cmd 110 skipto tablearg log all from any to any out xmit "table(tbl_OUT_IF)" > > > ### OUT ext_if tun0 > $cmd 15000 nat 1 log all from not me to not me recv "*" # LAN traffic > # !!! 15002 here > $cmd 15020 allow log all from me to not me recv "*" # LAN traffic It is not OK. It does not make any sense: "from me ... recv" is NOT any kind of normal LAN traffic. This expression describes spoofed traffic.