Virtual Server

Home Page Forums Network Management ZeroShell Virtual Server

This topic contains 8 replies, has 0 voices, and was last updated by  thegmin 9 years, 2 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #41749

    thegmin
    Member

    How does virtual server work, can it forward http requests to different internal servers, based on the header?

    #48317

    JC
    Member

    it forwards requests based on port and protocol.
    if u have an http server running on local ip 1.1.1.2 anyone on the 1.1.1.0/24 network can access the site, no other network can see the server.
    now on your ZS setup the virtual servers [assuming you use pppoe as your internet on eth0, your 1.1.1.0/24 is on eth1]
    Input Interface:ppp0 IP Address:ANY protocol:TCP Local Port:80 remote IP:1.1.1.2 Remote Port:80
    Now anyone that connects to ppp0 can access the http server.

    #48318

    thegmin
    Member

    Back again, was on a trip 🙂
    Ok so I did the port redirection, but something just doesnt fit, I redirected all public port 80 access to a http server with 10.10.10.3 IP on port 80. OK so far so good, but when i try any domain, I end up starring at zeroshell’s login page. Cuz it also uses port 80. So do i have to change the port of the zeroshell web interface or something else?

    #48319

    JC
    Member

    Check this thread, similar issue in the end, maybe it will help u

    http://www.zeroshell.net/eng/forum/viewtopic.php?t=1478

    #48320

    zerone
    Member

    @thegmin wrote:

    Back again, was on a trip 🙂
    Ok so I did the port redirection, but something just doesnt fit, I redirected all public port 80 access to a http server with 10.10.10.3 IP on port 80. OK so far so good, but when i try any domain, I end up starring at zeroshell’s login page. Cuz it also uses port 80. So do i have to change the port of the zeroshell web interface or something else?

    sorry JC, i want to ask you some questions.
    is it true, if i had only 1 Ethernet card in Zeroshell (ETH0) and my PPP0 is from modem ADSL on ETH0 (bridging mode) then forwarding port (virtual server) function didn’t work?

    cause i have tried that and never got work! 😡

    – port forwarding only works if destination local remote ip is zeroshell’s private ip

    thanks
    sorry for my bad english

    pls reply ASAP (i’m so stressed out to solve these problems)

    #48321

    ppalias
    Member

    Port forwarding works in Routed mode, not in Bridge mode.

    #48322

    JC
    Member

    you really should have 2 NIC’s in your server, if ppp0 is on eth0 how do you connect to the network? you need the router between the modem and the LAN to successfully forward ports and protect your LAN.
    and dont forget to listen to ppalias as well, he knows his stuff 🙂

    #48323

    ppalias
    Member

    It could work with only 1 NIC if ZS can setup a PPPoE over a VLAN interface. For example to have ppp0 on ETH00.1 and LAN on ETH00.2 . However I haven’t tried that yet.

    #48324

    zerone
    Member

    JC, ppalias Thanks for your quick response

    @ppalias wrote:

    Port forwarding works in Routed mode, not in Bridge mode.

    in my case i’ve said “Bridging Mode” is not really bridging..

    i mean that i set my modem ADSL on eth0 with bridge mode
    so i can dial to my PPPOE service with ZS…

    without adding NIC or Vlan now i can forward port (ZS) to LAN Server..(web server, etc) the problem is Captive Portal.

    I have to give a Free Authorized Clients (CaptivePortal) my Webserver on my LAN…

    thanks guys…

    #48325

    ppalias
    Member

    I am not sure I fully understand your problem here. Make a drawing of the network topology, where the clients are, where the server is and the flow of the traffic you want to achieve.

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.