Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jul 2001 13:15:45 -0700 (PDT)
From:      "Jeremy C. Reed" <reed@reedmedia.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: natd, ipfw and MechWarrior
Message-ID:  <Pine.LNX.4.21.0107261256080.11777-100000@pilchuck.reedmedia.net>
In-Reply-To: <Pine.LNX.4.21.0107251223290.11777-100000@pilchuck.reedmedia.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0107261256080.11777-100000>