The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

As an Amazon Associate I earn from qualifying purchases.
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 NAT and M$ ''
Author: Wilco Noordermeer 
Date:   17-08-00 17:04

Hi there,

I'm running a FreeBSD 4.0 release box which also serves as a NAT router for a windows machine on a private space address.

Everything on the windows machine works (cue comments! :-) The only thing I can't do at the moment is play 'Age of Empires II' on the

I can log in, but as soon as a game is launched I can't connect to another player, nor can they connect to me.

My /etc/rc.firewall is as generic as possible and look like this (ed1 being my NIC connected to a cable modem):

/sbin/ipfw -f flush
/sbin/ipfw add divert natd all from any to any via ed1
/sbin/ipfw add pass all from any to any

There is an article in the M$ knowledgebase regarding the ports that should be used for playing on '':

This states:
"The following TCP ports on the firewall must be open:
28800 - 29000"

I was under the impression that the above rules already accounted for that, but apparently not.

Has anyone got any experience in how to resolve this issue?

Any help appreciated.



Reply To This Message
 RE: NAT and M$ ''
Author: Wilco Noordermeer 
Date:   21-08-00 10:10


I have managed to solve the problem by adding the following to /etc/natd.conf:

use_sockets yes
same_ports yes
redirect_port tcp []:2300-2400 2300-2400
redirect_port udp {]:2300-2400 2300-2400
redirect_port tcp []:28800-29000 28800-29000
redirect_port udp []:28800-29000 28800-29000
redirect_port tcp []:47624 47624

Perhaps this might be of help to anyone else :-)



Reply To This Message
 RE: NAT and M$ ''
Author: Noah Case 
Date:   28-08-00 21:18

This basically tells the system to use ed1 interface as the NATD interface. And rediect to the port you desire.

you will need to edit the natd.conf file you have made and have the changes reflect something like this;

interface ed1
redirect_port tcp 6667
redirect_port tcp 28800

And so on. Save the file and reload the natd program. (reboot) if you do not know how to kill and reload.


Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 

 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum