[Samba] Problem setting up stunnel
neil at JAMMConsulting.com
Mon May 6 11:11:02 GMT 2002
I have samba set-up and working completely fine
on my Linux server. I can get to it using network
neighborhood just fine.
Now, I want to set-up and stunneled connection to the server
so that the data is protected.
I know about the ssl option for samba, but that is slated to
be removed so I want to get this working with stunnel.
So, on the server, I issued this command:
/usr/sbin/stunnel -D 7 -d 2139 -r 139
On my client (A windows 2000 machine), here is what I did:
1. Created a directory c:\bin
2. Downloaded the file
and extracted it.
3. I then went to a command line, changed to the c:\bin directory
and typed this command:
stunnel.exe -D 7 -c -d 127.0.0.2:139 -n smb -r 188.8.131.52:2139
I then went to windows explorer and tried to add a network
place with the location \\127.0.0.2\Documents but when it
tries to connect, I get a pop-up that says the network path
was not found.
On the client here is what I see:
C:\bin>stunnel.exe -D 7 -c -d 127.0.0.2:139 -n smb -r 184.108.40.206:2139
LOG5[1308:1256]: Using '220.127.116.11.2139' as tcpwrapper service name
LOG7[1308:1256]: RAND_status claims sufficient entropy for the PRNG
LOG7[1308:1256]: Seeded PRNG with RAND_screen
LOG6[1308:1256]: PRNG seeded successfully
LOG5[1308:1256]: stunnel 3.11 on x86-pc-unknown WIN32
LOG7[1308:1256]: 18.104.22.168.2139 bound to 127.0.0.2:139
LOG7[1308:1012]: 22.214.171.124.2139 started
LOG5[1308:1012]: 126.96.36.199.2139 connected from 192.168.1.3:1753
LOG7[1308:1012]: 188.8.131.52.2139 connecting 184.108.40.206:2139
LOG7[1308:1012]: Remote host connected
LOG7[1308:1012]: Negotiations for smb(client side) started
On the server, I see this message when I try to connect:
May 6 13:05:57 www stunnel: 139 connected from 220.127.116.11:1754
JAMM Consulting, Inc. (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development Websites, Ecommerce, Java, databases
More information about the samba