June 29, 2009 at 8:03 am #41749
How does virtual server work, can it forward http requests to different internal servers, based on the header?July 4, 2009 at 2:07 pm #48317
it forwards requests based on port and protocol.
if u have an http server running on local ip 184.108.40.206 anyone on the 220.127.116.11/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 18.104.22.168/24 is on eth1]
Input Interface:ppp0 IP Address:ANY protocol:TCP Local Port:80 remote IP:22.214.171.124 Remote Port:80
Now anyone that connects to ppp0 can access the http server.July 9, 2009 at 10:24 am #48318
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?July 11, 2009 at 4:43 pm #48319
Check this thread, similar issue in the end, maybe it will help uNovember 28, 2009 at 6:34 pm #48320
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
sorry for my bad english
pls reply ASAP (i’m so stressed out to solve these problems)November 29, 2009 at 3:47 pm #48321
Port forwarding works in Routed mode, not in Bridge mode.November 30, 2009 at 1:29 pm #48322
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 🙂November 30, 2009 at 4:09 pm #48323
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.December 1, 2009 at 3:37 pm #48324
JC, ppalias Thanks for your quick response
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…December 2, 2009 at 5:40 pm #48325
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.
You must be logged in to reply to this topic.