From owner-freebsd-questions Mon Nov 1 23:28:13 1999 Delivered-To: freebsd-questions@freebsd.org Received: from smtp11.bellglobal.com (smtp11.bellglobal.com [204.101.251.53]) by hub.freebsd.org (Postfix) with ESMTP id 4B1D414EC1 for ; Mon, 1 Nov 1999 23:28:04 -0800 (PST) (envelope-from edirol@anime.ca) Received: from epoch.anime.ca (HSE-TOR-ppp25728.sympatico.ca [209.226.82.225]) by smtp11.bellglobal.com (8.8.5/8.8.5) with ESMTP id CAA08754 for ; Tue, 2 Nov 1999 02:32:04 -0500 (EST) Received: from magus (magus.anime.ca [192.168.0.3]) by epoch.anime.ca (8.9.3/8.9.3) with SMTP id CAA24503 for ; Tue, 2 Nov 1999 02:27:59 -0500 (EST) (envelope-from edirol@anime.ca) Message-ID: <002601bf2503$cd96b980$0300a8c0@anime.ca> From: "Edirol" To: Subject: ipfw fwd action problems Date: Tue, 2 Nov 1999 02:28:03 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi there, I'm trying to setup a relay box that will basically forward all requests to port X on the relay box to port X on another machine on the net. So say: I telnet to 207.34.202.38:21 (relay box) everything would be passed on to another machine, say 24.1.64.72:21. Of course when the 24.1.64.72:21 box returns the packet to 207.34.202.68:21 that should also magically bounce back to the ip who originally connected to 207.34.202.38:21. If this is not possible the source ip (that originally connected to 207.34.202.38:21), could be fixed if that makes the firewall rules simpler. I've been tinkering with the following command ipfw add fwd otherbox,port tcp from any to relaybox X I'm sure something is forwarding somewhere but there doesn't appear to be traffic going both ways. Can someone advise me whether I've done this completely wrong or suggest another approach I should take? Thanks, - Will To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message