I have a LinkSys WRT54GL router, which I would like to attach to my CentOS-5.6 server, to set up a LAN 192.168.2.* . The server is attached to the internet through a Billion modem/router which has a single ethernet outlet. The instructions for the LinkSys router assume that it is being attached directly to an ADSL modem. But for various reasons I want everything to go through my server. I wonder if anyone has set up a system like this? If so, I'd be grateful for advice on how to do it. -- Timothy Murphy e-mail: gayleard /at/ eircom.net tel: +353-86-2336090, +353-1-2842366 s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
2011/4/24 Timothy Murphy <gayleard at eircom.net>:> I have a LinkSys WRT54GL router, > which I would like to attach to my CentOS-5.6 server, > to set up a LAN 192.168.2.* . > The server is attached to the internet > through a Billion modem/router which has a single ethernet outlet. > > The instructions for the LinkSys router > assume that it is being attached directly to an ADSL modem. > But for various reasons I want everything to go through my server.Without any information on what the purpose of such a setup would be, it's close to impossible to give you any recommendations. Is it because you want to use your CentOS system as a firewall? a router? a HTTP proxy? a network sniffer? Or is it because you only have one external ethernet outlet and you want to access the internet on your other systems, while the services on your server still can be accessed from the outside? In the last case, you would normally just put your server on the LAN and do port-forwarding on your router. If it's because you want your server to be "outside" of your LAN, a more correct approach would be to setup a DMZ zone on your router, dedicate one of the LAN ports as DMZ port and connect your server there.> I wonder if anyone has set up a system like this?Perhaps, perhaps not, depends on what the purpose of the system is. Best regards Kenni
That's exactly how I have my home network configured. Had it for many years actually. There's a Linux box that is the central point of the network. It has several network cards: one for the cable modem, another for the WiFi access point, another for the local LAN. On the cable modem, I just get an IP address via DHCP from the provider. The WiFi access point is connected to the server via a loopback Ethernet cable actually. There's no need to use a switch when there are only 2 devices connected. Also, in this setup, there's no point to use a WiFi router - a simple WiFi access point is much better. The Linux server becomes the router. The third network card goes into a switch that connects all the local LAN. The Linux box does NAT for all the networks behind it. Also runs a local DNS cache and stuff like that. -- Florin Andrei http://florin.myip.org/