Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-15-2004, 06:31 PM
|
#1
|
|
Member
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154
Rep:
|
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
|
|
|
|
11-16-2004, 08:09 AM
|
#2
|
|
Member
Registered: Jan 2003
Distribution: many win/nix/mac
Posts: 259
Rep:
|
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.
|
|
|
|
11-16-2004, 08:14 AM
|
#3
|
|
Member
Registered: Jan 2003
Distribution: many win/nix/mac
Posts: 259
Rep:
|
I think nmap has a windows version. nmap is so much easier than messing with your firewall. IMHO ping is dinasaur tool.
|
|
|
|
11-16-2004, 11:45 AM
|
#4
|
|
Member
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154
Original Poster
Rep:
|
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
|
|
|
|
11-16-2004, 11:58 AM
|
#5
|
|
Member
Registered: May 2004
Location: Martinez, CA
Distribution: Ubuntu
Posts: 38
Rep:
|
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
|
|
|
|
11-16-2004, 01:49 PM
|
#6
|
|
Member
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154
Original Poster
Rep:
|
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
|
|
|
|
11-16-2004, 06:55 PM
|
#7
|
|
Member
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154
Original Poster
Rep:
|
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
|
|
|
|
11-17-2004, 09:01 AM
|
#8
|
|
Member
Registered: May 2004
Location: Martinez, CA
Distribution: Ubuntu
Posts: 38
Rep:
|
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
|
|
|
|
11-17-2004, 11:05 AM
|
#9
|
|
Member
Registered: Jan 2003
Distribution: many win/nix/mac
Posts: 259
Rep:
|
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.

|
|
|
|
11-17-2004, 11:53 AM
|
#10
|
|
Member
Registered: Feb 2003
Posts: 482
Rep:
|
in shorewall rules
AllowSMB all all
edit: http://www.shorewall.net/ports.htm
Last edited by emetib; 11-17-2004 at 12:20 PM.
|
|
|
|
11-17-2004, 06:26 PM
|
#11
|
|
Member
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154
Original Poster
Rep:
|
ok thanx for the input. i'll try the shorewall rule update and let u know how it went ..
thanx,
alan
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:23 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|