LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-27-2005, 06:08 PM   #1
vin99
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Rep: Reputation: 0
Linux Windows networking


I'm trying to build a 2-computer network consisting of a Linux machine and a Windows XP Home machine connected to a ADSL router (NetGear DG834GT). I'm having problems getting the two machines to see each other.

Each machine can access the the Internet through the router which is connected to a cable modem. I can ping the IP address of the Linux machine from the Windows machine, but I can't go the other way and ping Windows from Linux.

I want to share files between the two machines and access a Linux shell remotely from Windows. Any suggestions would be helpful.

thanks
vin
 
Old 08-27-2005, 06:34 PM   #2
Ay-Karamba!
Member
 
Registered: Aug 2005
Location: Sydney
Distribution: Ubuntu, FC4
Posts: 43

Rep: Reputation: 15
I faced exactly the same problem as yours, and I dunno if this help cos I'm a linux noob myself, but I just solved how to do linux windows networking. First of all setup samba server on you linux machine, LQ have some HOWTO for it, then try to follow all the instructions, if it doesn't work, do 'ifconfig -a' and look for something like this:

[code]
eth0 Link encap:Ethernet HWaddr 00:118:2F:C0:0D
inet addr:10.0.0.6 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::211:d8ff:fe2f:c00d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1918 errors:0 dropped:0 overruns:0 frame:0
TX packets:1977 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:523022 (510.7 KiB) TX bytes:293941 (287.0 KiB)
Interrupt:5 Base address:0xd800
[code]

the line 'inet addr:10.0.0.6' shows your local ip number (i guess). It's just the same when you right click your lan connection on windows and click property to check its IP. Then try pinging this address from your windows (start->run) type cmd, then put command 'ping <ip address>. If it does give response, you did it. Just go to explorer, then go to address //10.0.0.6 (or whatever your ip address is), It will ask you for a username/password which you can set up through samba.
 
Old 08-27-2005, 06:41 PM   #3
treedstang
Member
 
Registered: Jul 2003
Distribution: Suse 9.X Redhat 9.0, Enterprise 3 and 4 Fedora Mandrake
Posts: 79

Rep: Reputation: 15
Post

Hello Vin99, The info you need to get you up and going with sharing files between windows and Linux is at the site below. it will give you also the info you need for configuring linux with networking and ADSL broadband.

Focus on the section for Samba to get file sharing setup. There is a total of 20 sections in all so you learn some other areas as well


Tim
 
Old 09-03-2005, 04:14 PM   #4
vin99
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the above replies.
my setup details are as follows
windows box ip address is 192.168.0.4
linux box ip address is 192.168.0.5

I setup the correct port forwarding rules in the router. Now I can do the following

1. Ping from windows box to linux box
2. Ping from linux box to windows box

Testing Apache now(running on both boxes separately)
3. Can access Apache on windows box through URL http://192.168.0.4
4. Can access Apache on linux box through URL http://192.168.0.5
5. Can access the windows apache URL from the linux box

But CANNOT

6. access the linux apache URL from the windows box
when I try http://192.168.0.5 from Windows browser, no page is found

IS THERE ANY config setting in the linux box to allow http access from other machines in the network?

Am I missing something here ? or could it be a setting on the windows side
which is unlikely coz ping from windows detects the linux box

Thanks in advance

vin

Last edited by vin99; 09-03-2005 at 04:16 PM.
 
Old 09-03-2005, 07:55 PM   #5
vin99
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Hi all

Managed to solve the problem.

I think that iptables was blocking the http access. I am still unsure about the default setup associated with iptables but this is what I did

1. Ran the command
/etc/rc.d/init.d/iptables stop

2. Tried connecting to the URL http://192.168.0.5:80 from the Windows client

And it works now

Thanks
Vin
 
Old 09-04-2005, 04:03 AM   #6
rmic
LQ Newbie
 
Registered: Aug 2005
Posts: 10

Rep: Reputation: 0
iptables

Hi,

You'd better only allow http access on the linux box to your local network :

Code:
iptables -I INPUT -p tcp --dport 80 -s 192.168.0.0/24 -j ACCEPT
(modify the netmask to fit yours)

and if you can connect but get no reply, you can try the following :

Code:
iptables -I OUTPUT -p tcp --sport 80 -d 192.168.0.0/24 -j ACCEPT
This would be a little bit more secure...
 
Old 10-20-2005, 05:30 PM   #7
vin99
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Original Poster
Rep: Reputation: 0
ssh was working fine until I ran a up2date yesterday.

Now am unable to ssh from a client machine in network
Even vnc has stopped working.


The following packages were installed

openssl-0.9.7a-33.17
openssl-devel-0.9.7a-33.17

has anyone else encountered this issue

Pls let me know

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Xp to Linux networking Amd619 Linux - Networking 6 03-09-2005 04:29 AM
Networking Linux to Windows XP Barrie Linux - Networking 2 02-20-2005 06:05 AM
Linux - Windows networking beepee Linux - Networking 3 10-27-2004 12:51 AM
Networking Linux and Windows jleach42 Linux - Networking 1 05-01-2004 09:15 PM
Networking windows with linux calimer Linux - Networking 12 04-17-2002 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration