Koozali.org: home of the SME Server

SOLVED: advice on test setup (server/gateway) behind router needed

Offline TTown

  • *
  • 30
  • +0/-0
Hello Everybody,

trying to come up with a fall-back solution for olpc's xs server I am testing a server/gateway setup, that for right now has to fit into existing infrastructure, but will later possibly be turned loose...

My usual network setup:

                      cable modem
                              |
                      (some.dynamic.public.ip)
                      router (dhcp server - binding IPs to MACs / with sip & wifi --> some telephones, some laptops)
                      (----------- 192.168.1.1 ----------------)
                       |             |                |
    -------------              |                -------------
   |                                 |                                   |
192.168.1.10        192.168.1.11                    192.168.1.28
SME server           Media server (XP64)         Media Center (XP)
(web / mail/...)


test setup:

                      cable modem
                              |
                       (some.public.ip)
                      router (dhcp server - binding IPs to MACs / with sip & wifi --> some telephones, some laptops)
                       (----------- 192.168.1.1 ----------------)
                       |             |                |                             |
    -------------              |                -------------           ---------------------
   |                                 |                                   |                                         |
192.168.1.10        192.168.1.11                192.168.28                  192.168.1.40
SME server           Media server (XP64)     Media Center (XP)      SME server/gateway
(web / mail/...)                                                                               192.168.1.111
                                                                                                                    |
                                                                                                                switch
                                                                                                                |   |   |
                                                                                        (3(+) x wireless access point, dhcp enabled, IP range 192.168.1.112 - 250)
                                                                                                                     |
                                                                                                 wireless clients requiring dhcp
                                                                                                     

Last night i could ping the router and all other clients from the sme server/gateway.
I also could ping the new sme server/gateway from everyone else. But trying to get to the internet from the new server/gateway did not work. Also trying to get to the server/gateway through the access point(s) didn't work. I also tryed taking out the switch and used a cross-over cable to hook just one AP to the server/gateway but that didn't help.

How do I get the server/gateway to get to the web? I thought I had a DNS problem, but neither 192.168.1.1 (what my router's standard clients use), nor my ISP's DNS addresses did any good.
What does it take to have the server/gateway's wireless clients get IPs from the server/gateway/?
Do I need to run a dhcp server within the server/gateway (lan side) to take care of the wireless APs / clients, or would the router's dhcp server take care of this?

Eventually the server will have to run moodle and dansguardian, but right now it is just the standard clean 7.3 install.


I am lost. Please advise.
Stefan
« Last Edit: March 07, 2008, 03:43:54 PM by TTown »
(fnord)

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: advice on test setup (server/gateway) behind router needed
« Reply #1 on: March 06, 2008, 04:50:11 PM »
  192.168.1.40
SME server/gateway
192.168.1.111
                                                                                                             
Stefan

in a server/gateway setup lan and wan ip must be different.. i.e. you can't use 192.168.1.111 ip.. you have to use something like 192.168.X.Y where X is not 1

finally, your sme server/gateway must have 192.168.1.1 as its default gateway

HTH

Stefano

Offline zatnikatel

  • *****
  • 190
  • +0/-0
Re: advice on test setup (server/gateway) behind router needed
« Reply #2 on: March 06, 2008, 05:01:05 PM »
can you give me some more information you have a cable modem with a router what type of router is it what is your setup on the SME server do you have 2 nics or just one if you only have one nic in the sme server it can only be in server only mode 

Offline TTown

  • *
  • 30
  • +0/-0
Re: advice on test setup (server/gateway) behind router needed
« Reply #3 on: March 06, 2008, 06:07:37 PM »
The Cable Modem is some standard LinkSys (--> Wallmart...), I don't recall its name.
The router is a DrayTek 2910VG (quite fancy).
The test setup is based on a Asus M2N Mobo. Since its NIC (Nvidia nForce 430 MCP built in Gigabit MAC with external Attansic PHY - whatever that means) does not get recognized by the setup I put in 2 US Robotics 10/100 Mbit NICs which work ok ("bringing up eth0 / eth1" [0k], ifconfig shows both, too).
The switch behind the server/gateway is a netgear GS108T.
The APs are Artem Onair ComPoint (older industrial grade 802.11b equipment)

Since the server/gateway is between the 192.168.1.xxx and the 192.168.2.xxx networks, should it provide dhcp services for its 192.168.2.xxx net or would / could the router take care of that?
Should the Swithch and the APs receive their setup information by dhcp?
The wireless clients of this server/gateway setup must use dhcp.

Thank you
Stefan
« Last Edit: March 07, 2008, 03:02:18 PM by TTown »
(fnord)

Offline zatnikatel

  • *****
  • 190
  • +0/-0
Re: advice on test setup (server/gateway) behind router needed
« Reply #4 on: March 07, 2008, 04:58:05 AM »
ok seeing that you router does all the work you need to setup the sme server as server only mode and only use one nic then set it up with a static ip and put the gateway of 192.168.1.1 then the internet will work
if you have set it up as a server/gateway that mode us used for sharing an internet connection you would plug the cable modem into the sme server it would be the router but seeing you have wireless clients setup sme in server only mode
and if you are going to use it for email you need to port forward 25 and 110 to the sme server and use the contrib for fetchmail to pull down your pop email
with your cable modem never heard of linksys making one as i live in australia we only have motorola cable modems out here for optus and telstra cable internet i would say it would be the same
i have a sme server running in server gateway mode with an adsl connection in bidge mode
hope this help you
from Mark

Offline raem

  • *
  • 3,972
  • +4/-0
Re: advice on test setup (server/gateway) behind router needed
« Reply #5 on: March 07, 2008, 06:48:53 AM »
TTown

There is an old Howto for setting up a second (test) server in server gateway mode on a production network.
It may help you
http://www.schirrms.net/sme/SMETestOnProdNet.php
...

Offline TTown

  • *
  • 30
  • +0/-0
Re: advice on test setup (server/gateway) behind router needed
« Reply #6 on: March 07, 2008, 03:00:45 PM »
Hello Everybody,


using neonano's advice I got my test setup working last night. Depending on which AP I connected to (before / after the testserver) i got the correct IPs and DansGuardian blocked sites or didn't. Great!
Now I need to extend the IP pool handed out by the server from ~250 to ~800. Again I am lost. How can I do that? But this seems like something for a new thread.

Again, everybody thanks for your help!

Stefan
(fnord)