IpChains For Gaming

Hello i am new to linux and i am an expert online gamer. I have just installed redhat 6.0 on a new machine and have my 98 machine runnign through it for the internet. I would like to play my Favorite game Total Annihilation but i can't host or join games cause of port problems. But i don't know how to set it up i have this information about direct play to work through a firewall.
Setup for Client Firewall Support Using the DirectPlay Dynamic Range
To join a game through a firewall, the client must be using DirectX 6.0 or
later and communicating with a host using DirectX 6.0 or later. To support
applications using the DirectPlay dynamic range, a firewall administrator
needs to allow an initial outbound TCP connection on port 47624, with
subsequent connections of inbound TCP ports 2300-2400, outbound TCP ports
2300-2400, inbound UDP ports 2300-2400, and outbound UDP ports 2300-2400.
For a chart highlighting these requirements, see the Dynamic Range Port
Reference Chart.

Example of a Microsoft Proxy Server 2.0 Configuration:

Internet Service Manager, Windows Sockets Proxy service: Service Properties
Add protocol "DirectPlay (client)" under Protocols tab.
Initial connection
47624 TCP Outbound
Subsequent connections
2300-2400 TCP Inbound
2300-2400 TCP Outbound
2300-2400 UDP Inbound
2300-2400 UDP Outbound
Give appropriate permissions to "DirectPlay (client)" under Permissions tab.
Add to file "mspclnt.ini", which is in the C:\Msp\Clients folder by default.
[Common Configuration]

If anyone could help me and where to start it would be great
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You are  not going to be able to do this through IP Chains( can give reason but is long). I think if you setup Proxy instead like Socks5 you will be able to run the games.
..if the games support socks5 that is ;)
You may want to try this and see if it works:
ipchains -M -S 7200 10 60
ipchains -s -d -j MASQ
ipmasqadm autofw -A -r tcp 47624 47624
ipmasqadm autofw -A -r tcp 2300 2400
ipmasqadm autofw -A -r udp 2300 2400

   Keep in mind this is a very vulnerable ruleset, but you may want to start here to see if this will do what you want and then go back and start denying/rejecting what you don't need.

  --- Joel

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Oh, in my answer - replace the with your proper internal network number and subnet bit mask.  

  --- Joel
dreadAuthor Commented:
Umm what files do i do this in i have the set rules printed out for IP packet forwarding but dont't know where to start :(
Just add the lines from my answer in a new text file and then make it executable (chmod 700) for root only and then type the name of the file (may have to say "./nameoffile" w/o the quotes.  To have it automatically start each time the machine is rebooted, try adding it to whatever script you want to run it or one of the end scripts such as "rc.local" in RedHat.

   --- Joel
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.