samba pdc/wins for two networks
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2007
    Location
    European Union - Romania, Bucharest
    Posts
    283
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    samba pdc/wins for two networks

    Hi!

    My Fedora router has three nic's, one for the internet, one for lan and one for the wireless network, which uses hostapd.

    I have set up samba in order to enable windows file sharing from wireless lan to wired lan. Using the samba documentation I have enabled the wins server and wins proxy which should allow met to browse the shares across the networks, which theoretically should do the trick but it doesn't work as expected. I can see the pc's from the other network using windows neighbourhood, but as soon as I access one of them it fails saying that "network path could not be found" or something like this. Tried using windows 7, windows xp and linux for browsing but the result is the same.

    As firewall I have shorewall and the samba specific ports are enabled for both networks.

    Who can help me setup samba for inter-network browsing ???

    Thanks.

    ---------- Post added at 10:46 PM ---------- Previous post was at 01:48 PM ----------

    I have attached the global config section from smb.conf file, maybe it will help

    Code:
    [global]
            server string = Samba Server
            interfaces = eth1, lo, wlan0
            bind interfaces only = Yes
            security = SHARE
            log file = /var/log/samba/%m.log
            max log size = 50
            announce as = NT Workstation
            os level = 99
            lm interval = 10
            preferred master = Yes
            domain master = Yes
            wins proxy = Yes
            wins support = Yes
            remote announce = 192.168.5.255/WORKGROUP 192.168.7.255/WORKGROUP
            create mask = 0666
            case sensitive = No
            preserve case = No
            short preserve case = No
            hide special files = Yes
            map hidden = Yes
            store dos attributes = Yes
    Server: Intel Atom D510 1.66GHz, Kingston 1GB DDR2-800, Intel GMA3150 8MB, Intel D510MO, Ralink RT5370 wifi hotspot

  2. #2
    Join Date
    Aug 2009
    Location
    Waldorf, Maryland
    Posts
    7,345
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: samba pdc/wins for two networks

    Have you enabled the Samba flags in SELinux?

    also note, share (and server) security flags are depreciated.

    Also note - a domain master requires the security be set to "user".

  3. #3
    Join Date
    Feb 2007
    Location
    European Union - Romania, Bucharest
    Posts
    283
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: samba pdc/wins for two networks

    selinux is disabled as it was putting too much of a fight with just about anything.
    Server: Intel Atom D510 1.66GHz, Kingston 1GB DDR2-800, Intel GMA3150 8MB, Intel D510MO, Ralink RT5370 wifi hotspot

  4. #4
    Join Date
    Aug 2009
    Location
    Waldorf, Maryland
    Posts
    7,345
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: samba pdc/wins for two networks

    Turning off security is never a good idea.

  5. #5
    Join Date
    Feb 2007
    Location
    European Union - Romania, Bucharest
    Posts
    283
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: samba pdc/wins for two networks

    I wouldn't turn it off if it would have been easily configurable. I'd rather write kernel modules than configure selinux.

    Like I've said it is off because of too many unresolvable issues and not just with samba, but with httpd and even dnsmasq.
    Server: Intel Atom D510 1.66GHz, Kingston 1GB DDR2-800, Intel GMA3150 8MB, Intel D510MO, Ralink RT5370 wifi hotspot

  6. #6
    Join Date
    Aug 2009
    Location
    Waldorf, Maryland
    Posts
    7,345
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: samba pdc/wins for two networks

    You didn't bother to look. All are working just fine for me.

    The apache controls are well defined and identified.

    The same goes for Samba.

    Don't know about dnsmasq, but the DNS options are there.

  7. #7
    Join Date
    Jul 2005
    Posts
    966
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: samba pdc/wins for two networks

    I also turn off selinux on all my machines.

    Back to the original question, by internetwork do you mean across routers/other sites? If so you may need to open SMB ports through any firewalls between the sites to browse remote network contents. WINS only provides network name resolution, not data pipes.

    IIRC SMB uses ports 137-139 and 445
    ======
    Doug G
    ======

  8. #8
    Join Date
    Feb 2007
    Location
    European Union - Romania, Bucharest
    Posts
    283
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: samba pdc/wins for two networks

    The samba server is also my router, I have opened the ports between the two networks using shorewall but I cannot get a connection.

    ---------- Post added at 06:57 PM ---------- Previous post was at 06:55 PM ----------

    Quote Originally Posted by jpollard
    You didn't bother to look. All are working just fine for me.

    The apache controls are well defined and identified.

    The same goes for Samba.

    Don't know about dnsmasq, but the DNS options are there.
    Now move your web server files (doc root) on to another partition, or create a script that will write to a non-standard, but safe, location. See how SELinux feels about it.
    Server: Intel Atom D510 1.66GHz, Kingston 1GB DDR2-800, Intel GMA3150 8MB, Intel D510MO, Ralink RT5370 wifi hotspot

  9. #9
    Join Date
    Aug 2009
    Location
    Waldorf, Maryland
    Posts
    7,345
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: samba pdc/wins for two networks

    Not a problem.

    All you have to do is label the destination.

    Been there, done that.

  10. #10
    Join Date
    Nov 2008
    Location
    Canada
    Posts
    2,724
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: samba pdc/wins for two networks

    Looking like firewall issues from here. Check your logs and maybe wireshark it out. I wouldn't be surprised if your winbloz clients just don't like it. Maybe you're wireless is starting late and killing it. Try reducing to your two nics and work out from there.

    I do it with selinux enabled, mounted partition with ACLs, across openvpn tunnels, and still use the bind interface directive. But who's counting. Same old problem, didn't read up on one, probably didn't read another.

Similar Threads

  1. WINS in SAMBA
    By Jupitern in forum Servers & Networking
    Replies: 1
    Last Post: 5th May 2009, 04:07 AM
  2. Samba Wins
    By waynetw in forum Servers & Networking
    Replies: 0
    Last Post: 21st September 2007, 11:19 PM
  3. Replies: 0
    Last Post: 16th November 2006, 08:52 AM
  4. Samba wins resolutions not responding
    By scarab02 in forum Servers & Networking
    Replies: 1
    Last Post: 7th July 2005, 05:11 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •