Link to home
Start Free TrialLog in
Avatar of purfus
purfus

asked on

port forwarding, kinda

I've got a dedicated server running fedora with plesk.  I am running a teamspeak server which consists of a number of virtual servers per se that all respond on different ports.  Right now there are servers running on ports 65520-65530.  This works just ducky because it allows me to pass along the server address as goclans.com:65530 or something which seams simple enough to me.  But people seem to have an adversion to numbers.  So I am wondering if it is posible to use a subdomain and drop the port.  So say a sub domain of oldman.goclans.com would point the teamspeak client to 65530.  The teamspeak client will automatically use its default port of 3535 or something around there if no port is given.  So I would need to forward between goclans.com:65530 and oldman.goclans.com:3535.  Is this even posible?
Avatar of Arty K
Arty K
Flag of Kazakhstan image

"forward between goclans.com:65530 and oldman.goclans.com:3535.  Is this even posible?"
Yes, BUT only if you have separate IP for each such 'oldman.goclans.com'. Otherwise it's impossible.
it's kind of easy if you can edit the apache config file.

what you need is "reverse proxy" feature, where your port 80 will ask the other servers (no matter if they are running at 127.0.0.1:65520 or at cnn.com) and offer them based on the site name.
I wrote a quick howto on the matter but it is in spanish. if you can read that then go to http://redimido.glo.org.mx, but if you need it in english look at:

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3009
http://www.apacheweek.com/features/reverseproxies
(read this at the end of the others since it's incomplete and only looks at one part):
http://www.linux.org/docs/ldp/howto/MMBase-Inst-HOWTO/x968.html

happy linuxing
is a teamspeak server runs under apache control?
or at least on http protocol :)
Avatar of purfus
purfus

ASKER

I'm not sure what protocol it uses.  Here's a packet sniff from my client side donno if it helps or not.  And thank you redimido.  I'm not sure I understand quite what your telling me but I will go through those resources and figure it out.  Until than I will leave the question open though.

Ethernet II (Packet Length: 72)
      Destination:       00-13-46-84-cb-c3
      Source:       00-90-f5-48-ac-63
Type: IP (0x0800)
Internet Protocol
      Version: 4
      Header Length: 20 bytes
      Flags:
            .0.. = Don't fragment: Not set
            ..0. = More fragments: Not set
      Fragment offset:0
      Time to live: 128
      Protocol: 0x11 (UDP - User Datagram Protocol)
      Header checksum: 0x0 (Incorrect - Checksum should be 0xd82c)
      Source: 192.168.0.157
      Destination: 216.55.162.72
User Datagram Protocol
      Source port: 2864
      Destination port: 65530
      Length: 8
      Checksum: 0xd09 (Correct)
Data (24 Bytes)
Avatar of purfus

ASKER

Oh and yes I only have one ip address and def cant afford to buy one for each of the virtual ts servers.
SOLUTION
Avatar of Arty K
Arty K
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of purfus

ASKER

hmm, ok.  Well that all makes sense.  It does seem odd to me that the protocol doesn't support it.  I mean I would think the server should be able to recieve a request for information at a certain address and interpret it in any way.  But the reasons it doesn't work do make sense.  Perhaps it will be directly supported in the future.  Thanks for all the help.