Windows file sharing between two interface(wireless and lan)

So the main problem is that I have NOT file sharing between LAN and wifi (wlan1) interface!
For exmaple:
Pc1 win7 have:192.168.50.1 ip address (lan ethernet)
laptop win7 have 192.168.60.1 ip address (wlan1)
I can ping from PC1 ip address 192.168.60.1
I can ping from laptop ip address 192.168.50.1

But when I try to ping with computer name:

ping pc1

or

ping laptop

I have timeout! WHY?

Second problem is that I can not access windows file sharing. Can not browsing PC.
When I go to windows network through windows explorer the comuters won’'t appears in list!
Why?
What do I need to do to have file sharing and computer browsing?
Firewalls on booth PC and laptops are disabled!

It is important for me that all wifi devices which connect to wlan gets ip from pool different than LAN pool!

Here is my config:
/interface> print
Flags: D - dynamic, X - disabled, R - running, S - slave

NAME TYPE MTU L2MTU MAX-L2MTU

0 R LAN ether 1500
1 R ADSL ether 1500
2 R wlan1 wlan 1500 2290
[/code]

/ip address> print
Flags: X - disabled, I - invalid, D - dynamic
 #   ADDRESS            NETWORK         INTERFACE
 0   ;;; added by setup
     192.168.50.99/24   192.168.50.0    LAN
 1   192.168.60.98/24   192.168.60.0    wlan1
 2 D 192.168.55.1/24    192.168.55.0    ADSL



/ip dhcp-server> pri
Flags: X - disabled, I - invalid
 #   NAME                  INTERFACE                 RELAY           ADDRESS-POOL                 LEASE-TIME ADD-ARP
 0   wifi                  wlan1                                     wifi                         3d
 1   server1               LAN                                     Local                        3d



/ip dhcp-client> pri
Flags: X - disabled, I - invalid
 #   INTERFACE                                       USE-PEER-DNS ADD-DEFAULT-ROUTE STATUS        ADDRESS
 0   ADSL                                            yes          yes               bound         192.168.55.1/24



/ip pool> pri
 # NAME                                                                              RANGES
 0 Local                                                                             192.168.50.1-192.168.50.15
 1 wifi                                                                              192.168.60.20-192.168.60.25



/ip dns> pri
                servers:
        dynamic-servers: 8.8.4.4,208.67.222.222
  allow-remote-requests: yes
    max-udp-packet-size: 4096
             cache-size: 2048KiB
          cache-max-ttl: 1w
             cache-used: 141KiB



/ip firewall nat> pri
Flags: X - disabled, I - invalid, D - dynamic
 1   chain=srcnat action=masquerade out-interface=ADSL



FILTER RULES ARE EMPTY!



/ip route> pri
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 ADS  0.0.0.0/0                          192.168.55.99             0
 1 ADC  192.168.50.0/24    192.168.50.99   LAN                       0
 2 ADC  192.168.55.0/24    192.168.55.1    ADSL                      0
 3 ADC  192.168.60.0/24    192.168.60.98   wlan1                     0

Thx for helping me!

Problem is probably just with the names, because they are broadcasted on subnet and therefore doesn’t reach to another subnets.
Try to access the computer with IP address instead of name (enter to explorer addressbar \192.168.50.1).
For the names you can setup DNS server on RouterBoard (maybe there is better solution).

The problem is in your masquerade rule - you have not specified an outbound interface, so router OS is doing a masquerade between the LAN and WLAN interfaces. This will block SMB. Add an out-interface to masq rule and it should all work.

Thx for help..
But I need file browsing with pc name.
What is the tip?
How to setup DNS local server? Can you help?

First, thx for helping me.
I tried.. with this rule:

 /ip firewall nat> pri
Flags: X - disabled, I - invalid, D - dynamic
 1   chain=srcnat action=masquerade out-interface=ADSL
 2   chain=srcnat action=masquerade out-interface=LAN

But nothing happend!
Try disconnect booth of pc from lan and wifi to apply new setup and still nothing. :frowning:
The MAIN problem is that I can not se my WORKGROUP with 5 PCs in LAN interface from laptop (wan1)
Any other tip for my problem?

DNS server will allow you to access computers by name, but NetBIOS discovery is more complicated. It isn’t designed to work this way.
My idea is to do something like ARP-proxy but for NetBOIS. I mean that you catch NetBIOS broadcasts on Routerboard and forward (and translate broadcast address) to second subnet.
But this isn’t real solution, just ugly workaround and i’m not sure if this will work or even if it’s possible. Solution is to use WINS server, but then you will need Windows server and some knowledge about that.

I can’'t belive that is so complitated!
It must be some simple solution in firewall!
Maybe I will out this post in advanced topic.

I have seen this problem many times - remove masq rule 2 as posted - you DON’T want masq onto LAN - this is what is stopping you see your workgroup

No mate..
The second rule in NAT was put because of someone suggest me to try this!
I use without it, but today I added just to try!
SO any other solution?

My apologies - just read your original post again - I clearly did not read it correctly and had assumed the two interfaces were bridged - if you want netbios to pass, both interfaces need to be part of the same L2 network - NetBIOS is designed this way - it won’t pass through ANY router.

I setup SAMBA to work as WINS and I can pinf pc and laptop by hostname..
Only problem is that I still can not browse through network :frowning:
How to setup SAMBA for this?

Add Ethernet and WLAN to bridge and use same one up range



Well - looks likes your options are limited - perhaps you could convince Microsoft to release a custom version of NetBIOS for you LAN requirements :wink:

Very funny!