[Samba] Samba using Openvpn debug

info info at novalnet-solutions.com
Thu Sep 23 08:07:49 MDT 2010

Dear All,

I configured samba-3.2.7 in opensuse11.1(serv1) box in my LAN1 and it is
working fine.
Later I configure openvpn p-to-p on the same "serv1".  I accessed "serv1"
from LAN2 (internet) , computer name: notebook-vista, using SSH through
openvpn tunnel and it was working fine.

I config samba and openvpn to access samba share in LAN2 using openvpn from
LAN2 in "notebook-vista". 
Initially I was able to open the samba share in "notebook-vista" computer.
Start-> run->cmd-> net use z: \\\rb /user:kr

Samba share is not connected to "notebook-vista" when I tried from LAN2,
next day after restarting both server and client. But ssh is connected via
openvpn from client to Server. 
"notebook-vista"  - vista home premium operating system
Note: I enabled network sharing , network discovery, all user can able to
create a file/folder in "vista"

Start-> run->cmd-> net use z: \\\rb /user:kr
System error 53 has occurred.
The network path was not found.
 cmd-> net use  \\\rb /delete
An active process is accessing this device.
You get more help if you type NET HELPMSG 2404th
Still I am getting the same error and not getting samba share in my LAN2 via
openvpn in "notebook-vista"
Start-> run->cmd-> net use z: \\\rb /user:kr
System error 53 has occurred.
The network path was not found.

My configuration as follows for your reference 

For openvpn:
#vi /etc/openvpn/server.conf

port 1194
proto udp
dev tun
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/serv.crt
key /etc/openvpn/easy-rsa/2.0/keys/serv.key  
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
ifconfig-pool-persist ipp.txt
keepalive 10 120
max-clients 4
user nobody
group nobody
status openvpn-status.log
verb 4
management localhost 7505
For samba:
#vi /etc/samba/smb.conf
        workgroup = WORKGROUP
#for openvpn config
        hosts allow =
        interfaces =
        passdb backend = tdbsam
        netbios name = Novalnet
        name resolve order = bcast host lmhosts wins
        printing = cups
        printcap name = cups
        printcap cache time = 750
        cups options = raw
        map to guest = Bad User
        include = /etc/samba/dhcp.conf
#       logon path = \\%L\profiles\.msprofile
#       logon home = \\%L\%U\.9xprofile
#       logon drive = P:
        usershare allow guests = Yes
        comment = Home Directories
        valid users =  (it is remove while scanning)
        browseable = No
        read only = No
        inherit acls = Yes
#       comment = Network Profiles Service
#       path = %H
#       read only = No
#       store dos attributes = Yes
#       create mask = 0600
#       directory mask = 0700

        comment = All users
        path = /home
        read only = No
        inherit acls = Yes
        veto files = /aquota.user/groups/shares/
#       comment = All groups
#       path = /home/groups
#       read only = No
#       inherit acls = Yes

        comment = All Printers
        path = /var/tmp
        printable = Yes
        create mask = 0600
        browseable = No
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        write list = @ntadmin root
        force group = ntadmin
        create mask = 0664
        directory mask = 0775
        comment = magentospm
        path = /srv/www/htdocs/magentospm/
        read only = yes
#       writable = Yes
#       public = Yes
        write list = jb kp mr bg kd root
        valid users = jb kp mr bg kd root
#       directory mask = 0777
        logon drive = Z:

Openvpn client config file on vista


dev tun
proto udp
remote xxx.mydomin.com 1194
resolv-retry infinite

ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\client.crt"
key "C:\\Program Files\\OpenVPN\\config\\client.key"
verb 4

Kindly intimate me where I done a mistake so that I could get the samba
share on my "notebook-vista" computer using openvpn.

Thanking You,

Warm Regards,

More information about the samba mailing list