Page 1 of 7 123 ... LastLast
Results 1 to 10 of 62

Thread: Multiple Servers

  1. #1
    Join Date
    Aug 2010
    Beans
    42

    Multiple Servers

    hi..

    i have 1 server which can be accessed through one main direct ip address. i want another server to be used as well this one. how do i somehow, gain access to the new server externally?

    so basically, for now, if i type in my current IP, it will show the main default page on server 1.. is there any way i can do the following:- configure- 82.34.232.33:566 (port 566 to forward to lan ip of server 2) .. so if some one types in 82.34.232.33:566 in their web browser, they will be directed to server 2...?

    might sound stupid, sorry.

  2. #2
    Join Date
    Jun 2007
    Location
    Oklahoma City, OK
    Beans
    200
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Multiple Servers

    Yeah that is definitely within the realms of standard port forwarding.

    is your router doing the port forwarding, or is the server on a public IP?
    Te audire no possum. Musa sapientum fixa est in aure.

  3. #3
    Join Date
    Aug 2010
    Beans
    42

    Re: Multiple Servers

    hey..

    i configured DMZ pointed to my servers local LAN IP address. so the real ip is direct to my server. i have a netgear router... i tried to add a service in but it doesnt work. how shall i configure this? i want it so that if anyone types in IP is 80.43.343.20:233 , it will go where i want it to go. (server2).. i know how to configure server2 so that it will respond if this ip and port of 233 is called..

    diagram of what i want:

    type --> http://80.43.343.20 --> server1 done!

    type --> http://80.43.343.20:233 --> server2 not done!

    if this works, i can just change the DNs of my domains to point to 80.43.343.20:233 if i want to be hosted from server 2 or 80.43.343.20 if i want it to be hosted from server1..

    (all hosting of all servers have been taken care of)
    Last edited by da3533; August 17th, 2010 at 04:44 PM.

  4. #4
    Join Date
    Jun 2007
    Location
    Oklahoma City, OK
    Beans
    200
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Multiple Servers

    ah well that's pretty easy with xinetd

    vim /etc/xinetd.d/other_server

    paste
    Code:
    # default: off
    service other_server
    {
            disable = no
            socket_type = stream
            protocol = tcp
            port = 233
            wait = no
            user = nobody
            redirect = 192.168.1.50 80
    }
    vim /etc/services
    paste at the end
    Code:
    #Local services
    
    other_server        233/tcp
    Now run:
    sudo /etc/init.d/xinetd reload

    and connect to http://80.43.343.20:233 in your web browser
    Te audire no possum. Musa sapientum fixa est in aure.

  5. #5
    Join Date
    Jun 2007
    Beans
    1,941

    Re: Multiple Servers

    You can do the xinetd method outlined above.

    However, you can also easily do that with your router.

    Simply disable your DMZ (not a very good idea anyways) and then the router should have a page to forward ports. If you go to portforward.com, they have pretty good guides on how to do this. Basically you tell port 80 to forward to one IP, and port 233 (or whatever) to forward to the other server's IP.

    I just wouldn't advise keeping that DMZ up. You should only open up ports your server is listening on.

  6. #6
    Join Date
    Aug 2010
    Beans
    42

    Re: Multiple Servers

    bloody hell! thanks!

  7. #7
    Join Date
    Aug 2010
    Beans
    42

    Re: Multiple Servers

    Quote Originally Posted by LightningCrash View Post
    ah well that's pretty easy with xinetd

    vim /etc/xinetd.d/other_server

    paste
    Code:
    # default: off
    service other_server
    {
            disable = no
            socket_type = stream
            protocol = tcp
            port = 233
            wait = no
            user = nobody
            redirect = 192.168.1.50 80
    }
    vim /etc/services
    paste at the end
    Code:
    #Local services
    
    other_server        233/tcp
    Now run:
    sudo /etc/init.d/xinetd reload

    and connect to http://80.43.343.20:233 in your web browser

    thanks! it works.

  8. #8
    Join Date
    Aug 2010
    Beans
    42

    Re: Multiple Servers

    Quote Originally Posted by LightningCrash View Post
    ah well that's pretty easy with xinetd

    vim /etc/xinetd.d/other_server

    paste
    Code:
    # default: off
    service other_server
    {
            disable = no
            socket_type = stream
            protocol = tcp
            port = 233
            wait = no
            user = nobody
            redirect = 192.168.1.50 80
    }
    vim /etc/services
    paste at the end
    Code:
    #Local services
    
    other_server        233/tcp
    Now run:
    sudo /etc/init.d/xinetd reload

    and connect to http://80.43.343.20:233 in your web browser

    hey.. it works... but my problems not solved .. i aim was to add this ip with the port number to my account at DynDNS.org . this way i could have had a hostname directing to 80.43.343.20:233 but dyndna.org states that you cant have a port number with the IP as the IP add for this hostname...

    so basically, i wanted, serv2.server22.org to point to 80.43.343.20:233 but no joy


    any suggestions?

  9. #9
    Join Date
    Jun 2007
    Beans
    1,941

    Re: Multiple Servers

    You need to purchase another IP from your provider, unfortunately. Dyndns won't redirect based on port numbers, they must be unique IP addresses.

    I thought you were going to give out the different port numbers for your site... So site1 was google.com:80 and site2 was google.com:233. Not pretty, but I thought you knew what you were getting into

    I'd still recommend collapsing that DMZ as well. Just something to think about.

  10. #10
    Join Date
    Aug 2010
    Beans
    42

    Re: Multiple Servers

    Quote Originally Posted by arrrghhh View Post
    You need to purchase another IP from your provider, unfortunately. Dyndns won't redirect based on port numbers, they must be unique IP addresses.

    I thought you were going to give out the different port numbers for your site... So site1 was google.com:80 and site2 was google.com:233. Not pretty, but I thought you knew what you were getting into

    I'd still recommend collapsing that DMZ as well. Just something to think about.

    im on the process of disabling it but need it for this time while installing everything...

    purchase another IP... hmm.. this is going to cost.. never looked into it.. there must be way round this though, i tried this and failed in the last part. i actually thought they would allow port numbers.. so if you have 20 servers, you will need 20 IPs?

Page 1 of 7 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •