From owner-freebsd-questions Sat Jul 31 0:31: 7 1999 Delivered-To: freebsd-questions@freebsd.org Received: from crash.videotron.ab.ca (crash.videotron.ab.ca [206.75.216.220]) by hub.freebsd.org (Postfix) with ESMTP id 59C8014BCC for ; Sat, 31 Jul 1999 00:31:03 -0700 (PDT) (envelope-from cwasser@v-wave.com) Received: from area51 (area51.v-wave.com [24.108.26.39]) by crash.videotron.ab.ca (8.9.2/8.9.2) with SMTP id BAA18675 for ; Sat, 31 Jul 1999 01:29:35 -0600 (MDT) Message-ID: <001a01bedb26$591f0d40$0101a8c0@vwave.com> From: "Chris Wasser" To: References: <001601bedab6$58a58c60$230000c8@vit.orgus.ru> <37A1D24D.1E6B862C@alcatel.fr> Subject: IPFW & NATD Date: Sat, 31 Jul 1999 01:28:55 -0600 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 have a problem that I hope can be resolved by posting here. We have a small intranet connected to a cablemodem. The machine behind the cablemodem is a FreeBSD box (3.2-R) with two Windows98 clients behind it accessing inet through network address translation. With this, we haven't had a problem. However, one of the clients behind the BSD machine plays games on the internet (the other is simply for business stuff) and needs certain ports forwarded for what I would imagine is DirectX DirectPlay. The following ports are in question: TCP - 47624 UDP - 2300 to 2400 Now I've tried several combinations for ipfw using divert and fwd with not much luck. I then turned to natd with the -redirect_port directive and plugged in manually, all those ports but it didn't help either. Here's what I did: natd.conf (called via natd -f /path/config): redirect_port tcp [bsd_inet_ip]:47624 192.168.1.2:47624 redirect_port udp [bsd_inet_ip]:2300 192.168.1.2:2300 .. .. redirect_port udp [bsd_inet_ip]:2400 192.168.1.2:2400 It seems to me that neither ipfw (in some cases) or natd accept ranged values for ports, requiring manually plugging in each port one by one. ipfw add divert 47624 tcp from [bsd_inet_ip] to 192.168.1.2 47624 ipfw add divert 2300 udp from [bsd_inet_ip] to 192.168.1.2:2300 I imagine these forwarded connections must be accessible both ways (send<->receive) for gaming purposes. If it helps any, the game in question is Mechwarrior3 :) At any rate, if anyone knows the problem here (wheter it be my own stupidity or not), I would appriciate any replies. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message