From owner-freebsd-questions@FreeBSD.ORG Mon Apr 16 07:39:59 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BAB2F106566B; Mon, 16 Apr 2012 07:39:59 +0000 (UTC) (envelope-from fbsd@thorshammare.org) Received: from smtprelay-b11.telenor.se (smtprelay-b11.telenor.se [62.127.194.20]) by mx1.freebsd.org (Postfix) with ESMTP id 334388FC0C; Mon, 16 Apr 2012 07:39:59 +0000 (UTC) Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id 21C26CE92; Mon, 16 Apr 2012 09:39:56 +0200 (CEST) X-SENDER-IP: [83.227.225.121] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmJDAIDMi09T4+F5PGdsb2JhbABDFqMjj3wZAQEBATc0ggkBAQEBAwEBAQUgJggYGAMCFgIJJwcZDgEFBAgDBwMRAQEEAQcHBAEKEgSHcQe4FYs3hhIEiCeFSIVSgz2SDYFa X-IronPort-AV: E=Sophos;i="4.75,428,1330902000"; d="scan'208";a="95601941" Received: from ua-83-227-225-121.cust.bredbandsbolaget.se (HELO odin.thorshammare.org) ([83.227.225.121]) by ipb3.telenor.se with ESMTP; 16 Apr 2012 09:39:55 +0200 Received: from Obah (obah.thorshammare.org [192.168.1.10]) by odin.thorshammare.org (8.14.5/8.14.5) with ESMTP id q3G7dl1V029352; Mon, 16 Apr 2012 09:39:47 +0200 (CEST) From: "Hasse Hansson" To: "'Fbsd8'" , "'FreeBSD Questions'" , "'FreeBSD Current'" , "'FreeBSD doc'" References: <4F8AF6C8.4010703@a1poweruser.com> <4F8B846D.3050809@a1poweruser.com> In-Reply-To: <4F8B846D.3050809@a1poweruser.com> Date: Mon, 16 Apr 2012 09:39:38 +0200 Message-ID: <000b01cd1ba4$17435e90$45ca1bb0$@org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac0beT6rr/DNPE9zTXmIZZShXmJ5YgAKpEvw Content-Language: sv X-Virus-Scanned: clamav-milter 0.97.4 at mailhub3.thorshammare.org X-Virus-Status: Clean Cc: Subject: SV: pf firewall and ftp X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Apr 2012 07:39:59 -0000 To solve the ftp pre 4.7 part, you can start reading here http://home.nuug.no/~peter/pf/en/long-firewall.html#FTPPROBLEM /Hasse -----Oprindelig meddelelse----- Fra: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] P=E5 vegne af Fbsd8 Sendt: den 16 april 2012 04:31 Til: FreeBSD Questions; FreeBSD Current; FreeBSD doc Emne: Re: pf firewall and ftp Fbsd8 wrote: > Running 9.0 as a gateway host with pf firewall enabled. > FTP is launched by inetd. > Both active and passive ftp works from lan pc's to the host ftp. > The lan ftp session can be initiated from the host or any lan pc and=20 > things work because there are no rules on the lan interface except=20 > single pass all rule. >=20 > But I can not do host initiated or lan initiated ftp sessions to the=20 > public internet. Get "operation not permitted" message. Tried to setup = > ftp-proxy per openbsd pf manual without any joy. >=20 > Looking for working rule set with nat and ftp services to study and=20 > learn from. > >=20 >=20 OK I have uncovered what the problem is. The pf version running on Freebsd 9.0 matches the version running on = openbsd 4.5. Found it on man pf at the end. The documentation on the Openbsd website for pf is for Openbsd 5.0 and = it has warning saying "NOTE: This information is for OpenBSD 4.7. NAT configuration was significantly different in earlier versions." http://pf4freebsd.love2party.net/ has more info about how back dated the 9.0 Freebsd production version of pf is. The Freebsd handbook had a detailed section on pf including rules = examples matching the version of pf included with 9.0 But someone allowed it to = be removed in the current version of the handbook. So here we are with an outdated version of pf in the current production 9.0 version of Freebsd and there is no documentation available on nat = rule syntax in the handbook or at openbsd/pf. Going to dig through the 9.0 pf man pages for the info _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org"