From owner-freebsd-pf@freebsd.org Sun Oct 30 01:02:56 2016 Return-Path: Delivered-To: freebsd-pf@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 1F356C240FA for ; Sun, 30 Oct 2016 01:02:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 0ED7C792 for ; Sun, 30 Oct 2016 01:02:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u9U12tbo028204 for ; Sun, 30 Oct 2016 01:02:55 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-pf@FreeBSD.org Subject: [Bug 213859] /dev/pf device busy causes issues in complex systems Date: Sun, 30 Oct 2016 01:02:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-pf@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Oct 2016 01:02:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213859 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-bugs@FreeBSD.org |freebsd-pf@FreeBSD.org CC|freebsd-amd64@FreeBSD.org | --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-pf@freebsd.org Sun Oct 30 21:01:00 2016 Return-Path: Delivered-To: freebsd-pf@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 06D34C27341 for ; Sun, 30 Oct 2016 21:01:00 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 D9A04182B for ; Sun, 30 Oct 2016 21:00:59 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u9UL01tF070189 for ; Sun, 30 Oct 2016 21:00:59 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201610302100.u9UL01tF070189@kenobi.freebsd.org> From: bugzilla-noreply@FreeBSD.org To: freebsd-pf@FreeBSD.org Subject: Problem reports for freebsd-pf@FreeBSD.org that need special attention Date: Sun, 30 Oct 2016 21:00:59 +0000 X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Oct 2016 21:01:00 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 203735 | Transparent interception of ipv6 with squid and p 1 problems total for which you should take action. From owner-freebsd-pf@freebsd.org Mon Oct 31 08:00:15 2016 Return-Path: Delivered-To: freebsd-pf@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 138DCC27756 for ; Mon, 31 Oct 2016 08:00:15 +0000 (UTC) (envelope-from maximos@als.nnov.ru) Received: from mx.als.nnov.ru (mx.als.nnov.ru [95.79.102.161]) (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 C62BF12E0 for ; Mon, 31 Oct 2016 08:00:14 +0000 (UTC) (envelope-from maximos@als.nnov.ru) Received: from [10.4.1.100] by mx.als.nnov.ru with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87 (FreeBSD)) (envelope-from ) id 1c172w-0002DI-1O for freebsd-pf@freebsd.org; Mon, 31 Oct 2016 10:30:18 +0300 Subject: Re: Forcing a route using pf To: freebsd-pf@freebsd.org References: <20161027140324.GH51420@home.opsec.eu> <20161027142417.GI51420@home.opsec.eu> <20161028132154.5a094476@mr185083> From: Max Message-ID: <4a6abbc5-612a-8081-2cf0-8e72def91d0d@als.nnov.ru> Date: Mon, 31 Oct 2016 10:30:17 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Oct 2016 08:00:15 -0000 Interface igb0: nat on igb1 to 10.10.10.100 -> igb0 pass out on igb1 route-to ( igb0 10.0.0.1 ) from igb0 to 10.10.10.100 Why don't you use igb1 interface? nat on igb1 to 10.10.10.100 -> igb0 And on Server B: route add -host 10.0.0.10 10.10.10.10 29.10.2016 13:14, James Morris пишет: > Hi, > > I added the pf rule: > > pass out on igb1 route-to ( igb0 10.0.0.1 ) from any to 10.10.10.100 > > But now when I try to reach 10.10.10.100 traffic goes out igb0 as expected, but it has the source IP of igb1 > > # ping 10.10.10.100 > > # tshark -i igb0 > Capturing on 'igb0' > 1 0.000000 10.10.10.10 -> 10.10.10.100 ICMP 98 Echo (ping) request id=0xb403, seq=0/0, ttl=64 > 2 0.001509 RealtekU_12:35:02 -> Broadcast ARP 60 Who has 10.10.10.10? Tell 10.0.0.1 > 3 1.020896 10.10.10.10 -> 10.10.10.100 ICMP 98 Echo (ping) request id=0xb403, seq=1/256, ttl=64 > 4 1.022268 RealtekU_12:35:02 -> Broadcast ARP 60 Who has 10.10.10.10? Tell 10.0.0.1 > > > Traffic is flowing out the correct interface, but has the wrong source IP address. > > What am I doing wrong here? > > Thanks, > > James > > > > From: Patrick Lamaiziere > Sent: 28 October 2016 11:21 > To: James Morris > Cc: freebsd-pf@freebsd.org > Subject: Re: Forcing a route using pf > > Le Thu, 27 Oct 2016 19:23:38 +0000, > James Morris a écrit : > > Hi, > > Hello, > >> While this does solve the issue of pushing traffic through igb0, >> however any income connections to igb1 from server B also get shunted >> out igb0. >> >> I was wondering if there is a way to do this in pf. > see PF route-to option. > > Regards, > > > _______________________________________________ > freebsd-pf@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-pf > To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org" From owner-freebsd-pf@freebsd.org Tue Nov 1 18:46:50 2016 Return-Path: Delivered-To: freebsd-pf@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 29C53C2810A for ; Tue, 1 Nov 2016 18:46:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 E81DA1397 for ; Tue, 1 Nov 2016 18:46:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uA1Ikn6v085137 for ; Tue, 1 Nov 2016 18:46:49 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-pf@FreeBSD.org Subject: [Bug 210860] [pf] [ip6] Incorrect TCP checksums after rdr Date: Tue, 01 Nov 2016 18:46:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: vieira+fbsd@yubo.be X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-pf@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Nov 2016 18:46:50 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210860 --- Comment #4 from Joao Vieira --- Still present on 11.0-RELEASE-p1. Were you able to reproduce it? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-pf@freebsd.org Tue Nov 1 20:22:32 2016 Return-Path: Delivered-To: freebsd-pf@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 4E2D0C2A216 for ; Tue, 1 Nov 2016 20:22:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 18AC31F16 for ; Tue, 1 Nov 2016 20:22:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uA1KMVHu064557 for ; Tue, 1 Nov 2016 20:22:31 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-pf@FreeBSD.org Subject: [Bug 210860] [pf] [ip6] Incorrect TCP checksums after rdr Date: Tue, 01 Nov 2016 20:22:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: kp@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-pf@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Nov 2016 20:22:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210860 --- Comment #5 from Kristof Provost --- I've not had the time to look at this yet. It's on my list, but I can't pro= mise when I'll have the time. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-pf@freebsd.org Wed Nov 2 08:09:36 2016 Return-Path: Delivered-To: freebsd-pf@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 2F6BFC2A1F2 for ; Wed, 2 Nov 2016 08:09:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 12EFE1326 for ; Wed, 2 Nov 2016 08:09:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uA289ZnZ060015 for ; Wed, 2 Nov 2016 08:09:35 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-pf@FreeBSD.org Subject: [Bug 209475] pf didn't check if enough free RAM for net.pf.states_hashsize Date: Wed, 02 Nov 2016 08:09:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: fnoyanisi@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-pf@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Nov 2016 08:09:36 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209475 fehmi noyan isi changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #170810|0 |1 is obsolete| | --- Comment #7 from fehmi noyan isi --- Created attachment 176410 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D176410&action= =3Dedit The latest patch with console and logging facility outputs Hi there,=20 I setup another VM running FreeBSD 12.0-CURRENT and updated the previous pa= tch to reflect Olivier's suggestion with regards to logging. I used printf(9) to print an error message similar to this pf: Invalid states hash table size : 2147483648. Using the default value 32= 768. Not mentioned in the original bug report, but value of f_srchashsize also n= eeds to be verified against the available memory as setting net.pf.source_nodes_hashsize tunable to a value larger than malloc(9) can allocate causes the system to crash. The snippet below was captured with script(1) utility from a FreeBSD 12.0-CURRENT system patched with attached diff file (note that console outp= ut is not captured, only tty) VM3 ---------------------------------------------------------- Script started on Wed Nov 2 20:07:09 2016 root@vm3:~ # uname -a FreeBSD vm3 12.0-CURRENT FreeBSD 12.0-CURRENT #2: Tue Nov 1 20:27:46 NZDT = 2016 root@vm3:/usr/obj/usr/src/sys/GENERIC amd64 root@vm3:~ # cat /boot/loader.conf net.pf.states_hashsize=3D"2147483648" root@vm3:~ # sysctl hw.realmem hw.realmem: 536805376 root@vm3:~ # kldstat Id Refs Address Size Name 1 3 0xffffffff80200000 1fdc408 kernel 2 1 0xffffffff82419000 2ac85 vboxguest.ko root@vm3:~ # service pf onestart Enabling pf. root@vm3:~ # kldstat Id Refs Address Size Name 1 5 0xffffffff80200000 1fdc408 kernel 2 1 0xffffffff82419000 2ac85 vboxguest.ko 3 1 0xffffffff82444000 351a7 pf.ko root@vm3:~ # dmesg | grep pf pf: Invalid states hash table size : 2147483648. Using the default value 32= 768. pf: Invalid source node hash table size : 0. Using the default value 8192. root@vm3:~ # exit exit Script done on Wed Nov 2 20:08:23 2016 ---------------------------------------------------------- --=20 You are receiving this mail because: You are the assignee for the bug.=