LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 09-15-2005, 10:00 AM   #1
achallenger1
LQ Newbie
 
Registered: Jul 2005
Distribution: Debian (and others)
Posts: 19

Rep: Reputation: 0
UT2004, Guarddog/iptables, and LAN games - ??


I'm trying to set up Unreal Tournament 2004 on my computer, for LAN games. I have it installed and set up; local games work fine. I've opened up ports 7777-7778/udp and 7787/udp (I've left the TCP Web admin port, configurable in the upper 20,000's, closed as I don't use it), and I can do LAN games via direct-to-IP (ie. I type in my own IP address in the appropriate field).

Just to confuse things, by the way, I'm testing LAN games by running the UT server and client programs both on this same machine; I don't have regular admin access to any other machines capable of running UT 2004. This leads to a lot of VT-switching, but I'd think it should work...

I'm using the Guarddog GUI frontend to iptables. When I use Guarddog to disable the firewall, I can see my own game in the list of LAN games. When I re-enable the firewall, though, I can't see it; I can still connect to it by typing in my own IP address, but this is kinda annoying... I'm guessing that the problem has something to do with broadcast packets, but I don't know what to do beyond that.

Anyone have any suggestions?

Just for fun, I'm having the same problem with UT2003 and UT:GOTY (the original Unreal Tournament). I'm guessing it's the same problem; if it's not, any thoughts there? These are a lower priority for me than is UT2004, though.
 
Old 09-15-2005, 02:23 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
An additional socket may be used for that broadcast. When the game server is running, try using netstat to see what ports the game server process is using: both listening and connected on.
 
Old 09-15-2005, 05:20 PM   #3
achallenger1
LQ Newbie
 
Registered: Jul 2005
Distribution: Debian (and others)
Posts: 19

Original Poster
Rep: Reputation: 0
I haven't really used netstat before, so I'm not sure if I'm using it correctly. Here's my output:



Code:
me$ sudo netstat -pv --protocol=inet
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 localhost.localdoma:ipp localhost.localdom:3622 ESTABLISHED7660/cupsd
tcp        0      0 localhost.localdoma:ipp localhost.localdom:3120 ESTABLISHED7660/cupsd
tcp        0      0 localhost.localdom:3409 localhost.localdom:1110 TIME_WAIT  -
tcp        0      0 localhost.localdom:4934 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:4932 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:4933 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:4930 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:4931 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:4928 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:4929 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:4943 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:4941 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:4950 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:4951 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:4956 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:4957 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:4954 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:4955 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:4952 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:4953 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:4926 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:4927 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:4925 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:1830 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:1831 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:1828 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 localhost.localdom:1829 localhost.localdoma:ipp TIME_WAIT  -
tcp        0      0 [my internet ip]:2426        64.233.187.104:www      ESTABLISHED13121/firefox-bin
tcp        0      0 [my internet ip]:2424        64.233.187.104:www      ESTABLISHED13121/firefox-bin
tcp        0      0 localhost.localdom:3622 localhost.localdoma:ipp ESTABLISHED10306/gnome-cups-ic
tcp        0      0 localhost.localdom:3120 localhost.localdoma:ipp ESTABLISHED9338/gnome-cups-ico
tcp        1      0 [my internet ip]:4636        [my mail server's IP]:imaps      CLOSE_WAIT 13121/firefox-bin
tcp        1      0 [my internet ip]:4615        [my mail server's IP]:imaps      CLOSE_WAIT 13121/firefox-bin
tcp        1      0 [my internet ip]:4616        [my mail server's IP]:imaps      CLOSE_WAIT 13121/firefox-bin
tcp        1      0 [my internet ip]:4617        [my mail server's IP]:imaps      CLOSE_WAIT 13121/firefox-bin
tcp        0      1 [my internet ip]:3629        stats.zone.com:9999     SYN_SENT   13270/ngWorldStats
Code:
me$ sudo netstat -pvl --protocol=inet
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *:afpovertcp            *:*                     LISTEN     9213/afpd
tcp        0      0 *:netbios-ssn           *:*                     LISTEN     7725/smbd
tcp        0      0 192.168.2.1:427         *:*                     LISTEN     7728/slpd
tcp        0      0 [my internet ip]:427         *:*                     LISTEN     7728/slpd
tcp        0      0 192.168.1.1:427         *:*                     LISTEN     7728/slpd
tcp        0      0 localhost.localdoma:427 *:*                     LISTEN     7728/slpd
tcp        0      0 *:sunrpc                *:*                     LISTEN     6087/portmap
tcp        0      0 *:10000                 *:*                     LISTEN     7758/perl
tcp        0      0 localhost.localdoma:721 *:*                     LISTEN     7753/famd
tcp        0      0 *:auth                  *:*                     LISTEN     7682/inetd
tcp        0      0 localhost.localdom:1110 *:*                     LISTEN     13121/firefox-bin
tcp        0      0 *:ipp                   *:*                     LISTEN     7660/cupsd
tcp        0      0 *:731                   *:*                     LISTEN     7757/rpc.statd
tcp        0      0 *:microsoft-ds          *:*                     LISTEN     7725/smbd
udp        0      0 *:1025                  *:*                                8965/mdnsd
udp        0      0 *:1026                  *:*                                9887/ut-bin
udp        0      0 192.168.1.1:netbios-ns  *:*                                7718/nmbd
udp        0      0 [my internet ip]:netbios-ns  *:*                                7718/nmbd
udp        0      0 192.168.2.1:netbios-ns  *:*                                7718/nmbd
udp        0      0 *:netbios-ns            *:*                                7718/nmbd
udp        0      0 192.168.1.1:netbios-dgm *:*                                7718/nmbd
udp        0      0 [my internet ip]:netbios-dgm *:*                                7718/nmbd
udp        0      0 192.168.2.1:netbios-dgm *:*                                7718/nmbd
udp        0      0 *:netbios-dgm           *:*                                7718/nmbd
udp        0      0 *:10000                 *:*                                7758/perl
udp        0      0 255.255.255.255:427     *:*                                7728/slpd
udp        0      0 192.168.2.1:427         *:*                                7728/slpd
udp        0      0 239.255.255.253:427     *:*                                7728/slpd
udp        0      0 [my internet ip]:427         *:*                                7728/slpd
udp        0      0 239.255.255.253:427     *:*                                7728/slpd
udp        0      0 192.168.1.1:427         *:*                                7728/slpd
udp        0      0 239.255.255.253:427     *:*                                7728/slpd
udp        0      0 *:1077                  *:*                                10057/ut-bin
udp        0      0 *:1078                  *:*                                10057/ut-bin
udp        0      0 *:zephyr-hm             *:*                                7748/zhm
udp        0      0 *:8777                  *:*                                13471/ut-bin
udp        0      0 *:8778                  *:*                                9887/ut-bin
udp        0      0 *:725                   *:*                                7757/rpc.statd
udp        0      0 *:728                   *:*                                7757/rpc.statd
udp        0      0 *:afs3-callback         *:*                                -
udp      304      0 *:7777                  *:*                                9887/ut-bin
udp     6992      0 *:7777                  *:*                                13471/ut-bin
udp        0      0 *:7778                  *:*                                13471/ut-bin
udp        0      0 *:7779                  *:*                                9887/ut-bin
udp        0      0 *:5353                  *:*                                8965/mdnsd
udp        0      0 *:5353                  *:*                                8965/mdnsd
udp        0      0 *:5353                  *:*                                8965/mdnsd
udp        0      0 *:sunrpc                *:*                                6087/portmap
udp        0      0 *:ipp                   *:*                                7660/cupsd
udp        0      0 192.168.2.1:ntp         *:*                                7965/ntpd
udp        0      0 [my internet ip]:ntp         *:*                                7965/ntpd
udp        0      0 localhost.localdoma:ntp *:*                                7965/ntpd
udp        0      0 192.168.1.1:ntp         *:*                                7965/ntpd
udp        0      0 *:ntp                   *:*                                7965/ntpd
(the above output is somewhat filtered for identifiable info)

This is while running UT original, incidentally; running two clients for UT 2004 made my PC too unusable (I broke the "Dedicated Server" gui button somehow and I haven't bothered to figure out how, nor how to start the UT command-line server yet...). A game is being served, and one client is sitting at the "LAN Servers" screen looking for servers.

It doesn't look to me like UT is broadcasting on any interesting ports, but it is listening on some ports that I wasn't expecting. I opened those ports (1024-1124/udp; UT seems to vary the port that it's listening on within that range), but it didn't help.

EDIT: As you may notice, I have 3 IPs on this machine. There's one for each ethX interface installed. eth1 connects to the Internet through a large LAN. eth0 and eth2 (192.168.1.1 and 192.168.2.1) are both basically crossover cables to special devices that I don't want to bother putting on the LAN.

Last edited by achallenger1; 09-15-2005 at 05:25 PM.
 
Old 09-19-2005, 12:52 PM   #4
achallenger1
LQ Newbie
 
Registered: Jul 2005
Distribution: Debian (and others)
Posts: 19

Original Poster
Rep: Reputation: 0
Anyone have any ideas? Any pointers of where to look? I'm still a n00b at setting up a good firewall; if you think there's something really obvious that I must have tried already, I probably haven't.
 
  


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
IPtables/Guarddog blocking to much. How do I fix this? M$ISBS Linux - Security 7 11-14-2005 09:42 PM
The Solution to Bad ATI Performance in games (eg UT2004) proudclod Linux - Games 10 06-10-2004 02:19 PM
Failed Dependencies for Guarddog: Iptables Electronkz Linux - Security 1 04-27-2004 03:42 AM
firewall settings guarddog games powadha Linux - Games 2 01-13-2004 02:52 AM
rsync through Guarddog/IPTables on Gentoo Chip D Linux - Security 3 01-05-2004 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 09:10 AM.

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
Open Source Consulting | Domain Registration