From owner-freebsd-pf@FreeBSD.ORG Fri Jun 30 01:26:44 2006 Return-Path: X-Original-To: freebsd-pf@freebsd.org Delivered-To: freebsd-pf@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A127216A5B3 for ; Fri, 30 Jun 2006 01:26:44 +0000 (UTC) (envelope-from sysupdates@spaceservices.net) Received: from smart-serv.net (smart-serv.net [208.68.18.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA7BF448B0 for ; Fri, 30 Jun 2006 01:07:23 +0000 (GMT) (envelope-from sysupdates@spaceservices.net) Received: (qmail 50897 invoked by uid 0); 25 Jun 2006 00:07:21 -0000 Received: from 69.141.50.80 by smart-serv.net (envelope-from , uid 0) with qmail-scanner-1.25 (clamdscan: 0.87/1106. spamassassin: 3.1.0. Clear:RC:0(69.141.50.80):SA:0(-2.5/4.0):. Processed in 0.355064 secs); 25 Jun 2006 00:07:21 -0000 X-Spam-Status: No, hits=-2.5 required=4.0 X-Qmail-Scanner-Mail-From: sysupdates@spaceservices.net via smart-serv.net X-Qmail-Scanner: 1.25 (Clear:RC:0(69.141.50.80):SA:0(-2.5/4.0):. Processed in 0.355064 secs) Received: from c-69-141-50-80.hsd1.pa.comcast.net (HELO Neptune.SpaceServices.net) (brandon@69.141.50.80) by smart-serv.net with SMTP; 25 Jun 2006 00:07:20 -0000 Date: Sat, 24 Jun 2006 20:07:19 -0400 From: Brandon Penglase To: freebsd-pf@freebsd.org Message-ID: <20060624200719.43ccaa04@Neptune.SpaceServices.net> In-Reply-To: References: Organization: Space Networks X-Mailer: Sylpheed-Claws 2.3.0 (GTK+ 2.8.19; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: REDIRECTING using the NAT table X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 01:26:44 -0000 > Hi, > > I am new to FreeBSD and PF but was wondering how I could do using PF > a rule from iptables on Linux. > > The rule using iptables in Linux is: > iptables -t nat -A PREROUTING -p udp --dport 3322 -j REDIRECT > --to-ports 3323 rdr on $ext_if proto tcp from any to $ext_if port 86 -> 10.0.1.10 port 80 $ext_if is the interface facing the net, or I suppose the side from that you want to modify. if your looking to just change port, I suppose you could remove the IP at the end. Hope this helps. Brandon