Winsd - Winserver Daemon

Winsd is used to display Network Neighberhood Computers to connecting clients.

------------------------------------------------------------------------------

Copyright (C) 2000 Lineo Australia

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

------------------------------------------------------------------------------


Test Equipment Used
-------------------

A Linux Box running Red Hat Linux 6.1
NETtel 2520 (Dual Ethernet Port Lan and Internet Interface)
Windows 98 Box
2 Hubs
4 Ethernet Cables
Null Serial Cable for access to the NETtel's serial console

3.2 Layout

  Linux Box
192.168.0.200
     |
	  +-----------------+
     |                 |
192.168.0.1            |
  Nettel               |
203.24.151.1           |
     |                 |
     |                 |
203.24.151.20 / 192.168.0.250
 Windows 98   /       VPN

Layout Notes:

Although you would be able to ping 192.168.0.250 from the Linux Box any packets from the Windows 98 VPN Client would be masqueraded by the NETtel in the form 192.168.0.1:60001.

Setting up the test VPN
-----------------------

For test purposes the following will describe how to set up a Windows 98 machine connected to a NETtel which has the winserver on a private address 10.0.0.246. There are many other combinations you could use such as using PoPToP on a Linux machine with different windows operating systems and/or Linux clients. The following is the set up that I used and the instructions to replicate it:

Linux Box Running Winserver
---------------------------

We will assume the Linux Box has an address of:

LAN: 192.168.0.200

Firstly you may have to tweak the source code for your setup. There is a define in common_structures.h called:

#define NETTEL_IP 192.168.0.1

make sure this is set to your lan port of your nettel or the filter function will reject the packet. Firstly make sure SAMBA is not running then run the winserver application:

./ws

Setting up a NETtel from the Linux Box
--------------------------------------

On the CD included with the NETtel use the application /tools/lin_ip_ass to assign the NETtel an IP address (If you have a DHCP server it will assign the address automatically) After the address was assigned you can then access the NETtel's web pages where you should assign it the following permanent addresses:

Internet: 203.24.151.1 
LAN: 	192.168.0.1

At the web configuration page go to PPTP VPN Setup and click on enable PoPToP and change the local and remote IP addresses to that of the local network i.e. for a 192.168.1.0 network:

Local: 192.168.0.254 
Remote:192.168.0.250-253

Select no authentication and click continue.

Now go to AdvancedConfiguration Files. Scroll down to options.pptp and enter:

ms-wins 192.168.0.200 
netmask 255.255.255.0

where 192.168.0.200 represents the winservers address.

Windows 98
----------

We will assume that this box has an address of:

Internet: 203.24.151.20

Firstly go to:

 StartSettingsControl PanelAdd Remove Programs

Then click on the Windows Setup Tab go into Communications and then select VPN Adapter. Windows will then ask you to reboot. After the machine has rebooted go to:
 
My ComputerDial Up NetworkingMake New Connection.  

Change the device to VPN Adapter and then click Next. Then type in the IP address of the PoPToP Server.

Host Name or IP Address: 203.24.151.1

Then click Next then Finish. Now you should see an icon representing this new connection. Double Click on this and Click Connect.  Hopefully if everything goes to plan you should connect. 

Viewing Network Neighborhood
----------------------------

After connecting you should then click on Network Neighborhood. If debugging was turned on for the winserver then you should see the packets being printed on the Linux Box.  The computers on the network and those that were in the configuration file should show up in the Network Neighborhood window. 
