LinuxQuestions.org
Review your favorite Linux distribution.
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 11-15-2004, 06:31 PM   #1
eroica
Member
 
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154

Rep: Reputation: 30
Question Cant Ping my Linux Box from Windows


hello,
I've been trying to setup samba between my mandrake 9.1 laptop and my windows 98 box without success. I've started trouble shooting and the first thing i have to do is be able to ping between the two thru my linksys wireless router. i can ping the windows machine thru the router from the linux laptop no problem. my problem is i cant ping the linux laptop from windows. i can ping the router no problem from the windows box. I thought maybe shorewall was the culprit because i havent adjusted any rules for pinging. But even shutting down the shorewall service hasnt helped. I would appreciate any suggestions to get my two machines talking. I assume because i can ping one way that i dont have a hardware issue but something to do with a setting or setting up linux box to reply to icmp requests.

thanx,
alan
 
Old 11-16-2004, 08:09 AM   #2
flashingcurser
Member
 
Registered: Jan 2003
Distribution: many win/nix/mac
Posts: 259

Rep: Reputation: 31
My guess is that your iptables rules are not getting flushed on shutdown of shorewall. I have never used shorewall so I may be way off base here.

Do a "man iptables" -- there is a way to flush the tables, you can do this from the command line after shutting down shorewall.


One other thought-- there is a kernel argument to not accept them too-- you may want to try booting without shorewall startup. That way it will not pass arguments to the kernel on bootup.


I'm on a windows box at work right now-- sorry I cant give you the exact kernel arguments/iptables commands. Maybe someone else can help.
 
Old 11-16-2004, 08:14 AM   #3
flashingcurser
Member
 
Registered: Jan 2003
Distribution: many win/nix/mac
Posts: 259

Rep: Reputation: 31
I think nmap has a windows version. nmap is so much easier than messing with your firewall. IMHO ping is dinasaur tool.
 
Old 11-16-2004, 11:45 AM   #4
eroica
Member
 
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154

Original Poster
Rep: Reputation: 30
yeah i did try a iptables -F at prompt to flush the tables but that didnt help. if i dont start shorewall @ boot does that prevent iptables from starting also? And what do u mean use nmap instead of ping?

alan
 
Old 11-16-2004, 11:58 AM   #5
netstv
Member
 
Registered: May 2004
Location: Martinez, CA
Distribution: Ubuntu
Posts: 38

Rep: Reputation: 15
Things I would do:

Ping the wireless router from your windows box.

Ping the wireless router from your linux box.

If those both work , then you know that everyone can talk to the router. Which is good.
If that doesn't work, then you know where to look.

Let's assume it does work, then I would run etherreal on the linux box and try to ping to the linux box from windows. What you would be looking for is an ARP REQ from your windows looking for the Linux box.

And then an ICMP Ping REQ. If you don't see that, then you know the problem is with the Windows box sending the packet out. Probably a firewall turned on on the Windows??

If you see the packet getting to your Linux box, then I would check to make sure your linux box is sending it back out.

If not,then you know where to look. I think what you need to do is figure out where to look before you start guessing.

-netstv
 
Old 11-16-2004, 01:49 PM   #6
eroica
Member
 
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154

Original Poster
Rep: Reputation: 30
ok thanx. as i stated below i can ping the linksys router from both machines so we know we're good to there from win98 box. when i get home tonight i'm going to run >tail -f /var/log/messages and see if shorewall is blocking that icmp request and then update shorewall rules to let in icmp requests and see if that does it. I would think that shutting shorewall down which i did last night would accomplish same thing but who knows. certainly not relative newbie me. if that doesnt do it i will install etherreal @ home. I just started fooling around with it @ computer I have @ work so i'm not familiar with it. i'll let u know how i made out tomorrow. thanx 4 the input....

alan
 
Old 11-16-2004, 06:55 PM   #7
eroica
Member
 
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154

Original Poster
Rep: Reputation: 30
yeah that did it. by putting in accepting icmp request in Shorewall i can now ping linux box from my win98 box. but i still cant see either box using shares. do u have any ideas on how to setup Shorewall to pass smb requests. Incidently i had ethereal running and i see browser requests announcing the windows 98 share on the wire.

alan
 
Old 11-17-2004, 09:01 AM   #8
netstv
Member
 
Registered: May 2004
Location: Martinez, CA
Distribution: Ubuntu
Posts: 38

Rep: Reputation: 15
Sorry Alan. I'm a networking kinda guy. I don't know much about Samba or Windows. The only thing I would do is to verify that Samba is really running on your Linux box and that it has a share setup. I've setup Samba once, but that was along time ago.

ciao
-netstv
 
Old 11-17-2004, 11:05 AM   #9
flashingcurser
Member
 
Registered: Jan 2003
Distribution: many win/nix/mac
Posts: 259

Rep: Reputation: 31
Open up 137,138,139 & 445 udp and tcp (some of those ports MAY not be needed, but if you dont have any service behind them then there really isnt any harm)

You have samba up and running on your linux box? (I know its a stupid question)


Have fun and I'm glad to see it woking well.


 
Old 11-17-2004, 11:53 AM   #10
emetib
Member
 
Registered: Feb 2003
Posts: 482

Rep: Reputation: 33
in shorewall rules
AllowSMB all all

edit: http://www.shorewall.net/ports.htm

Last edited by emetib; 11-17-2004 at 12:20 PM.
 
Old 11-17-2004, 06:26 PM   #11
eroica
Member
 
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154

Original Poster
Rep: Reputation: 30
ok thanx for the input. i'll try the shorewall rule update and let u know how it went ..

thanx,
alan
 
  


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
Unable to ping my linux host from windows box prabulinc Linux - Networking 2 08-27-2005 02:32 PM
Unable to ping Linux box from Windows westone Linux - Networking 5 07-14-2004 04:41 PM
can't ping linux box from windows - sorry, another one! stretchcomfort Linux - Networking 6 08-18-2003 05:24 PM
My linux box can't ping to my windows boxes! Thermodynamic Linux - Networking 8 08-06-2003 03:15 AM
Unable to ping my Linux box on windows network rajjay Linux - Networking 18 07-28-2003 05:14 AM


All times are GMT -5. The time now is 03:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration