Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Apr 2001 10:38:56 -0700
From:      Brent Kearney <brent@kearneys.ca>
To:        Brent <misterb@cybertours.com>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.org>
Subject:   Re: ipfw rules ...and quake3 gaming
Message-ID:  <20010426103856.A18326@kearneys.ca>
In-Reply-To: <000b01c0cab9$a05046f0$0100a8c0@loqtis>; from misterb@cybertours.com on Sat, Apr 21, 2001 at 07:20:16PM -0400
References:  <000b01c0cab9$a05046f0$0100a8c0@loqtis>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Apr 21, 2001 at 07:20:16PM -0400, Brent wrote:
> I have a 4.1 FBSD running NAT & IPFW acting as a gateway machine for my
> internal network...i have the kernel to deny by default..all seems to be
> working ggod...ive opened up what ports  i need....althoug i cant seem to
> get quake ports  to open ..the clients are using gamespy ..im not sure if
> uses a particular port...but q2 & q3  i think use udp27910  and 27960  ..any
> help would be appreciated...or howto's ya might be able to toss my way
> TIA
> 
> Brent
> 

If the internal machine that runs Quake is named "brentpc", then 
you could use an ipfw rule like this: 

	# Allow connections to port 27960 for Q3 access to brentpc
	$fwcmd add pass tcp from any to ${oip} 27960 setup
	$fwcmd add pass tcp from any to ${brentpc} 27960 setup
	$fwcmd add pass udp from any to ${oip} 27960 
	$fwcmd add pass udp from any to ${brentpc} 27960 

Or possibly pass tcp from any to ${inet} 27960, etc.

You will also need NAT rules to translate your internal IPs.  In
your /etc/rc.conf, include something like:

natd_enable="YES"
natd_flags="-log_denied -f /etc/natd.conf"

Then make a file called /etc/natd.conf, in which you could add:

# for Q3 access to brentpc
redirect_port tcp brentpc:27960 27960 
redirect_port udp brentpc:27960 27960 


Cheers,

-Brent



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?20010426103856.A18326>