View Single Post
  #1   (View Single Post)  
Old 28th October 2013
virtuvoos virtuvoos is offline
Port Guard
 
Join Date: Oct 2013
Posts: 28
Default Samba connecting to an outside IP address

I'm trying to setup samba share on my OpenBSD5.4-current. Very simple setup, guest access to one folder as read only. Perhaps maybe only shared on the local network 192.168.0.

I can see my server popping up in windows hosts in the network but because I couldn't browse the shares, not even from localhost, I ran smbtree in maximum debugging level. Somehow, samba manages to resolve IO (hostname of the server) to 193.223.78.212 . Err how the heck does that happen?

The only mechanisms that i know of that can do that is DNS or /etc/hosts. DNS I don't run and /etc/hosts is standard.

If I copy paste the resolved IP address in the address bar I'm proposed to register a .io domain name :confused. I truly don't understand the mechanism why this is happening.

Code:
smbtree -d 10
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_NEGOTIATE_NTLM2
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
cli_init_creds: user myusername domain mydomainname
num_setup=0, max_setup=0, param_total=32, this_param=32, max_param=8, data_total=0, this_data=0, max_data=65535, param_offset=92, param_pad=2, param_disp=0, data_offset=124, data_pad=0, data_disp=0
        \\IO                            OpenBSD Server
Connecting to host=IO
sitename_fetch: No stored sitename for 
internal_resolve_name: looking up IO#20 (sitename (null))
name IO#20 found.
remove_duplicate_addrs2: looking for duplicate address/port pairs
Running timed event "tevent_req_timedout" 0x2ef046f3150
Connecting to 193.223.78.212 at port 445
Running timed event "tevent_req_timedout" 0x2ef046f3d50
Connecting to 193.223.78.212 at port 139
...
...
...
Running timed event "tevent_req_timedout" 0x2ef046f2b50
Running timed event "tevent_req_timedout" 0x2ef046f3b50
Running timed event "tevent_req_timedout" 0x2ef046f2d50
Error connecting to 193.223.78.212 (Undefined error: 0)
cli_start_connection: failed to connect to IO<20> (0.0.0.0). Error NT_STATUS_UNSUCCESSFUL

Last edited by virtuvoos; 28th October 2013 at 09:01 PM. Reason: syntax error in [/code]
Reply With Quote