From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 14 14:25:49 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2CD216A41F for ; Wed, 14 Dec 2005 14:25:49 +0000 (GMT) (envelope-from oxy@field.hu) Received: from dumballah.tvnet.hu (dumballah.tvnet.hu [195.38.96.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86BED43D45 for ; Wed, 14 Dec 2005 14:25:48 +0000 (GMT) (envelope-from oxy@field.hu) Received: from localhost (localhost.localdomain [127.0.0.1]) by dumballah.tvnet.hu (Postfix) with ESMTP id C95AD1019C0; Wed, 14 Dec 2005 15:25:46 +0100 (CET) Received: from dumballah.tvnet.hu ([127.0.0.1]) by localhost (dumballah.tvnet.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22103-37; Wed, 14 Dec 2005 15:25:46 +0100 (CET) Received: from oxy (dsl195-38-110-3.pool.tvnet.hu [195.38.110.3]) by dumballah.tvnet.hu (Postfix) with SMTP id 31CA1101976; Wed, 14 Dec 2005 15:25:46 +0100 (CET) Message-ID: <002501c600ba$489502c0$0201a8c0@oxy> From: "OxY" To: References: <001701c6000a$86eab700$0201a8c0@oxy> <20051214060120.GA6833@qlovarnika.bg.datamax> Date: Wed, 14 Dec 2005 15:25:50 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Virus-Scanned: by amavisd-new at tvnet.hu Cc: freebsd-hackers@freebsd.org Subject: Re: ipfw forwarding X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2005 14:25:49 -0000 thanks, it works! On Tue, Dec 13, 2005 at 06:27:43PM +0100, OxY wrote: > hi! > > i have a probably dumb question, can't get through it.. > > i have some ips on my server (x.x.x.28 and x.x.x.204 is important).. > > tried to forward packets from one ip to the other and ipfw doesn't do > anything. > i'd like to catch the packets on .204 port 80 and send them to one of my > vhosts > (domain is on .28) > > so anybody on the internet may open the .204 address from browser and get > back > the .28 content.. > > i used this rule: > > $cmd 00316 fwd x.x.x.x.204,80 tcp from any to x.x.x.28 80 > > what's wrong with it? > I suggest that you read *carefully* ipfw(8) and rewrite your rule to: 00316 fwd x.x.x.x.28,80 tcp from any to x.x.x.204 80 Good luck! -- Vasil Dimov ----- Original Message ----- From: "Vasil Dimov" To: "OxY" Cc: Sent: Wednesday, December 14, 2005 7:01 AM Subject: Re: ipfw forwarding