[Samba] Samba and a firewall
Van Sickler, Jim
vansickj-eodc at Kaman.com
Thu Aug 1 08:57:02 GMT 2002
I have the current hosts/lmhosts copied
to each PC during login to the domain,
then run nbtstar -R to import changes
This is an easy way to keep them current.
e.g.
::OS Check
if not .%WINBOOTDIR%.==.. goto Win9x
if not .%OS%.==.. goto WinNTI
goto end
:Win9x
ECHO Win9x
if exist c:\windows\hosts.old del c:\windows\hosts.old
ren c:\windows\hosts hosts.old
copy \\EODC2\NETLOGON\hosts c:\windows
if exist c:\windows\lmhosts.old del c:\windows\lmhosts.old
ren c:\windows\lmhosts lmhosts.old
copy \\EODC2\NETLOGON\lmhosts c:\windows
nbtstat -R
:WinNTI
ECHO Win NT Intel
if exist %systemroot%\system32\drivers\etc\hosts.old del
%systemroot%\system32\drivers\etc\hosts.old
ren %systemroot%\system32\drivers\etc\hosts hosts.old
copy \\EODC2\NETLOGON\hosts %systemroot%\system32\drivers\etc
if exist %systemroot%\system32\drivers\etc\lmhosts.old del
%systemroot%\system32\drivers\etc\lmhosts.old
ren %systemroot%\system32\drivers\etc\lmhosts lmhosts.old
copy \\EODC2\NETLOGON\lmhosts %systemroot%\system32\drivers\etc
nbtstat -R
Jim
> -----Original Message-----
> From: Dan Vande More [mailto:dvm at gwtr.com]
> Sent: Thursday, August 01, 2002 8:39 AM
> To: Adrian Ciocildau; samba at lists.samba.org
> Subject: RE: [Samba] Samba and a firewall
>
>
> We have a web server in our dmz, and we block all but the
> ports you listed as well.
> Our symptoms were similar, in that we could not do:
>
> \\webserver\apacheshare\
>
> BUT we can do:
>
> \\172.16.0.1\apacheshare\
>
> It is some kind of wins/LMHOSTS/etc issue, but it does not
> bother us, so we haven't taken the time to fix it.
>
> You might see if that helps.
>
> Dan
> -----Original Message-----
> From: Adrian Ciocildau [mailto:adri_l at gmx.net]
> Sent: Thursday, August 01, 2002 9:19 AM
> To: samba at lists.samba.org
> Subject: [Samba] Samba and a firewall
>
>
> Hi guys !
>
> I have a problem and I hope I can get some help here.
>
> I want to run a Samba server on a linux firewall machine.
> This firewall allowa all the udp pachets and also icmp. The
> firewall blocks
> all TCP incomming connection exept on port 22 (ssh).
>
> I have allowed incomming conection on 137, 138, and 139 (TCP)
> ports and I
> stiil get an error message from windows clients. The computer
> appears in the
> net but when I try to browse I get an error: "Network path
> not found !"
>
> I hope the windows machine is using only 137-139 ports to
> open TCP connections
> on the samba server .....
>
>
> looking forward for your help,
>
> Adrian Ciocildau
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
>
More information about the samba
mailing list