Results 1 to 4 of 4

Thread: How to configure routing for 2 HTTPS Servers ?

  1. #1
    Join Date
    Aug 2006
    Beans
    93
    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
    Catalunya, Spain
    Beans
    14,558
    Distro
    Ubuntu 18.04 Bionic Beaver

    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 18.04 LTS 64bit

  3. #3
    Join Date
    Aug 2006
    Beans
    93
    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
    Location
    S.H.I.E.L.D. 6-1-6
    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.
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

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
  •