From owner-freebsd-questions Thu Jul 26 13:15:49 2001 Delivered-To: freebsd-questions@freebsd.org Received: from pilchuck.reedmedia.net (pilchuck.reedmedia.net [63.145.197.178]) by hub.freebsd.org (Postfix) with ESMTP id 6F01037B405 for ; Thu, 26 Jul 2001 13:15:46 -0700 (PDT) (envelope-from reed@reedmedia.net) Received: from reed by pilchuck.reedmedia.net with local-esmtp (Exim 3.12 #1 (Debian)) id 15PrXt-0004j6-00; Thu, 26 Jul 2001 13:15:45 -0700 Date: Thu, 26 Jul 2001 13:15:45 -0700 (PDT) From: "Jeremy C. Reed" To: freebsd-questions@freebsd.org Subject: Re: natd, ipfw and MechWarrior In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 25 Jul 2001, Jeremy C. Reed wrote: > One user on the network plays MechWarrior. He was unable to play the game > and also unable to do some MechWarrior pings (show ping times to other > players). I fixed this by making my natd do: redirect_port tcp 192.168.1.2:47624 47624 redirect_port tcp 192.168.1.2:2300-2400 2300-2400 redirect_port tcp 192.168.1.2:27999 27999 redirect_port tcp 192.168.1.2:28805-28808 28805-28808 redirect_port udp 192.168.1.2:28800 28800 But I still wonder ... How can I figure out which ports are being used by this 192.168.1.2 (from the FreeBSD router)? (It appears that netstat doesn't show the individual network activity and ports in regards to natd via tun0.) Even though MechWarrior seems to work for my customer, I am still curious about: > How can I view the current NAT (natd) connections? (And where is this > documented?) Something like "ipnat -l" or Linux' "ipchains -M -L" for natd? > Also, I am using natd flag "-log", but my logs are really sparse, for > example my log only shows: > Jul 25 11:53:27 bsd natd[159]: Aliasing to 4.x.x.x, mtu 1524 bytes > Jul 25 11:59:12 bsd natd[159]: failed to write packet back (Permission denied) > > I read a bunch of postings about this "Permission denied", but I am still > not sure what this means (especially since my ipfw rules are so > short). What does this "failed to write packet back (Permission denied)" > mean? (And where is this documented?) Thanks, Jeremy C. Reed -- who still has never played MechWarrior http://www.reedmedia.net/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message