From owner-freebsd-questions Sun Aug 1 5:35:14 1999 Delivered-To: freebsd-questions@freebsd.org Received: from awfulhak.org (dynamic-50.max1-du-ws.dialnetwork.pavilion.co.uk [212.74.8.50]) by hub.freebsd.org (Postfix) with ESMTP id 798F314BF5 for ; Sun, 1 Aug 1999 05:35:02 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (root@keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id KAA16485; Sat, 31 Jul 1999 10:21:57 +0100 (BST) (envelope-from brian@lan.awfulhak.org) Received: from keep.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id KAA01678; Sat, 31 Jul 1999 10:22:47 +0100 (BST) (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199907310922.KAA01678@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: "Chris Wasser" Cc: questions@FreeBSD.ORG Subject: Re: IPFW & NATD In-reply-to: Your message of "Sat, 31 Jul 1999 01:28:55 MDT." <001a01bedb26$591f0d40$0101a8c0@vwave.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 31 Jul 1999 10:22:45 +0100 From: Brian Somers 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. Natd does now: redirect_port udp [bsd_inet_ip]:2300-2400 192.168.1.2:2300-2400 > 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 :) If you find out the exact ports, drop me a line & I'll update the FAQ. > At any rate, if anyone knows the problem here (wheter it be my own stupidity > or not), I would appriciate any replies. -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message