The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 RE: how to run games through a freebsd gateway/rou
Author: Iain Patterson 
Date:   07-11-00 03:40

Some games use multiple ports. The Half-Life client, for instance, sends udp packets to a server on 27010 (if I recall correctly) and expects responses from that port (which is fine because natd will set up a dynamic rule for it) but also expects to receive udp packets from the server port 27015 (again, if I recall correctly). This means that you'll need to add a static rule to natd with "-redirect_port udp GAMES_MACHINE_LOCAL_IP:27015 27015". Depending on how paranoid your firewall is you might need to add accept rules for this traffic with something like "ipfw add accept udp from any 27015 to GAMES_MACHINE_LOCAL_IP" or ("echo pass in quick udp from any port = 27015 to GAME_MACHINE_LOCAL_IP | ipf -f" for IPFILTER) (When playing with these rules, remember that packets go through the firewall twice, once with destination IP of the external interface and once with that of the private IP).

A good way to find out which ports you need to hack is to run netstat on both your Windows box and the FreeBSD box and check the firewall logs to see what's trying to come in. This was the technique I used to figure out Half-Life. However there are sites out there that give you instructions for various games. http://www.tmservices.com/masq/catlist.php3?Games is a good one (Linux-centric, has commands for ipfwadm/ipchains) with a big list of games. Sadly I never did get Aliens v Predator to work...

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

 Topics Author  Date
 how to run games through a freebsd gateway/router   new
Pascal Zoutendijk 30-10-00 22:45 
 RE: how to run games through a freebsd gateway/rou   new
Dan Larsson 31-10-00 12:03 
 RE: how to run games through a freebsd gateway/rou   new
Dan Larsson 31-10-00 12:15 
 RE: how to run games through a freebsd gateway/rou   new
Pascal Zoutendijk 04-11-00 21:52 
 RE: how to run games through a freebsd gateway/rou   new
Dan Larsson 06-11-00 10:58 
 RE: how to run games through a freebsd gateway/rou   new
Iain Patterson 07-11-00 03:40 
 RE: how to run games through a freebsd gateway/rou   new
Iain Patterson 13-11-00 03:22 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 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

phorum.org