Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Second time the connection to my Teamspeak server it fails

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
Sphyrna
n00b
n00b
Posts: 4
Joined: Sat Oct 17, 2009 8:45 pm

Second time the connection to my Teamspeak server it fails

  • Quote

Post by Sphyrna » Sat Oct 17, 2009 9:56 pm

Hello all,
Are you up for a challenge? :wink:
I have been going crazy for the past two weeks, so I am turning to you for support... Normally I just search the net until I find a solution, however this time i have been unsuccessful after many hours of searching :-(

It all started three weeks ago when I decided to reinstall my server and switch from Debian to Gentoo. After some bumps and glitches I managed to get it back up and running.
I did some testing at my home, which all seemed fine and brought it to some friends. (The server is located there because they don't use a lot of bandwidth and don't mind having the server there.)
The main packets I have currently installed and running are Apache and Teamspeak.

My problem is now that when I connect to the server using apache or SSH, it all works fine, however when I use Teamspeak the first time it usually works, but when I disconnect and then reconnect I get a timeout.
Then I have to wait some time (sometimes 10 minutes, sometimes 2 days) and I can connect once again. 8O

Now comes the weird part: two of my friends can connect no problem, however a third friend has the same problem as me!

I tried a lot of things, but the only thing working form me is to set my home router to "Full featured NAT" specifying that my workstation should receive all incoming connections. (and effectively preventing all other machines from accessing the Internet)
This would point me to the conclusion that something is wrong with my NAT or router settings, a theory which is also supported by sniffing packets. Basically what I saw was that, when things go wrong:
  • The workstation sends a login packet to the server (from port x1 to port y1) with y1 being the normal Teamspeak server port
  • The router translates this packet to an outside port (say x2) and sends it through to the server (from x2 to y1)
  • The server returns a response that the login is correct (from y1 to x2)
  • The router receives the packet and sends it through to the workstation (from y1 to x2)
(All packets are UDP packets)

The packet goes through the router without changing destination port: the router doesn't perform the NAT translation on the return packet.
Of course my workstation does not see that this is a response to the earlier send packet and it is dropped.

The thing is that I can't find anything wrong with the router, this combined with the fact that nothing changed there since my working Debian setup an the fact that after the reinstall my friend started having problems leads me only the option that something on the server-side must have changed....

This is the setup I am talking about:
  • PIII 800 with 384 MB of SD RAM etc...
  • Gentoo 2.6.28-r9 hardened kernel
  • Teamspeak2 2.0.24.01-r1 server (from portage)
  • Apache and Teamspeak are each installed in their own jailroot
  • Grsecurity is used for hardening
  • My workstation in Vista x64 with a Teamspeak2 2.0.33.7 client installed
  • My (home) router is a ZyXEL P-2602R-D1A
  • On neither machines are firewalls installed/enabled at the moment. (I know... I plan to install iptables as soon as I have this problem fixed)
Any help will be greatly appreciated
Top
elgato319
Guru
Guru
Posts: 546
Joined: Thu Sep 15, 2005 9:45 am

  • Quote

Post by elgato319 » Mon Oct 19, 2009 11:38 am

does the ts2 server crashed when you try to connect the second time?

does the "server.log" from ts2 contains something?
Top
Sphyrna
n00b
n00b
Posts: 4
Joined: Sat Oct 17, 2009 8:45 pm

  • Quote

Post by Sphyrna » Mon Oct 19, 2009 4:57 pm

Hello Elgato,

Thanks for your reply.

To answer your questions: No the Teamspeak server does not crash when I connect. (the two who don't have any problems can still stay connected)
The Teamspeak logs do not provide any clues either (I have set it to record all relevant events):

Code: Select all

18-10-09 18:42:24,ALL,Info,AccessLog,   SID: 1 client connected [IP: xxx.xxx.xxx.xxx, Nick: Steven, LoginName: steven, DBID: 3, Version: 2.0.33.7]
18-10-09 18:42:26,ALL,Info,AccessLog,   SID: 1 client disconnected. [Nick: Steven, LoginName: steven, DBID: 3]
18-10-09 18:42:26,ALL,Info,SALog,       SID: 1 serveradmin disconnected [Nick: Steven, LoginName: steven]
Note that it does not show that a serveradmin connected, which it does during the normal login process.

Also no messages appear about this in any other logs. (This includes the grsec.log)
Top
Sphyrna
n00b
n00b
Posts: 4
Joined: Sat Oct 17, 2009 8:45 pm

  • Quote

Post by Sphyrna » Tue Oct 20, 2009 7:43 pm

Well I tried recompiling the kernel without Grsecurity. No dice :cry:

Does anyone have any other ideas?
Top
Sphyrna
n00b
n00b
Posts: 4
Joined: Sat Oct 17, 2009 8:45 pm

  • Quote

Post by Sphyrna » Thu Oct 22, 2009 8:31 pm

Hmm :(
I guess my only option is to switch back to Debian.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic