From owner-freebsd-questions@freebsd.org Tue Sep 15 12:43:52 2015 Return-Path: Delivered-To: freebsd-questions@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 1D3C1A02BB7 for ; Tue, 15 Sep 2015 12:43:52 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AD50812DD for ; Tue, 15 Sep 2015 12:43:51 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: by wicgb1 with SMTP id gb1so27017856wic.1 for ; Tue, 15 Sep 2015 05:43:50 -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:content-transfer-encoding; bh=1TkulhHyJToR3w51zbjEjZL8QhzgpskqlSPcR3HWXgQ=; b=RHJ3jtWT3FNoI6vDxLSgd7ykFVe1XeKfJoqj2L79o6GeotHwn9j93AfBAd3tf5HCJf I0wwy/YWHQt17Pcpfue2l9fB+LrZRp2Y6ZHmMSdLQbhj8wMskM0TaGurr0YxDwHxrAmL RK/F4ptCjFa5ss8/2XQzs8CWc1pIr1KH6CQS1bbTwOq5n+saGXA+A1tYHVGHVEvDqJrq iVZel0I6gSmJ5RutR6nSKq9O6/Z7kz0m6TwoqLUO1H2+mSBfdSKPjczIRsg0oh+7OB75 uq4LVITvgm5byogUXnXiwDBVbhrKpVl/cnR8/n4S3lXVZVm9f6/zW27IMuzr3tVQT8DM PK5g== X-Received: by 10.180.86.137 with SMTP id p9mr7180933wiz.38.1442321030151; Tue, 15 Sep 2015 05:43:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.115.3 with HTTP; Tue, 15 Sep 2015 05:43:10 -0700 (PDT) In-Reply-To: References: From: "C. L. Martinez" Date: Tue, 15 Sep 2015 12:43:10 +0000 Message-ID: Subject: Re: 10.2-RELEASE not forwarding packets/NATing with pf To: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Sep 2015 12:43:52 -0000 On Tue, Sep 15, 2015 at 12:34 PM, Mariusz G=C3=B3rniak wrote: > My FBSD 10.2 doesn't forward either :( > It's > FreeBSD 10.2-RELEASE #0 r286666: Wed Aug 12 15:26:37 UTC 2015 > root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 > > /etc/rc.conf > gateway_enable=3D"YES" > > kldstat: > kernel > fdescfs.ko > uhid.ko > pflog.ko > pf.ko > > # sysctl net.inet.ip.forwarding > net.inet.ip.forwarding: 1 > > > Ifconfig: > ifconfig_bge1=3D"inet 192.168.1.1 netmask 255.255.255.0" > ifconfig_bge1_alias0=3D"inet 192.168.7.1 netmask 255.255.255.0" > ifconfig_bge0=3D"dhcp" > > Though bge0 is dynamic it always has the same IP assigned. > > > And the new input: > > # pfctl -sr > No ALTQ support in kernel > ALTQ related functions disabled > pass out all flags S/SA keep state > pass out on bge0 proto udp all keep state > pass in all flags S/SA keep state > > > I don't need ALTQ but all the rules rdr are ignored. > It's works as a router but I can't forward to any 192.168.1.xx address :( > It is the same problem that occurs when you use FreeBSD+PF as a kvm guest or hyper-v guest ... But, ipfw works ok in all cases ...