Results 1 to 13 of 13

Thread: Samba shares only accessible when wan NOT connected

  1. #1

    Samba shares only accessible when wan NOT connected

    Hello,

    I'm trying to set up samba access from Windows XP. I followed a 'HowTo' on this forum and created 1 fat32 and 1 ext3 partition. FTP'ing works fine, but I can't connect from the explorer to \\wl500gx\fat32 or \\wl500gx\ext3.

    My LAN host name is wl500gx.

    Now: When i change my 'Special Requirement from ISP' Hostname to something else (so, different from the hostname i've been given by my ISP) it works!!
    Any idea what's wrong?

    Only when i'm not connected to my ISP (because of the wrong hostname) it's possible to connect to my LAN hostname.

    ??????
    Attached Images Attached Images  
    Last edited by PatatoHead; 06-04-2005 at 22:42.

  2. #2

    LAN / WAN Hostname

    It looks like my ISP hostname is used as LAN hostname (or soemthing like that...)

    [master@hostnameISP log]$ cat nmb
    2005/04/06 23:31:04 netbios nameserver version 1.9.18p10 started
    Copyright Andrew Tridgell 1994-1997
    Get_Hostbyname: Unknown host hostnameISP.
    Unable to get my hostname - exiting.
    [master@hostnameISP log]$

  3. #3
    Have you tried editing the /etc/hosts file?

    S.

  4. #4
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Quote Originally Posted by PatatoHead
    It looks like my ISP hostname is used as LAN hostname (or soemthing like that...)

    [master@hostnameISP log]$ cat nmb
    2005/04/06 23:31:04 netbios nameserver version 1.9.18p10 started
    Copyright Andrew Tridgell 1994-1997
    Get_Hostbyname: Unknown host hostnameISP.
    Unable to get my hostname - exiting.
    [master@hostnameISP log]$
    If I recall correctly, I've already fixed this bug... But it looks like it still here. Do not use ISP Hostname field then.

  5. #5

    Hmm...

    I need to fill in the ISP hostname to get connected to my ISP....
    How do i edit the hosts file (i guess vi) and more specific: what should i write?

  6. #6
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    I've finally fixed this.
    Do you really need to use isp hostname? what is the real value for it? cause hostnameISP looks like a fake...

  7. #7

    It IS fake!

    Oleg,

    My only setting for ISP is this hostname. My router is connected to a Motorola 5100 (?) cablemodem. The shown hostnameISP is indeed a fake one (Just for the picture.Just to be sure.... I don't know what can 'they' can do with my real hostname!?).

    So, i must type my ISP's hostname, or else i won't get an IP from my ISP.

    I hope you can figure out why this is.... Would be nice!!

  8. #8

    It works...

    Oleg,

    It works! When I type in both fields my 'hostnameISP' I can connect to the FAT32 partition on \\hostnameISP\fat32

    Why I didn't try that earlier? I don't know!

    Oleg, keep up the good work! Thanks for your input...

  9. #9

    Unhappy

    So does setting isphostname to wl500g and hostname to wl500g solve the problem? I experienced the same problem. I have set the hostname in webinterface to wl500g but when I telnet into the router its not showing the name?!

    Also cat /proc/sys/kernel/hostname

    doesn't show the name wl500g I had set in the webinterface?!

    When I type echo wl500g /proc/sys/kernel/hostname

    then I can run samba but only until the next reboot :-(
    Also trying to add this line to post-boot strangely doesn't seem to work...

    How can the hostname be set permanently?! With old 1.7.9.x firmware samba worked like a charm....

    Thanks,
    Rainer

  10. #10
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    You will need to wait for next custom firmware release, I've fixed this and it should work fine.

  11. #11
    Yes, in my case I wrote in both fields (ISP and LAN) the same hostname.
    And because my provider tells me what to write as hostnameISP, I copied this name to the LAN-hostname.... That's it.

    Another question: Is it possible to increase the speed of this samba connection? It now is as fast a a ftp connection from LAN.

  12. #12
    I was trying to make Samba work for a week. This topic and bit of luck finally helped me.
    My ISP has no special requirement for the hostname. So following the instructions here I put in that field what I had in the equivalent field in "LAN IP Setting". i.e. ASUS

    on the next boot the router had:
    [admin@newpc root]$
    and not [admin@ASUS root]$ as I expected.
    I edited /proc/sys/kernel/hostname which was set to "newpc" (from whom?) and made it ASUS.
    on the next boot had the same result [admin@newpc root]$ and Samba of course not working.

    Finally Samba worked when I changed through the webinterface both of the hostname fields in IP Config into "newpc" (just simple as \\newpc). This is really weird and I just wanted to share my experience as it may help some1.
    Sorry for my long post

  13. #13
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    the newpc is comes from your ISP. This would be fixed in the next firmware.

Similar Threads

  1. help me make my webpage world-accessible
    By nerodark in forum WL-500g Q&A
    Replies: 0
    Last Post: 30-08-2005, 22:32
  2. Webserver not accessible from wan
    By Fama in forum WL-500g Q&A
    Replies: 22
    Last Post: 05-08-2005, 00:24
  3. Restrict access to Samba shares
    By Muyz in forum WL-500g Q&A
    Replies: 2
    Last Post: 09-06-2005, 06:34
  4. Samba shares only accessable from LAN
    By Arnoldm in forum WL-500g Q&A
    Replies: 2
    Last Post: 28-03-2005, 07:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •