SL Server - redirect website to internal URL with port

Discussion in 'Mac OS X Server, Xserve, and Networking' started by thankins, Dec 12, 2011.

  1. thankins macrumors 6502

    Joined:
    Oct 25, 2007
    #1
    Hi

    We have a camera system that sits at cameras.domain.com:8080 that users access outside the network.

    When we are inside the network how do we redirect the machines to just go to 192.168.1.3:8080?

    I looked through DNS on Server Admin but got lost - any help would be appreciated
     
  2. jackhdev, Jan 3, 2012
    Last edited: Jan 4, 2012

    jackhdev macrumors 6502

    Joined:
    Apr 9, 2011
    Location:
    Bismarck, North Dakota
    #2
    Would Mobile Access suffice? Changing DNS won't work since an internal IP address given to a machine on the outside is no help. Otherwise try VPN.

    Edit: Sorry, misread your question. When you are inside the network, you should just use a DNS server to forward all requests for cameras.domain.com to 192.168.1.3. In the DNS part of Server Admin, click on the "Zones" tab at the top. Then add a primary zone called cameras.domain.com. Add a name server with the same zone and hostname. Then add a Machine Record (A) with the name cameras.domain.com and the IP address 192.168.1.3. You don't need to do anything for the port 8080. It works as long as DNS is correct.
     
  3. jared_kipe macrumors 68030

    jared_kipe

    Joined:
    Dec 8, 2003
    Location:
    Seattle
    #3
    You could put a line in /etc/hosts like this
    192.168.1.3 camera.domain.com

    You would of course need to do that for every machine, and when they go outside the network they would need to remove the line.

    You could accomplish this better with a DNS server on your network, or with a lot of routers.
     
  4. jared_kipe macrumors 68030

    jared_kipe

    Joined:
    Dec 8, 2003
    Location:
    Seattle
    #4
    Wanting BIND to offer different responses based on networks. I know this is possible, but I don't think it is from Server Admin.

    Google BIND split view, or read more here http://www.zytrax.com/books/dns/ch7/view.html
     

Share This Page