LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Sharing files between Windows and Linux (https://www.linuxquestions.org/questions/linux-newbie-8/sharing-files-between-windows-and-linux-367085/)

bradab 09-26-2005 03:28 AM

Sharing files between Windows and Linux
 
OK, first things first.. I'm not super linux savvy, but I know my way around. I've had samba running before when I had my systems set up in a lan under a router but now things are different. Any advice would be greatly appreciated.

Due to dropping connection issues with my wireless router I've got a 5 port switch to handle the linux box and router directly with the internet.
Connection setup goes as follows:
Internet -> 5 port switch -> Linuxbox (Switch Port 1) \ Wireless Router (Switch Port 2) -> Windows Box (Router Port 1)

If that's hard to understand.. my internet connection goes into the switch, out of the switch I have my linux box and a wireless router.. out of the wireless router is my windows box and various other wireless devices that aren't an issue here.

Now the Linux box has it's own ip assigned from my ISP. The wireless router has it's own IP assigned from my ISP. The windows box gets a static IP from the router so it is 192.168.1.2.

Now question is, how can I get the linux and windows boxes talking together through the switch? is this possible? I was hoping I could still 'samba' them together and mount the drives.

Does anyone else have a similar configuration and what do you do to transfer files between the machines? I don't really want to set up ftp servers on the windows box if I don't have to.

Cheers,
Brad.

/bin/bash 09-26-2005 04:57 AM

You can probably tell the wireless router to pass traffic to/from your linux IP address and the Windows IP (192.168.1.2). As to how you do that would be specific to the type of wireless router you are using.

bradab 09-26-2005 10:11 AM

Thanks for the reply, here's some more information about the setup.

Router is a Linksys WRT54G.
Switch is just a cheap switch with no setup that I know of, Surecom EP-805SX.
Linux version is Slackware 10.2.
Windows version is 2000 pro.

Obviously the main problem is probably the firewall since the linux box is not behind the router firewall and the windows box is. I'd rather not DMZ my whole windows box, so like you said, I need to figure out a way to open up the windows box to the linux box and vice versa.

I imagine from what I've read about Samba that it is not possible to use for this set up since the two computers are not behind the same gateway. Hopefully there is another way to mount drives remotely.

How do networks do it when they have all their computers 'switched' with software firewalls? Perhaps some insight into that would lead to a solution.

Cheers,
Brad.

/bin/bash 09-27-2005 04:27 PM

Pull out your WRT54G users manual and follow along starting on pg 14.
From the Windows computer start Firefox and in the address box type 192.168.1.1. Leave the user blank and the default password is admin. The first thing you should do is change the password, under the administration tab.

You may want to enable remote configuration so you can access the router from the linux box. This is also in the Administration tab and follow instructions on page 32 .

Now to enable samba go to the Applications and gamming tab and follow instructions on page 30. The IP address should be the IP of the linux box. The ports will be 137-139 and protocol will be both.


All times are GMT -5. The time now is 12:31 PM.