Forward subdomain to a specific port (UDP & TCP)

Discussion in 'Server Operation' started by dragon`, Jan 30, 2009.

  1. dragon`

    dragon` New Member


    I have Ubuntu 8.04 + ISPConfig installed.

    I'm trying to forward a to the 27010 port of my server.
    We will have more game server instances(Counter-Strike) from one game, and because of this we have to use multiple ports.

    What i want to work up, is that my players don't need to specify a port when they connects to our servers, example: will redirect him to myipaddress:27010 => myipaddress:27011

    The game's default port is 27015. There could be two solutions:
    1. all the traffic from will be redirected to myipaddress: port
    2. the traffic from the udp:// will be redirected to myipaddress: port

    I've tried:
    -redirecting with php to udp://ip: port(bad idea :D )
    -dns service records
    -searching google for a week

    The closest solution:
    I created an A record for all of my instance names (example:,
    The players now can connect through the subdomains, but they need to specify the port of the servers (
    The disadvantage of this solution is that if the user misses the port, he misses the server too.

    The best solution:
    -buy more ip addresses(over 15-20 servers is pretty expensive)

    Some ideas:
    I have to create "virtual ip addresses"
    -or local loopbacks (, somehow, but maybe it is not possible
    -or there will be an openVPN server on this server, and i will allocate more IP-s for my server.
    After that i have to point the subdomains somehow to these ip addresses
    -/etc/hosts ?? ( point a to, and to )
    -or with virtual hosting ( but i could not use it with UDP or TCP)

    I'm at loss of this now.

  2. falko

    falko Super Moderator ISPConfig Developer

  3. dragon`

    dragon` New Member

    Thx for your reply.

    Apache is a HTTP server. It isn't possible to handle UDP requests with a HTTP server. :(
  4. bmwillrath

    bmwillrath New Member


    this is exactly i want to do, did you come up with a soloution?
  5. dragon`

    dragon` New Member


    I have asked some experts in the area, but everybody sais it's impossible. Unless you have enaugh number of public IP addresses. You can do it with simple firewall rules, but you need an IP address for each server.
  6. Brahmin

    Brahmin New Member

  7. pititis

    pititis Member

    You can use a proxy like proxymini

    Supports HTTP, HTTP CONNECT (for HTTPS and so on), SOCKS4 (TCP and TCP bind) and SOCKS5 (TCP, TCP bind and UDP)

    Just configure it for listening in the port you want and redirect the traffic to the desiderated IP and port

    I used it before for game servers.


Share This Page