Koozali.org: home of the SME Server

SME Server as gateway, with Linksys router as modem?

Offline piedie

  • ***
  • 58
  • +0/-0
SME Server as gateway, with Linksys router as modem?
« on: March 12, 2007, 11:38:51 AM »
Hello everybody. (And also: {newbie-alert} and {bad english-alert}!)

I am installing SME server in a small company where the used to have a Linksys modem/router (WAG200) to give all clients internet-access. (About 6 clients). I wanted to use the SME server as gateway, so that I could access the server from outside of the network, to be able to reach the mailserver etcetera. Therefore, I wanted to use the Linksys as modem only, so I disabled almost every function (wireless, dhcp) Also, I made a DMZ for SME server.

The problem is, that I do manage to get internet to my clients, but only for lets say 45 seconds. After that, connection drops, while the modem is still connected. Then also the serverconsole fails in connecting to the internet. After reboot it works fine again, (both on server and clients) but again only for so many seconds. I now set it up as server-only mode, it works quite fine, but I am not really sure wheter i can use the mail server capability.

Does anybody have any idea what this may be? Any tips for setting up the network with my Linksys modem/router as connection to internet? Any general hints maybe?

Thank you very much.


{/newbie-alert}
{/bad english-alert}

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
SME Server as gateway, with Linksys router as modem?
« Reply #1 on: March 12, 2007, 12:07:49 PM »
Don't set the server in server/gateway and put it in a DMZ.
Use one of the next two options:
- use server as gateway and configure your router as an access point only (it works great on my network)
- use server as server only and open the apropriate ports on your router (80,... what you use and need)

One of the problems could be a bad NIC or lack of RAM so could you also put your server's specs.
"It should just work" if it doesn't report it. Thanks!

Offline piedie

  • ***
  • 58
  • +0/-0
SME Server as gateway, with Linksys router as modem?
« Reply #2 on: March 12, 2007, 05:57:03 PM »
The server is brand new, with 1 Gb of RAM, so I'm guessing that that is not the problem. I put in two PCI NIC's, because SME wouldn't recognize the built-in NIC on the Asus motherbord. Both are the same, Realtek chipset, one of them is old however, but I don't think it is broken, it was working when I put it in, and it did work, although it was just for some seconds. More specs tomorrow when I am back there.

Question in reply to your server-only suggestion: could I still use the mailserver capabilities of the server when it is in server only mode?

Thanks!

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
SME Server as gateway, with Linksys router as modem?
« Reply #3 on: March 12, 2007, 06:47:41 PM »
Yes the server will still function normaly but it has to be in server/gateway mode if you want to use the firewall. If you keep it in server mode make sure that you use another firewall in front of your server.
"It should just work" if it doesn't report it. Thanks!

Offline piedie

  • ***
  • 58
  • +0/-0
SME Server as gateway, with Linksys router as modem?
« Reply #4 on: March 12, 2007, 07:51:05 PM »
... which can be that Linksys, right?

Which ports would I have to open and link to SME Server?

Thank you!

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
SME Server as gateway, with Linksys router as modem?
« Reply #5 on: March 12, 2007, 09:35:58 PM »
Well it depends on what you use...

22- SFTP
80 -HTTP
443 - HTTPS
993 - IMAPS
995 - POP3S

Theese should be enough.

Now just put your router in front of your server and put the server in server only mode. Then forward all the ports to your server.
"It should just work" if it doesn't report it. Thanks!

Offline gippsweb

  • *****
  • 232
  • +0/-0
    • Wots I.T.?
SME Server as gateway, with Linksys router as modem?
« Reply #6 on: March 16, 2007, 07:01:07 AM »
We use a Billion instead of a Linksys and have bridged the modem and just use PPPoE to connect to the internet from the SME machine.
I find this a lot more stable than using the modem standalone.
And also stops doubling up on any port forwarding you may need to do.

Offline piedie

  • ***
  • 58
  • +0/-0
SME Server as gateway, with Linksys router as modem?
« Reply #7 on: March 27, 2007, 02:12:06 PM »
But will a Linksys wag200g be able to do that? It is not manufactured to act as modem only....

Offline gippsweb

  • *****
  • 232
  • +0/-0
    • Wots I.T.?
SME Server as gateway, with Linksys router as modem?
« Reply #8 on: March 28, 2007, 12:24:36 AM »
Yes it will do it, but you will lose all it's functionality and it will just act like a dumb modem. ie, no wireless.

Offline piedie

  • ***
  • 58
  • +0/-0
SME Server as gateway, with Linksys router as modem?
« Reply #9 on: April 03, 2007, 10:37:11 AM »
I know, but i have an AP for that. That way my server can work in gateway mode...

Offline hordeusr

  • ***
  • 68
  • +0/-0
SME Server as gateway, with Linksys router as modem?
« Reply #10 on: April 05, 2007, 09:22:34 PM »
Maybe it's just me, but I don't see the advantage of using SME as a gateway if you already have a gateway/firewall set-up and working.  What kind of email access do you want remotely?  Port forward 443 and they can have webmail access.  Port 25 so you can receive email into the SME from the outside world.

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
SME Server as gateway, with Linksys router as modem?
« Reply #11 on: April 05, 2007, 10:48:10 PM »
Quote
if you already have a gateway/firewall set-up and working

Well the advantage is ease of opening ports. My router doesn't even open or forward ports when i instruct him so i have demoted him to AP only duty.  :lol:
"It should just work" if it doesn't report it. Thanks!

Offline hordeusr

  • ***
  • 68
  • +0/-0
SME Server as gateway, with Linksys router as modem?
« Reply #12 on: April 09, 2007, 04:25:04 PM »
In that case I don't blame you.  That's not much of a router anyway....

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
SME Server as gateway, with Linksys router as modem?
« Reply #13 on: April 09, 2007, 06:15:41 PM »
Well i needed a wlan router and i got Belkin which (even after firmware upgrade and contacting tech support) doesn't respond to some ports (standard server ports - 80,21...). But SME does a better job routing trafic.
"It should just work" if it doesn't report it. Thanks!

Offline del

  • *
  • 765
  • +0/-0
SME Server as gateway, with Linksys router as modem?
« Reply #14 on: April 09, 2007, 06:56:50 PM »
Hi All,

Quote
But SME does a better job routing trafic.

I haven't found a router that does ddns properly either :wink: SME does ddns without a problem :D

Regards,
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline p-jones

  • *
  • 594
  • +0/-0
SME Server as gateway, with Linksys router as modem?
« Reply #15 on: April 10, 2007, 08:25:52 PM »
Piedie

Setting up your SME and putting it into a DMZ should work just fine. You then rely on SME as the router and firwall and life does become a bit easier.  I have done this successfully with Billion, D-Link and Dynalink Routers as it avoids the double-nat issues and has all ports on the outward facing NIC available from outside

I have also successfully used DHCP bridging (DHCP Spoofing or half-bridge) and set the outward facing NIC in SME to DHCP. This is a variant of the PPPoE mentioned above. This automatically gives the outward NIC the public IP. This method has a few more issues than above.

These experiences tend to neutralise some of the comments above. They also more fully exploit the features os SME in server - gateway mode.

The issue of whether the server and firewall should be in the same box is seperate issue

I had less success when I used a Zyxel 660 wireless and ADSL router even though the capabilities of that router were similiar. Dropping out was one of the issues.  After doing some reading, I found that disabling wireless only really turned on or off the wireless reciever/transmitter, leaving the IP routing/filtering rules the same. These rules differ from a standard router because of the additional interface (the wireless interface) which is intended to face inwards but in the case of an SME server in gateway mode, ends up between the server and the router.

I think you would do better if you were able to use a different router without the wireless interface. You might also gain some additional leads by browsing the IPCop forums. www.ipcop.org.
...