LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Games (https://www.linuxquestions.org/questions/linux-games-33/)
-   -   UT2004, Guarddog/iptables, and LAN games - ?? (https://www.linuxquestions.org/questions/linux-games-33/ut2004-guarddog-iptables-and-lan-games-363610/)

achallenger1 09-15-2005 10:00 AM

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.

Matir 09-15-2005 02:23 PM

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.

achallenger1 09-15-2005 05:20 PM

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.

achallenger1 09-19-2005 12:52 PM

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.


All times are GMT -5. The time now is 02:13 PM.