Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a Linux server... and a Windows client. I am running samba on my Linux server, with a standard share I can access this share within my own network. I want to be able to access this share *anywhere* via map network drive (without tunneling) on a windows machine. Whenever I attempt to do this \\My IP Address\My share even on the same computer that I can access it within its own network, I get a login box... I type in my username, and password the same one on my machine, and I get denied, for wrong username and password...
First Question:
Does anybody know which ports to map, as I have it on DMZ as of right now.
You will need to use tunneling for two reasons. First what you want to do isn't secure. For this reason, many ISPs even block ports 137-139 & 445. Secondly, you have more than one port using tcp and udp, so you can't simply use an ssh tunnel.
I would *not like to Tunnel, I can get this working perfectly with a putty tunnel. My objective is to be able to access this share WITHOUT having to install software on the client computer...
It worked once or twice very ambiguously a few months a go, I do not know how, or why...I am attempting to figure out the solution to this.
Sharing windows shares over the internet without a tunnel is dangerous and probably won't work for various reasons. With different network addresses, you would have a lot of work getting browsing to work. Most ISPs block the ports that windows networking uses, so what you want to do may even be impossible or more difficult than using a tunnel such as VPN, TightVNC, openswan, etc.
Your question sounds equivalent to, how can I soak myself with gasoline, and play with matches without getting burned.
Haha, Yea I know I had it working for *One Day* Randomly, I can check if my ISP blocks this port, but I don't know... I can log into my server, its just the credentials I use for internal connecting do not work...
I have SSH Tunneling totally functioning, I just want to be able to access my shares from anywhere including machines which do not allow me to install softare like PUTTY.
Machines that don't allow you to install putty won't allow you to to access your shares via the internet. Also, the firewall is certain to block ports 137-139 & 445. Using ssh, you would need to use a single port. The samba documentation (samba-doc package) may have information on how to configure the server for that. But then you would probably need to modify all of the clients on the LAN with the samba server and the client you are using. You may also need to have a wins server running on both ends. That is a lot of work and will probably cause problems with your other clients.
Plus, if you can't install putty, you won't be able to install hamachi or use a commercial client (citrix, etc.).
If you need to retrieve or save files, the obvious answer (to me) is to run an ftp server. That's what they are for. There are also ftp like web server apps that you could set up and reach using https. This would allow downloading & uploading files.
Hey thanks... I just want to try and get this to work sort of as an experiment, but thanks for the advice.
My goal is to make it as easy as possible to connect to this share and use it in Windows. Such as saving a word document, all you would have to do is click drive x:
Thankyou for reaffirming the port I have 139 only routed right now, I wasn't sure if the other two were a requirement.
If anybody else has any ideas, I'm more than open.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.