Samba and firewalls, again

Forrest Aldrich forrie at forrie.com
Wed Sep 23 19:36:40 GMT 1998


I didn't get a response from my initial inquiry, so here it is again.

I've read the UNIX-SMB.txt file and have opened ports 137-139, run the server
as root.  When I browse the network on Windoze98, I can see the machine,
but cannot
connect to the share.  If I take the filters down, it works.

Here's what I have (FreeBSD-2.2.7+ipfw):

mask=255.255.255.0

    $fwcmd add pass tcp from ${net}:${mask} to ${ip} 139 setup
    $fwcmd add pass tcp from ${net}:${mask} to ${ip} 138 setup
    $fwcmd add pass tcp from ${net}:${mask} to ${ip} 137 setup
    $fwcmd add pass udp from ${net}:${mask} to ${ip} 139
    $fwcmd add pass udp from ${net}:${mask} to ${ip} 138
    $fwcmd add pass udp from ${net}:${mask} to ${ip} 137
    $fwcmd add pass udp from ${ip} to any 137
    $fwcmd add pass udp from ${ip} to any 138
    $fwcmd add pass udp from ${ip} to any 139
    
What could possibly be missing?  I'm using ${net}:${mask} to restrict
access to it locally.


Thanks.

(please respond to me via email)





More information about the samba mailing list