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 withMetaROUTERsupport (v3.21 minimum)
- Uploaded theOpenWRTimage provided by雷竞技网站
- Followed the Wiki instructions for setting up theMetaROUTER
- 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: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:Code:Select all
wins support = yes
- Start sambaCode:Select all
root@OpenWRT: / # /etc/init.d / samba开始
- 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!