Re: [Samba] Samba ports

2012-10-09 Thread Andrew Bartlett
On Tue, 2012-10-09 at 19:06 -0300, Marcio Oli wrote:
> Anybody could help me with this entries in my machines logs:
> 
> [2012/10/09 14:59:33.092831,  0] lib/util_sock.c:474(read_fd_with_timeout)
> [2012/10/09 14:59:33.093013,  0]
> lib/util_sock.c:1441(get_peer_addr_internal)
>   getpeername failed. Error was Ponto final de transporte não está
> conectado  (some logs in portuguese, so the translation is
> so so: Error was transport endpoint is not connected)
>   read_fd_with_timeout: client 0.0.0.0 read error = Conexão fechada pela
> outra ponta.( ...: connection closed by other peer)
> 
> Why this appears frequently?
> 
> I had already heard that this is a problem with a connection about the
> windows clients. Is this true?
> In my smb.conf:
>  smb ports = 139 445

We have since made this message less prominent.  The windows client will
connect to both ports, and then drop one connection.  It is harmless.

Andrew Bartlett

-- 
Andrew Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

[Samba] Samba ports

2012-10-09 Thread Marcio Oli
Anybody could help me with this entries in my machines logs:

[2012/10/09 14:59:33.092831,  0] lib/util_sock.c:474(read_fd_with_timeout)
[2012/10/09 14:59:33.093013,  0]
lib/util_sock.c:1441(get_peer_addr_internal)
  getpeername failed. Error was Ponto final de transporte não está
conectado  (some logs in portuguese, so the translation is
so so: Error was transport endpoint is not connected)
  read_fd_with_timeout: client 0.0.0.0 read error = Conexão fechada pela
outra ponta.( ...: connection closed by other peer)

Why this appears frequently?

I had already heard that this is a problem with a connection about the
windows clients. Is this true?
In my smb.conf:
 smb ports = 139 445


Thanks,
-- 
Marcio Oliveira.
"Tudo concorre para o bem daqueles que amam à Deus." (Rom 8,28)
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] samba ports blocked by isp

2002-04-26 Thread Nathan Lutchansky

Win2k and WinXP will automatically try to connect to port 445 in addition 
to port 139.  Earlier versions of Windows like NT, ME, 9x aren't able to 
use port 445 at all.

To use port 445 with smbd, you need to put an entry in /etc/inetd.conf 
that looks liks this:

microsoft-ds stream tcp nowait root /usr/local/samba/sbin/smbd smbd

Make sure the path is right, and *don't* use the -D flag!  Also, if you 
don't have microsoft-ds in your /etc/services, you'll need to add it as 
tcp/445.

If you don't have inetd, you probably have some replacement like xinetd or 
rlinetd, and you need to figure those out yourself.  :-)  -Nathan

On Fri, Apr 26, 2002 at 07:48:09AM -0500, Barry Smoke wrote:
> is there something special I need to make this work on both ends
> or should this work by default?
> 
> On Fri, 2002-04-26 at 07:02, Nathan Lutchansky wrote:
> > On Wed, Apr 24, 2002 at 04:55:56PM -0500, Gerald Carter wrote:
> > > On Wed, 24 Apr 2002, Barry Smoke wrote:
> > > 
> > > > Is it possible to map a drive to a samba share over the internet,
> > > > through an isp that blocks the samba ports... I know with samba, I can
> > > > specify a port, but what about a windows client? Can I change what port
> > > > a windows machine looks to for samba/smb for a particular share only?
> > > 
> > > You really don;t want to do this.  It is **so** insecure.
> > 
> > Why is that?  As long as you're using encrypted passwords and you're not 
> > transferring sensitive data, what is insecure about it?
> > 
> > > Setup a VPN it is it necessary to share files using CIFS
> > > across the 'Net.
> > 
> > If the ISP only blocks ports 137-139, connecting on port 445 would work,
> > provided the client is a Win2k or WinXP box.  Works fine on Road Runner
> > here.  -Nathan
> > 
> > -- 
> > +---+-++
> > | Nathan Lutchansky | [EMAIL PROTECTED] |  Lithium Technologies  |
> > +--+
> > |  I dread success.  To have succeeded is to have finished one's   |
> > |  business on earth...  I like a state of continual becoming, |
> > |  with a goal in front and not behind. - George Bernard Shaw  |
> > +--+
> 
> 
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba

-- 
+---+-++
| Nathan Lutchansky | [EMAIL PROTECTED] |  Lithium Technologies  |
+--+
|  I dread success.  To have succeeded is to have finished one's   |
|  business on earth...  I like a state of continual becoming, |
|  with a goal in front and not behind. - George Bernard Shaw  |
+--+



msg01232/pgp0.pgp
Description: PGP signature


Re: [Samba] samba ports blocked by isp

2002-04-26 Thread Barry Smoke

is there something special I need to make this work on both ends
or should this work by default?

On Fri, 2002-04-26 at 07:02, Nathan Lutchansky wrote:
> On Wed, Apr 24, 2002 at 04:55:56PM -0500, Gerald Carter wrote:
> > On Wed, 24 Apr 2002, Barry Smoke wrote:
> > 
> > > Is it possible to map a drive to a samba share over the internet,
> > > through an isp that blocks the samba ports... I know with samba, I can
> > > specify a port, but what about a windows client? Can I change what port
> > > a windows machine looks to for samba/smb for a particular share only?
> > 
> > You really don;t want to do this.  It is **so** insecure.
> 
> Why is that?  As long as you're using encrypted passwords and you're not 
> transferring sensitive data, what is insecure about it?
> 
> > Setup a VPN it is it necessary to share files using CIFS
> > across the 'Net.
> 
> If the ISP only blocks ports 137-139, connecting on port 445 would work,
> provided the client is a Win2k or WinXP box.  Works fine on Road Runner
> here.  -Nathan
> 
> -- 
> +---+-++
> | Nathan Lutchansky | [EMAIL PROTECTED] |  Lithium Technologies  |
> +--+
> |  I dread success.  To have succeeded is to have finished one's   |
> |  business on earth...  I like a state of continual becoming, |
> |  with a goal in front and not behind. - George Bernard Shaw  |
> +--+



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] samba ports blocked by isp

2002-04-26 Thread Nathan Lutchansky

On Wed, Apr 24, 2002 at 04:55:56PM -0500, Gerald Carter wrote:
> On Wed, 24 Apr 2002, Barry Smoke wrote:
> 
> > Is it possible to map a drive to a samba share over the internet,
> > through an isp that blocks the samba ports... I know with samba, I can
> > specify a port, but what about a windows client? Can I change what port
> > a windows machine looks to for samba/smb for a particular share only?
> 
> You really don;t want to do this.  It is **so** insecure.

Why is that?  As long as you're using encrypted passwords and you're not 
transferring sensitive data, what is insecure about it?

> Setup a VPN it is it necessary to share files using CIFS
> across the 'Net.

If the ISP only blocks ports 137-139, connecting on port 445 would work,
provided the client is a Win2k or WinXP box.  Works fine on Road Runner
here.  -Nathan

-- 
+---+-++
| Nathan Lutchansky | [EMAIL PROTECTED] |  Lithium Technologies  |
+--+
|  I dread success.  To have succeeded is to have finished one's   |
|  business on earth...  I like a state of continual becoming, |
|  with a goal in front and not behind. - George Bernard Shaw  |
+--+



msg01224/pgp0.pgp
Description: PGP signature


Re: [Samba] samba ports blocked by isp

2002-04-24 Thread Gerald Carter

On Wed, 24 Apr 2002, Barry Smoke wrote:

> Is it possible to map a drive to a samba share over the internet,
> through an isp that blocks the samba ports... I know with samba, I can
> specify a port, but what about a windows client? Can I change what port
> a windows machine looks to for samba/smb for a particular share only?

You really don;t want to do this.  It is **so** insecure.
Setup a VPN it is it necessary to share files using CIFS
across the 'Net.






chau, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 "Sam's Teach Yourself Samba in 24 Hours" 2ed.  ISBN 0-672-32269-2
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--




-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] samba ports blocked by isp

2002-04-24 Thread Barry Smoke

Is it possible to map a drive to a samba share over the internet,
through an isp that blocks the samba ports...
I know with samba, I can specify a port, but what about a windows
client?
Can I change what port a windows machine looks to for samba/smb for a
particular share only?


Barry Smoke
Network Administrator
Bryant Public Schools


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba