I've managed to make this work as I desired, so I felt that it would be nice to share!
Scenario:
There's a LAN with multiple computers in WORKGROUP configuration.
This LAN uses a Mikrotik router for the Gateway (NAT).
The Gateway Mikrotik provides PPTP termination for work-from-home staff.
The work-from-home staff want to browse network shares & printers by name i.e. \\computername\sharename\
To resolve this situation it's important to understand that "windows file sharing" name resolution in a workgroup setting works by UDP broadcasts, and these broadcasts can't transit over the PPTP connection.
The solution is a WINS server. However, Mikrotik doesn't nativly provide a WINS server and in this context you probably don't want to install a "Windows Server" for its' WINS function (non-server versions of windows don't have a WINS server).
To resolve this, I:
- Installed a version of Mikrotik with MetaROUTER support (v3.21 minimum)
- Uploaded the OpenWRT image provided by Mikrotik
- Followed the Wiki instructions for setting up the MetaROUTER
- Created a bridge group, adding ether1 to the group
- Added one interface to the MetaROUTER as a 'dynamic' interface, setting its' bridge to 'bridge1'
- Set 'bridge1' and 'ether1' to PROXY-ARP (will not work without it!)
- Connect to the MetaROUTER console and install the samba packages by doing:
Code: Select all
root@OpenWRT:/# opkg install http://downloads.openwrt.org/kamikaze/8.09.1/ifxmips/packages/samba-common_2.0.10-4.1_mips.ipk http://downloads.openwrt.org/kamikaze/8.09.1/ifxmips/packages/samba-server_2.0.10-4.1_mips.ipk
- Update the ethernet configuration by editing /etc/config/network (on the OpenWRT) to read:
Note the removal of the "bridge" option. Set the IP addressing to whatever you want it to be.Code: Select all
# Copyright (C) 2006 OpenWrt.org config interface loopback option ifname lo option proto static option ipaddr 127.0.0.1 option netmask 255.0.0.0 config interface lan option ifname eth0 option proto static option ipaddr 192.168.0.2 option netmask 255.255.255.0 option gateway 192.168.0.1
- Edit the Samba configuration and add:
I also removed the /tmp share.Code: Select all
wins support = yes
- Start samba Code: Select all
root@OpenWRT:/# /etc/init.d/samba start
- Change my PPTP and DHCP profiles to supply the WINS server
Code: Select all/ip dhcp-server network set 0 wins-server=192.168.0.2 /ppp profile set 1 wins-server=192.168.0.2
This should be everything!
I would like to say Thanks to the Mikrotik staff for providing an OpenWRT patch and download image!