Results 1 to 4 of 4

Thread: How to configure routing for 2 HTTPS Servers ?

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Beans
    89
    Distro
    Ubuntu

    How to configure routing for 2 HTTPS Servers ?

    Right now we have one DSL Line into the Office (Small office setup)

    The DSL -> Modem -> Netgear Router (Router acts as DHCP Server)

    Right now the Router forwards Port 80 to the Ubuntu Box.
    and via UPnP forwards Port 443(HTTPS) & 4125(RWW) to the Windows Home Server.

    The Windows Homer server calls "home" to configure the remote access to ourname.homeserver.com

    We then use the ourname.homeserver.com with a CNAME lookup to forward traffic from subdomain.ourdomain.com to Our Linux Server.

    So far so good, All the above is actually working, and any ports I need for other applications (Like Metor) get forwarded to the Linux server as expected.


    Now the issue.

    We want to secure our subdomain.ourdomain.com but that port is forwarded to the Windows Home server ??

    What do I need to do to configure the Ubuntu Box so that any HTTPS or HTTP traffic request from inside our outside the local network for ourname.homeserver.com gets sent to the Windows Home server while all other traffic is handled by the Linux Box ??

    Or is this not really feasible?

  2. #2
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to configure routing for 2 HTTPS Servers ?

    So, you want to configure the router to forward ports 443 and 4125 to your ubuntu server and then the ubuntu server to forward that traffic immediately to the windows server?
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  3. #3
    Join Date
    Aug 2006
    Beans
    89
    Distro
    Ubuntu

    Re: How to configure routing for 2 HTTPS Servers ?

    Quote Originally Posted by darkod View Post
    So, you want to configure the router to forward ports 443 and 4125 to your ubuntu server and then the ubuntu server to forward that traffic immediately to the windows server?
    Correct, Though I could have 4125 forward directly to the Windows Server as I don't think Ubuntu would ever be using port 4125.

  4. #4
    Join Date
    Nov 2008
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How to configure routing for 2 HTTPS Servers ?

    Quote Originally Posted by pgp_protector View Post
    Right now we have one DSL Line into the Office (Small office setup)

    The DSL -> Modem -> Netgear Router (Router acts as DHCP Server)

    Right now the Router forwards Port 80 to the Ubuntu Box.
    and via UPnP forwards Port 443(HTTPS) & 4125(RWW) to the Windows Home Server.

    The Windows Homer server calls "home" to configure the remote access to ourname.homeserver.com

    We then use the ourname.homeserver.com with a CNAME lookup to forward traffic from subdomain.ourdomain.com to Our Linux Server.

    So far so good, All the above is actually working, and any ports I need for other applications (Like Metor) get forwarded to the Linux server as expected.


    Now the issue.

    We want to secure our subdomain.ourdomain.com but that port is forwarded to the Windows Home server ??

    What do I need to do to configure the Ubuntu Box so that any HTTPS or HTTP traffic request from inside our outside the local network for ourname.homeserver.com gets sent to the Windows Home server while all other traffic is handled by the Linux Box ??

    Or is this not really feasible?
    something like
    Code:
    iptables -t nat -A PREROUTING -s 10.0.0.0/8 -p tcp --dport 80 -j DNAT --to ip-address-of-windows-server:80
    Code:
    iptables -t nat -A PREROUTING ! -s 10.0.0.0/8 -p tcp --dport 80 -j DNAT --to ip-address-of-windows-server:80
    replace 10.0.0.0/8 with your subnet mask and network
    Last edited by sandyd; November 16th, 2012 at 08:28 PM.
    Ubuntu Forums Moderation Staff || SandyDNET
    Twitter: @CatchesAStar | Last.fm
    So don't be ashamed to wear your crown, you're a king you're a queen inside and out

Tags for this Thread

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
  •