LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-02-2004, 08:06 PM   #1
eponymous
Member
 
Registered: Oct 2004
Distribution: Gentoo
Posts: 78

Rep: Reputation: 15
UNI Firewall & Playing Games


Hi,
I am at a univeristy which ONLY has the following ports open:
(copied from site)
* Port 20/21: FTP
* Port 22: ssh (secure shell)
* Port 23: telnet (though you should really use SSH!)
* Port 25: SMTP (Outgoing mail)
* Port 80: Web traffic (to on-campus web servers only)
* Port 110: POP3 (Incoming mail)
* Port 119: Usenet News
* Port 123: NTP (Time server)
* Port 143: IMAP (University Mail)
* Port 8080: Web Cache (required for use of off-site web pages)
The current set-up is i have a computer running linux connected to the network directly and a laptop running windows, with age of empires installed on it, networked to the linux computer (daisy-chained). I know age of empires uses ports the following DX7 ports:

Ports for Client Configuration
----------------------------------------
INITIAL TCP CONNECITON: 47624 OUTBOUND
SUBSEQUENT TCP INBOUND: 2300-2400
SUBSEQUENT TCP OUTBOUND: 2300-2400
SUBSEQUENT UDP INBOUND: 2300-2400
SUBSEQUENT UDP OUTBOUND: 2300-2400
Ports for Host Configuration
---------------------------------------
INITIAL TCP CONNECITON: 47624 INBOUND
SUBSEQUENT TCP INBOUND: 2300-2400
SUBSEQUENT TCP OUTBOUND: 2300-2400
SUBSEQUENT UDP INBOUND: 2300-2400
SUBSEQUENT UDP OUTBOUND: 2300-2400

Im guessing I need to route ports 47624(TCP) and 2300-2400(UDP) through 8080, but im not sure what id need to do on my linux (mandrake) box and connected windows laptop. How would I go about using iptables to play this game?
Ive tried the following commands to attmept to get the incoming packets from the age of empires game to be redirected by the linux box to port 8080:

iptables -t nat -A PREROUTING -p tcp --dport 47624 -j REDIRECT --to-ports 8080
iptables -t nat -A PREROUTING -p udp --dport 2300:2400 -j REDIRECT --to-ports 8080
etc...
Thankyou in advance for any help you can give me.
=P.S I THINK THE NETWORK USES A PROXY SERVER ON PORT 8080=
 
Old 10-03-2004, 12:07 AM   #2
mangolicious
Member
 
Registered: Sep 2004
Location: Nowhere Special (if you don't get it, rent Blazing Saddles)
Distribution: Gentoo Linux
Posts: 63

Rep: Reputation: 15
now you see, there's still a problem with your current plan even if you do get it working. the age of empires server is expecting you to contact their server on the right port, not port 8080. So, what you would need to do is have a computer off-campusaccept your connections and forward them to the right ports for the AOE game servers. you'dd best just stick to the lan parties.
 
Old 10-03-2004, 07:52 AM   #3
eponymous
Member
 
Registered: Oct 2004
Distribution: Gentoo
Posts: 78

Original Poster
Rep: Reputation: 15
could i do it using a free shell account? if so how would i go about doing this? i really want to be able to play games. also i happened across this article about ssh port forwarding, would this work for games?

http://www.netalive.org/topics/19778
 
Old 10-03-2004, 11:38 AM   #4
mangolicious
Member
 
Registered: Sep 2004
Location: Nowhere Special (if you don't get it, rent Blazing Saddles)
Distribution: Gentoo Linux
Posts: 63

Rep: Reputation: 15
well, actually, I didn't know that free shell accounts existed. Probably not though as it takes root privelegesto change firewall rules and I don't think any free shell account will let you do that. what you could possibly do is set up a linux server yourself off-campus in a friend's house who doesn't mind you using his internet connection. but as for an online shell account, I am pretty sure it's impossible.
UNLESS... hmmm I just thought of something. port 22 is unblocked so what you could do is get an online shell that has ssh access and use ssh itself to forward all of the ports you need. this can actually be done without the linux gateway that you were describing. use putty.exe to forward all of the right ports then you connect your age of empires game to localhost. that could work. I myself would just leave it alone for all of the trouble this would cost you but that's just me. If you still want to try, then consult your good old-fashioned google.com for information on putty.exe.
 
Old 10-03-2004, 02:21 PM   #5
eponymous
Member
 
Registered: Oct 2004
Distribution: Gentoo
Posts: 78

Original Poster
Rep: Reputation: 15
hi thanks for your quick reply, . Im a bit stuck with putty though, how would i configure it to allow me to play aoe, becuase the example on the link i posted is to conencted to irc.dal.net on port 6666, however with AOE there is no host name :S. Also, I have to connect my laptop to my linux computer as you are only supposed to have one computer connected to the network, as they assign you an ip, and note your MAC adress. So would this method work still, routing through the linux box. Im sure port 22/23 is open for both the laptop nad the linux box tho.
Btw, my laptop is on a private network 10.0.0.0 and my linux computers IP would be the same for the laptop.
 
Old 10-24-2004, 12:20 PM   #6
mangolicious
Member
 
Registered: Sep 2004
Location: Nowhere Special (if you don't get it, rent Blazing Saddles)
Distribution: Gentoo Linux
Posts: 63

Rep: Reputation: 15
well when I did this with worms, I used the "force ip" option and put in the shell account's ip instead of my own. oh and, actually, unless the shell account has no firewall at all (which is highly unlikely), port forwarding with ssh won't work because ssh won't be able to listen remotely on the port that aoe uses to play. This is because the firewall blocks all incoming ports except for the ones that the shell computer in question wants to use. I am pretty sure that the only way to do it would be to have a linux computer off-campus that could forward all connections to it on the port aoe uses through the university firewall on port 22, to your linux computer which puts the traffic back on the right port for your computer to use. this whole thing may seem unnecessarily complicated but I am pretty sure that it's the only way that it can be done. Like I said earlier, after all the trouble it would take you to set up such a networking thing you would be much better off just sticking to your lan parties
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
playing direct x 9 games linuxmandrake Linux - Software 3 06-26-2005 07:00 PM
Best Linux for playing games jbumgar Linux - Software 6 10-10-2004 09:30 PM
playing games compu73rg33k Linux - Software 13 02-25-2004 09:56 PM
Playing Games on Linux MrJBot Linux - Newbie 11 11-26-2003 08:42 AM
playing games with wine likid0 Linux - Software 5 06-28-2003 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration