Koozali.org: home of the SME Server

Linksys Router

eManX01

Linksys Router
« on: June 08, 2005, 03:46:22 AM »
I have a little Linksys Router that my cable modem connects to, and my SME Server connects to one of the ports on the router. The router runs DHCP. How do I get my server to display my website on the internet. I also have a domain name through GoDaddy, and I would like to know how to use it with my server.

Offline del

  • *
  • 765
  • +0/-0
Linksys Router
« Reply #1 on: June 08, 2005, 05:12:33 AM »
Dump the router, set sme as server/gateway, plug you cable modem into a second NIC on the server and sign up with dyndns.org (or some other dns provider, I use dyndns because it works and is easy to setup on sme). Go to dyndns.org for more information. I have used this setup for the last couple of years and it works fine.
Regards,
Del :pint:
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

eManX01

Linksys Router
« Reply #2 on: June 08, 2005, 05:15:56 AM »
Thanks for the reply. I'd like to do away with the Linksys, but I have a sister in the other room that requires wireless from my room to hers via the router.

Offline del

  • *
  • 765
  • +0/-0
Linksys Router
« Reply #3 on: June 08, 2005, 05:31:10 AM »
Hi,
I just plugged the router into my hub (used the uplink port), turned off DHCP, gave it a fixed IP (10.0.0.10, my server is 10.0.0.1) and the wireless part still works fine, just make sure you have good security settings in the router. Alternatively if you really want to keep the router you can set up dyndns in the setup panel under the "DDNS" tab. I found this to be unreliable, but I have had no problems with SME. Do you have a static IP? If so it probably would work better. You can then forward the http port to your server, this is done under the "Gaming & Application" tab.
Good luck,
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

eManX01

Linksys Router
« Reply #4 on: June 08, 2005, 05:39:42 AM »
OK. So you had the cable modem connected to the server, then from the server to the router. I gave that a try earlier and had no success, unlesss you have a different topology. Also, how do I know what IP to use for a nameserver for my domain name?
Thanks  :-)

Offline del

  • *
  • 765
  • +0/-0
Linksys Router
« Reply #5 on: June 08, 2005, 03:24:32 PM »
OK, this is what I did:
1. Go to dyndns.org and create an account
2. Connect the router to a PC, use firefox or IE, (does anyone still use IE?) and enter the admin panel of the router.
3.Set the IP address of the router to 10.0.0.10 (you can use the routers 192.168.1.xx range) then turn off the DHCP. Set security settings as you wish.
4. Unplug the router and put it to one side
5. Go to SME's admin panel (NOT server manager) and select option 2 - Configure this server
6. Go through the set up making sure you choose a)server/gateway b)Turn on DHCP c)Choose dydndns.org from the list of dns services - using the account settings you set up in step 1. When it is all configured let SME reboot - make sure your cable modem is connected to the server and your PC's (non wireless) are connected to the network via a switch/hub.
7. When the server has booted, check for connectivity to the internet and go to a connected PC check for a connection to the server (server_IP_address/server-manager).
8. Check all connected PC's have internet access.
9. Now you can plug your router into your switch/hub using a cable from the router's LAN PORT to the hubs UPLINK PORT if your router doesn't have a uplink port you can use a cross-over cable.
10. Boot the wieless connected PC's and they should connect to the wireless router and get an IP address from SME.

Hope this helps.
Q2 "Also, how do I know what IP to use for a nameserver for my domain name?" This is sorted out by dyndns.org, you will have to sign up for the paid service to use your own domain name. You mentioned GoDaddy earlier on, are they hosting it or have you just registered it? If you have just regisered it you can use a free dyndns.org account (yourname.dyndns.org) and then point your real domain to it. GoDaddy offer webdiversion as part of the registration. If yoy want use email let me know as I have set that up also. Good Luck.
Del - Time for a :pint:
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

turnip

Linksys Router
« Reply #6 on: June 12, 2005, 08:53:26 PM »
You need to forward port 80 (http) on the linksys router to the address of the SME box. As for suggestions of dumping the linksys router, there's lots of reasons against that. I actually have a few routers in front of my SME box.

First, I have an ADSL modem, then a netgear router with backup 56k dialup, which forwards everything onto an Asus WL500G wireless router behind it. I have another WL500G in another room, acting as an access point, and my SME box behind that. The first WL500G forwards all the ports the SME box needs. Then I have my internal network behind the SME box.

The result being I can give the netgear router back without reconfiguring my network (it would have been cleaner to set both the asus routers to be access points only, but I didn't always have the netgear, and don't trust it yet), and any wireless clients that connect need a vpn to get to my internal network, so if my wireless network's compromised, someone might steal my bandwidth, but won't get to my data.

In your situation, I'd keep the linksys router (they're great, as long as you don't try to use them as a non-NAT router, as they don't let you have enough firewall rules), and put the SME box behind it, and any pc's you have behind that. Use a VPN if you want to connect wireless clients to the internal network. If your SME box is in Server and Gateway mode, you can tell it to get it's IP using DHCP, and set the IP statically on the linksys router by giving it the SME box's MAC address.

You can find the MAC address of the SME box by typing 'ifconfig', or possibly in the linksys router's arp table.

If you don't have a static ip then you'll need to setup dyndns or similar.

Hope this makes sense.