From owner-freebsd-net Thu Feb 17 14:11:28 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.nerv.nu (cx639627-c.irvn1.occa.home.com [24.0.209.134]) by hub.freebsd.org (Postfix) with ESMTP id 1E61C37B84D for ; Thu, 17 Feb 2000 14:11:23 -0800 (PST) (envelope-from nugundam@nerv.nu) Received: (from nugundam@localhost) by greenwood3.nerv.nu (8.9.3/8.9.3) id OAA27081; Sun, 13 Feb 2000 14:31:09 -0800 (PST) (envelope-from nugundam) Date: Sun, 13 Feb 2000 14:31:09 -0800 From: "Joseph T. Lee" To: Marco Rodrigues Cc: freebsd-net@FreeBSD.ORG Subject: Re: natd redirect_port Message-ID: <20000213143109.A27031@greenwood3.nerv.nu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: ; from Marco Rodrigues on Sun, Feb 13, 2000 at 03:39:56PM -0500 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, Feb 13, 2000 at 03:39:56PM -0500, Marco Rodrigues wrote: > Has anyone ever got the redirect_port switch to work with natd? It seems > i've tried everything and I can't never get it to work. -redirect_port tcp > externalip:telnet internalip:telnet should pass all requests to port 23 on > the computer with both nics to a internal box at port 23 correct? I've also From the manpage: -redirect_port proto targetIP:targetPORT[-targetPORT] [aliasIP:]alias- PORT[-aliasPORT] [remoteIP[:remotePORT[-remotePORT]]] [snip] tcp inside1:telnet 6666 means that incoming tcp packets destined for port 6666 on this machine will be sent to the telnet port on the inside1 machine. tcp inside2:2300-2399 3300-3399 will redirect incoming connections on ports 3300-3399 to host inside2, ports 2300-2399. The mapping is 1:1 meaning port 3300 maps to 2300, 3301 maps to 2301, etc. You have it reversed. Try -redirect_port tcp internal:telnet telnet. -- Joseph nugundam =best=com==/==\=IIGS=/==\=Playstation=/==\=Civic HX CVT=/==\ # Anime Expo 2000 >> www.anime-expo.org/ > # FreeBSD: The Power to Serve >> www.freebsd.org > # The Ultimate Online Speed-Shop >> www.racesearch.com / To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message