[newbie] Using Mandrake 10.1 as DHCP Server

2005-03-08 Thread Christopher Taylor
I currently have a Lynksys Router setup to handle the DHCP on a
192.168.4.0/255.255.255.0 network.  The computers are setup with
192.168.4.1 (the address of the router) as the gateway.  I tried
setting up DHCP on Mandrake and disabled on the router.  The Mandrake
box could access the internet, but the remaining Windows boxes could
not.  The gateway on the Windows boxes was set to 192.168.4.111 which
is the static IP of the Mandrake box.  I tries setting up the Mandrake
box as a proxy (I've been using drakwizard to set these up) using
squid, but the the Windows box still could not access the internet.  I
did change the proxy settings on the Windows box to use ip
192.168.4.111 and the port suggested by drakwizard.  What is it that I
need to do?  My goal is to have everything routed through the Mandrake
box under one firewall.  Eventually I would like to expose the server
to the outside world (using dynamic dhcp) so that I can do some remote
access when I travel (ftp mainly).  Any help would be greatly
appreciated.

-- 
Christopher Taylor - Registered Linux User #383327

If this message is sent to a mailing list please 'Reply to List' or
re-write the To field.
This will save on a lot of duplicate emails going out.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Using Mandrake 10.1 as DHCP Server

2005-03-08 Thread Derek Jennings
On Tuesday 08 March 2005 14:44, Christopher Taylor wrote:
 I currently have a Lynksys Router setup to handle the DHCP on a
 192.168.4.0/255.255.255.0 network.  The computers are setup with
 192.168.4.1 (the address of the router) as the gateway.  I tried
 setting up DHCP on Mandrake and disabled on the router.  The Mandrake
 box could access the internet, but the remaining Windows boxes could
 not.  The gateway on the Windows boxes was set to 192.168.4.111 which
 is the static IP of the Mandrake box.  I tries setting up the Mandrake
 box as a proxy (I've been using drakwizard to set these up) using
 squid, but the the Windows box still could not access the internet.  I
 did change the proxy settings on the Windows box to use ip
 192.168.4.111 and the port suggested by drakwizard.  What is it that I
 need to do?  My goal is to have everything routed through the Mandrake
 box under one firewall.  Eventually I would like to expose the server
 to the outside world (using dynamic dhcp) so that I can do some remote
 access when I travel (ftp mainly).  Any help would be greatly
 appreciated.

The gateway is the box that is physically connected to the internet. That is 
still your Linksys, so you must set 192.168.4.1 as the gateway address 
regardless which box is the DHCP server. (I assume the Windows boxes are also 
on the 192.168.4 subnet)

If you are using Squid proxy, then the Windows clients will not need the 
Linksys as a gateway for browsing, but the Windows clients must be configured 
to use a proxy on 192.168.4.111 port 3128 If you still have problems check  
you do not have a firewall on the Linux box blocking access to the proxy.

BTW: You could keep the Linksys but set it up to do port forwarding to the 
Linux box for your remote access.  Your Linksys manual will describe port 
forwarding. You can still use dynamic DNS (which is what I assume you mean by 
dynamic dhcp) by using ddclient to update dynamic DNS servers with the 
external IP address of the Linksys.

derek

-- 
www.jennings.homelinux.net
http://twiki.mdklinuxfaq.org


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Using Mandrake 10.1 as DHCP Server

2005-03-08 Thread Christopher Taylor
On Tue, 8 Mar 2005 15:06:35 +, Derek Jennings
[EMAIL PROTECTED] wrote:
 On Tuesday 08 March 2005 14:44, Christopher Taylor wrote:
  I currently have a Lynksys Router setup to handle the DHCP on a
  192.168.4.0/255.255.255.0 network.  The computers are setup with
  192.168.4.1 (the address of the router) as the gateway.  I tried
  setting up DHCP on Mandrake and disabled on the router.  The Mandrake
  box could access the internet, but the remaining Windows boxes could
  not.  The gateway on the Windows boxes was set to 192.168.4.111 which
  is the static IP of the Mandrake box.  I tries setting up the Mandrake
  box as a proxy (I've been using drakwizard to set these up) using
  squid, but the the Windows box still could not access the internet.  I
  did change the proxy settings on the Windows box to use ip
  192.168.4.111 and the port suggested by drakwizard.  What is it that I
  need to do?  My goal is to have everything routed through the Mandrake
  box under one firewall.  Eventually I would like to expose the server
  to the outside world (using dynamic dhcp) so that I can do some remote
  access when I travel (ftp mainly).  Any help would be greatly
  appreciated.
 
 The gateway is the box that is physically connected to the internet. That is
 still your Linksys, so you must set 192.168.4.1 as the gateway address
 regardless which box is the DHCP server. (I assume the Windows boxes are also
 on the 192.168.4 subnet)
 
 If you are using Squid proxy, then the Windows clients will not need the
 Linksys as a gateway for browsing, but the Windows clients must be configured
 to use a proxy on 192.168.4.111 port 3128 If you still have problems check
 you do not have a firewall on the Linux box blocking access to the proxy.
 
 BTW: You could keep the Linksys but set it up to do port forwarding to the
 Linux box for your remote access.  Your Linksys manual will describe port
 forwarding. You can still use dynamic DNS (which is what I assume you mean by
 dynamic dhcp) by using ddclient to update dynamic DNS servers with the
 external IP address of the Linksys.
 
 derek
 
 --
 www.jennings.homelinux.net
 http://twiki.mdklinuxfaq.org
 
 
 
 Want to buy your Pack or Services from MandrakeSoft?
 Go to http://www.mandrakestore.com
 Join the Club : http://www.mandrakeclub.com
 
 
 
 
I'll give the 192.168.4.1 gateway a try.  I had the Windows box set to
use the proxy at the right IP and port.  I checked the firewall
settings under the control panel and it showed to let everything
through.  The real trick to exposing isn't the Linksys Router, but the
Westell 2200 DSL modem. This does not seem to want to let anything
through.  I will try googling and see what I can come up with.

-- 
Christopher Taylor - Registered Linux User #383327

If this message is sent to a mailing list please 'Reply to List' or
re-write the To field.
This will save on a lot of duplicate emails going out.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Using Mandrake 10.1 as DHCP Server

2005-03-08 Thread Christopher Taylor
On Tue, 08 Mar 2005 12:08:56 -0600, Mikkel L. Ellertson
[EMAIL PROTECTED] wrote:
 Christopher Taylor wrote:
  I currently have a Lynksys Router setup to handle the DHCP on a
  192.168.4.0/255.255.255.0 network.  The computers are setup with
  192.168.4.1 (the address of the router) as the gateway.  I tried
  setting up DHCP on Mandrake and disabled on the router.  The Mandrake
  box could access the internet, but the remaining Windows boxes could
  not.  The gateway on the Windows boxes was set to 192.168.4.111 which
  is the static IP of the Mandrake box.  I tries setting up the Mandrake
  box as a proxy (I've been using drakwizard to set these up) using
  squid, but the the Windows box still could not access the internet.  I
  did change the proxy settings on the Windows box to use ip
  192.168.4.111 and the port suggested by drakwizard.  What is it that I
  need to do?  My goal is to have everything routed through the Mandrake
  box under one firewall.  Eventually I would like to expose the server
  to the outside world (using dynamic dhcp) so that I can do some remote
  access when I travel (ftp mainly).  Any help would be greatly
  appreciated.
 
 
 UNless you are planning on setting up a proxy server on the Linux box,
 set the gateway setting in the dhcpd config to the address of the
 Linksys box. (192.168.0.1) You will also want to set the name server
 address (DNS). You may want to consider running a name server on the
 Linux box, and having the Windows machines use that. This offers a
 couple of advantages. You can also have it manage the IP addresses for
 the local netowork. It can also save haing to go to the Internet to look
 up the names of common sites. This can make getting to the sites faster.
 You only have to go to the Internet for the first machine that visits
 the site. A second machine on the locak network visiting the site gets
 the address that is stored on the Linux machine.
 
 If you are interested, I will look in my notes for the name of the one I
 used to use. It had nice features like reading the dhcp lease file, and
 adding the machines from there to its database dynamicly.
 
 Mikkel
 --
 
   Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with Ketchup!
 

Mikkel,

My ISP is Verizon Online.  I will have to check to see if they are
blocking, but I don't think so as you will see below.  The Westell
modem is also a router with one port. I tried having the modem
handling the PPoE and the router set to a static IP in the range of
the subnet specified by the modem.The router modem was set with port
forwarding to the router and the router was set with port forwarding
to the linux box (also a static ip on the subnet). At this point I
could ping the assigned dynamic IP (I use http://www.dnsstuff.com). 
The Linksys router showed nothing in its incoming logs.  The Windows
boxes could access internet sites by IP only.  The name lookup was no
longer working.  The linux box was fine.  This was when the Linksys
rep said that the modem had to be in bridge mode.  Once put into
bridge mode, I could no longer ping the assigned IP, but the Windows
boxes could access the named sites.  The router is now handling the
PPoE and DHCP.

My goal is to have the linux box control the other boxes.  I think
that you are right in that I need to set up DNS.  There is a setup for
that in drakwizard, but I do not know what to do with it.  I believe
that it asked me to change the hostname.  I explore more when I get
home.

Thanks for the help everyone.

-- 
Christopher Taylor - Registered Linux User #383327

If this message is sent to a mailing list please 'Reply to List' or
re-write the To field.
This will save on a lot of duplicate emails going out.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Using Mandrake 10.1 as DHCP Server

2005-03-08 Thread Mikkel L. Ellertson
Christopher Taylor wrote:

Mikkel,
My ISP is Verizon Online.  I will have to check to see if they are
blocking, but I don't think so as you will see below.  The Westell
modem is also a router with one port. I tried having the modem
handling the PPoE and the router set to a static IP in the range of
the subnet specified by the modem.The router modem was set with port
forwarding to the router and the router was set with port forwarding
to the linux box (also a static ip on the subnet). At this point I
could ping the assigned dynamic IP (I use http://www.dnsstuff.com). 
The Linksys router showed nothing in its incoming logs.  The Windows
boxes could access internet sites by IP only.  The name lookup was no
longer working.  The linux box was fine.  This was when the Linksys
rep said that the modem had to be in bridge mode.  Once put into
bridge mode, I could no longer ping the assigned IP, but the Windows
boxes could access the named sites.  The router is now handling the
PPoE and DHCP.

My goal is to have the linux box control the other boxes.  I think
that you are right in that I need to set up DNS.  There is a setup for
that in drakwizard, but I do not know what to do with it.  I believe
that it asked me to change the hostname.  I explore more when I get
home.
Thanks for the help everyone.

I would take things in small steps. Get each step working beofre moving 
on the the next step.

If you are going to use the Linux box as a dhcp server, get that set up 
first. You will have to specify the address of the Linksys box as the 
gateway, and you also have to specify the name server as part of the 
dhcp setup. If I remember correctly, the Linksys box acts as a caching 
name server. If so, you can use that as the name server for the initial 
setup. If not, take a look at /etc/resolv.conf - you can use the name 
servers listed there at first.

option routers192.168.0.1;
option domain-name-servers192.168.0.1;
If you are running Samba on the Linux box, and it provides a Wins 
server, you may want to add:

option netbios-name-servers   IP of Linux box;
You may want to look into running dnsmasq on the Linux box, and having 
the Windows boxes use the Linux box as their name server.

http://www.routerlinux.com/docs/manual/man8/dnsmasq.8.html
I like it because it will read the /etc/hosts file on the Linux box, and 
add that to its database, as well as watching /var/lib/dhcp/dhcp.leases 
and adding hosts assigned IP addresses there. It works great for small 
networks. I have not tried it on a large network. It also works good 
with dialup connections.

Once you have this working, set up the services you want to run on the 
Linux box, and make sure you can access them from other machines on the 
local network. That way, you will know if you have any firewall issues, 
or configuration problems. One of the first services I would configure 
is ssh.

Configure the Linksys box to forward incomming ssh connections to the 
Linux box. Try connecting from a remote host. Is it working? If not, 
check the logs on the Linux box to see if the connection made it that 
far. If not, double check the Linksys box to make sure the changes are 
there. I have noticed that some routers will show the changes when using 
Firefox, but if you refresh the page, they didn't take.

As far as the mode of the modem and router, I would let the modem handle 
PPPoE, and run the Linksys box set for a dynamic IP WAN connection. But 
this is more my prefference then anything else. You should be able to 
set it up, and make it work ether way.

Mikkel
--
  Do not meddle in the affairs of dragons,
for you are crunchy and taste good with Ketchup!

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com