I set up a pptpd on my Linux server and followed the following guide to setup a vpn server.
Then I connected through windows 10 from a remote machine and it connects fine. Though, I cannot see any resources or map locally any of the folders on my home folder located on the server.
Do you have any suggestions why this happens and how can I see my home folder from windows?
Is the share the home directory, or it is the user directory? If it's the user directory then just do\\IP\username. Use the name of the share, not the local path to that share.
When I do not use the vpn I cannot access the server in any ways except ssh through putty (on windows) since it is located in a different town and ftp is not enabled.
I tried to map a network drive with \IP\username and still doesn't work.
Okay, it may be that you need to configure samba to listen on multiple interfaces. Open /etc/samba/smb.conf and edit the line that says interfaces = (If it's commented out then uncomment it) and change it to interfaces = localip vpnip where localip is your local ip address, and vpnip is the VPN server IP address, in your case 10.0.0.1. then restart the smbd service (or reboot the computer)
You may also need to add /24 to the end of each interface address you use, I'm not sure about that. You can also use the interface names, which you can find by running ifconfig in the terminal.
EDIT: It does need to be IP/24 or the interface name.
change it to the actual address, eth0 should cover your local interface but the vpn address should be 10.0.0.1/24 or you could use the vpn interface name instead.
I tried with a windows 7 pc inside the network and samba shares works fine. Also contacted a friend with Mac OS and he can connect fine from outside local network to his shares. Guess the issue is in my windows?
Noticed a weird thing though... when I receive the ip address from the dns (10.0.0.100) it also associates a subnet mask of 255.255.255.255. Isn't it weird?