From owner-freebsd-questions@FreeBSD.ORG Thu May 14 14:32:54 2009 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 26951106566B for ; Thu, 14 May 2009 14:32:54 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 8416D8FC19 for ; Thu, 14 May 2009 14:32:53 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by bwz9 with SMTP id 9so1320643bwz.43 for ; Thu, 14 May 2009 07:32:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=EeOWap3CxRQHuqhs6W09SvcIdV5yv6sJVf6DKQQW9oE=; b=uHbLaEZeVmKstlSxRfD/qNvyt/Ja5xJH0oOvT5I3wO3lrpmYNr9dIYVWZlUjSIJwMP /gfCaO9xJU4UEUcrhBMuOesn5NL6Iz0c9xwrBMjm/VJHCLo1ol/Qg53kZumadOaNHFtf 3oHT7gpiA8rrLun3xV/g1BN/6TYJ23zEF2KjQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=DFWDM5oF9PJ6Wl1kiIARD2OakcQCp4cMSqIytest9IMyPgXGqItG3eQVAF6TemeZ21 FDq9kLUW7TeZrFsQPoP26AbJVbDB33aT6P5ml/soTg+WF4XrM1GtN/JMtBBj0+NVN09V MoPJGSnVGOkZ35IBh8le9BceSAqnXgUshKYa0= MIME-Version: 1.0 Received: by 10.223.106.14 with SMTP id v14mr1760841fao.49.1242311572409; Thu, 14 May 2009 07:32:52 -0700 (PDT) In-Reply-To: <6ae50c2d0905140723l4503b96ayc6a997289e29d3f4@mail.gmail.com> References: <6ae50c2d0905130958r6877114bgbea6a4f717c1287d@mail.gmail.com> <6ae50c2d0905131109j7d61075ao1a0b329a1b2fd122@mail.gmail.com> <991123400905132259n2e99fa40g9ef9c18514ab0637@mail.gmail.com> <6ae50c2d0905140723l4503b96ayc6a997289e29d3f4@mail.gmail.com> Date: Thu, 14 May 2009 17:32:52 +0300 Message-ID: <991123400905140732y34d37e0eo4d6525f54b4b98dc@mail.gmail.com> From: =?UTF-8?B?T2RoaWFtYm8gIOODr+OCt+ODs+ODiOODsw==?= To: alexus Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "freebsd-questions@freebsd.org" Subject: Re: ipnat port-range 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: Thu, 14 May 2009 14:32:54 -0000 2009/5/14 alexus > 2009/5/14 Odhiambo =E3=83=AF=E3=82=B7=E3=83=B3=E3=83=88=E3=83=B3 : > > > > > > On Wed, May 13, 2009 at 9:09 PM, alexus wrote: > >> > >> On Wed, May 13, 2009 at 12:58 PM, alexus wrote: > >> > i need to redirect bunch of ports, or port-range from outside to my > jail > >> > > >> > # /etc/rc.d/ipnat reload > >> > /etc/rc.d/ipnat: DEBUG: checkyesno: ipnat_enable is set to YES. > >> > /etc/rc.d/ipnat: DEBUG: run_rc_command: doit: /sbin/ipnat -F -C -f > >> > /etc/ipnat.rules > >> > 0 entries flushed from NAT table > >> > 2 entries flushed from NAT list > >> > syntax error error at "port-range", line 8 > >> > # grep port-range /etc/ipnat.rules > >> > rdr bce0 0/0 port-range 49152:65534 -> lama port-range 49152:65534 t= cp > >> > # > >> > > >> > > >> > > >> > -- > >> > http://alexus.org/ > >> > > >> > >> that rule is wrong to begin with as rdr doesn't work with ranges, i > >> guess I need to use something else.. > >> > >> anyone done something like that? use ipnat to map range of ports? this > >> is for ftp PASV > > > > > > Looks like it's time to convert your rules into PF then start using PF. > > > > > > -- > > Best regards, > > Odhiambo WASHINGTON, > > Nairobi,KE > > +254733744121/+254722743223 > > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > > "Clothes make the man. Naked people have little or no influence on > > society." > > -- Mark Twain > > > > i'm pretty sure people have asked that in the past > > but i guess whats the pros and cons one vs another, we have 3 candidates > > ipfw - FreeBSD > ipf > pf - OpenBSD > > and why not all of 'em at once?:) bit a hassle to maintane but it > seems like ipf can't do what i need, yet pf can > ipfw i can limit traffic i dont know if ipf or pf can .. it seems like > they all have something that the other can't > They can co-exist when you know what you are doing, yes:) AFAIK, PF should have all that IPFW can do. --=20 Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "Clothes make the man. Naked people have little or no influence on society." -- Mark Twain