Koozali.org: home of the SME Server

WEB and FTP server behind a Netgear router

niki40

WEB and FTP server behind a Netgear router
« on: July 13, 2005, 10:08:28 PM »
Hi:

I bought a Netgear wireless router to act as router and firewall in front of my SME server.
I configured the server as "server only" first and server and gateway after and in both cases I forwarded ports 20, 21 and 80 to the server but I can´t access from outside the LAN in anyway.

Any help?
Regards
Eduardo

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: WEB and FTP server behind a Netgear router
« Reply #1 on: July 13, 2005, 10:33:13 PM »
Quote from: "niki40"

I bought a Netgear wireless router to act as router and firewall in front of my SME server.


You shouldn't have. It will only make your life more difficult.

niki40

Re: WEB and FTP server behind a Netgear router
« Reply #2 on: July 13, 2005, 10:46:42 PM »
Quote from: "CharlieBrady"

You shouldn't have. It will only make your life more difficult.


Ok Charlie, I understood, but I have no choice. Can you help me about how to access my WEB etc etc from outside the network??

Best regards
Eduardo

k_graham

Re: WEB and FTP server behind a Netgear router
« Reply #3 on: July 16, 2005, 04:27:29 AM »
Quote from: "niki40"
I configured the server as "server only" first and server and gateway after and in both cases I forwarded ports 20, 21 and 80 to the server but I can´t access from outside the LAN in anyway.
Eduardo


I have a regular netgear router and had no trouble on a static IP connection. But set as server only and with it attached to only 1 network card. As you also tried server and gateway I am guessing you have 2 network cards. I don't know that it could be done that way.

Also I tried with a SME Router and in that case had to if I recall put it in a DMZ zone which effectively meant the router was no longer a firewall to the SME server. Again this was with only 1 card in the SME server.

I am currently on vacation in Mexico and working from  behind a 2Wire.com brand wireless Router with a notebook, they can be  handy. I could also see a benefit to having a server gateway 2 network card system at work combined with a router if it would work. In this way one could allow internet access to customers for instance yet keep the important business computers firewalled behind the SME server.

Incidentally webmail is great for logging into but you also need to open the https port 443 I think?

If someone has successfuly set up a server gateway system behind a router please share, I'ld like to try it when I get back to work.

Thanks Ken

niki40

Re: WEB and FTP server behind a Netgear router
« Reply #4 on: July 20, 2005, 04:39:16 PM »
Well, it was done  :-D
I made a division in 2 segments.
3 PC´S "and" my SME connected with the WAN network adapter to the Netgear router.
The Netgear has the 192.160.x.x address and the sme get IP from de NG via DHCP client.
In the other side of my SME I used the 10.0.0.x address and other 2 PC´s connected and everythings work fine.
I have my ftp and http server in the SME and forwarding ports from de NG it works fine.

Regards
Eduardo

jerryh

WEB and FTP server behind a Netgear router
« Reply #5 on: July 21, 2005, 10:10:41 AM »
Perhaps this should be a new post but it does follow on.
I'm a newbie, and want to install a similar setup.
Running SME as a server with a 3com combined wireless router & ADSL modem.
Some 2 PC's are connected via wireless & 3 hard wired.

The 3com acts as the hub but obviously is not behind the SME firewall but does have its own
I have a fixed WAN IP, and LAN IP of 192.168.10.1 for the router with fixed 192.168.10.2 for the SME Pc which will be the gateway and act as DHCP server for rest of network.

I will use the 3com firewall to only allow the SME server to access the internet

My question is will this work and ensurev all internet access goes via the SME, and do I need to set the SME server up as a proxy.

Thanks in advance

Jerry

niki40

WEB and FTP server behind a Netgear router
« Reply #6 on: July 21, 2005, 03:14:49 PM »
I think you can do the same as I did but in an oposite way.
The SME has PPPOE and I think you can:
eth0 > connect to internet via PPPOE
eth1 > connect to the LAN and acts as a DHCP server under 192.168.0.x segment
Put the 3com wireless router connected with the WAN plug to the switch where all pcs via cable are connected. The 3com may be setted as "dhcp client sending mac address as client idenfier"
In the LAN setup of the 3com set as dhcp server and the 10.0.0.x segment and 255.0.0.0 mask.
I think this will works fine

Regards
Eduardo