From owner-freebsd-ipfw Wed Feb 13 0:59:10 2002 Delivered-To: freebsd-ipfw@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id BA69037B400 for ; Wed, 13 Feb 2002 00:58:59 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g1D8w7K47392; Wed, 13 Feb 2002 10:58:07 +0200 (EET) (envelope-from ru) Date: Wed, 13 Feb 2002 10:58:07 +0200 From: Ruslan Ermilov To: "Andrew V. Jemerya" Cc: ipfw@FreeBSD.ORG Subject: Re: keep-state rule before nat Message-ID: <20020213105807.B46245@sunbay.com> References: <3C6A38F2.8B65E6EC@jet.msk.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C6A38F2.8B65E6EC@jet.msk.su> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 13, 2002 at 11:59:14AM +0200, Andrew V. Jemerya wrote: > Hi, guys! > > I had some trouble with keep-state rules recently. > My firewall rules are the folowing: > > check-state > allow tcp from any to xxxx 25 keep-state > allow udp from any 53 to xxx 53 keep-state > > divert natd from 192.168.0.0/24 to any out via rl0 > divert from any to xxx in via rl0 > > > allow all from 192.168.0.4 to any via rl1 keep-state > > This construction doen't work properly, but exactly it doesn't work at > all > What can I do for this situation? > Keep-state combined with divert is really tricky. Search ML archives for a possible solution. I posted them once. Cheers, -- Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message