From owner-freebsd-questions@FreeBSD.ORG Fri Feb 13 12:52:08 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 CE4E91065672 for ; Fri, 13 Feb 2009 12:52:08 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-bw0-f170.google.com (mail-bw0-f170.google.com [209.85.218.170]) by mx1.freebsd.org (Postfix) with ESMTP id 3141E8FC12 for ; Fri, 13 Feb 2009 12:52:07 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by bwz18 with SMTP id 18so2150630bwz.19 for ; Fri, 13 Feb 2009 04:52:07 -0800 (PST) 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=GTEbiyks9Wd+unS6kffxRxNWJ8YPMoWljVFA5nfqHzY=; b=mN+P/5YlLSBh396g5IR5n3AKlVvPZdfVqsC7Zj3rJh7DbY84RHaJSbhem/hvd4CnJG KQ/xxlfvc/nN3nHKopZLYxkx1ujFrMY1EGeuAuKJpHbfcAya12a6THiLjPSM7SMbmLE0 BMyI7nZIC4Mph16FuA2ph32IQsWhNAmHwww7A= 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=czQ0I6+MxlU+g5q+KB5nlweynu7q8lrd4slI0SK4RbaTG13JbWkkGeUsOzlj9fbZ5c qA3TXr6qvfeYrZ5oJewyIL0DWG+DTFFgNZ3iNojPUyQxyGQJcS0NMX2XkvuiMcQbx0aH oVe1EMFop7ZbuSGcNO0GQm5L35WTANasY1rIU= MIME-Version: 1.0 Received: by 10.223.105.140 with SMTP id t12mr294852fao.12.1234529516151; Fri, 13 Feb 2009 04:51:56 -0800 (PST) In-Reply-To: <499565C6.3030500@gmail.com> References: <733048.41349.qm@web65403.mail.ac4.yahoo.com> <499565C6.3030500@gmail.com> Date: Fri, 13 Feb 2009 15:51:56 +0300 Message-ID: <991123400902130451y22c83155se5495b2108305809@mail.gmail.com> From: Odhiambo Washington To: Moti Levy Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: kashif_imran4u@yahoo.com, umar381@yahoo.com, freebsd-questions@freebsd.org Subject: Re: Iptables in FreeBSD 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: Fri, 13 Feb 2009 12:52:09 -0000 On Fri, Feb 13, 2009 at 3:21 PM, Moti Levy wrote: > On 02/12/09 3:31 AM, kashif imran wrote: > >> Hi all >> I am a new to FreeBsd, can someone translate these iptables rules for >> freebsd? >> /usr/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE >> /usr/sbin/iptables -A FORWARD -i eth0 -o eth1 -m state --state >> RELATED,ESTABLISHED -j ACCEPT >> /usr/sbin/iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT >> >> regards >> Imran > > Hmm, depends on whether you are using IPFW, or IPF/IPNat or PF. Which one do you use? And BTW, what does the two rules do in Linux? If you say what they do, I can interpret that into IPFilter/IPNat or PF language on FreeBSD. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "The only time a woman really succeeds in changing a man is when he is a baby." - Natalie Wood