| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 38175 | 2003-09-29 12:59:00 | Pinging my MDK9.1 Linux box from Win XP | andrew_mercer (3328) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 179001 | 2003-09-29 12:59:00 | One curiousity since I got my XP and Linux boxes networked. Despite my small home network (two PCs and an ASDL router/switch) being up and running, and the machines both being able to connect to one another and share the Internet link, I'm unable to ping my Linux box (192.168.1.3) from my win XP PC (192.168.1.2). * Win XP will happily ping the router (192.168.1.1) and can read files off my web server running on the Linux box, * The Linux box will happily ping the Win XP PC, and * I can share directories with Samba (admittedly I've only tried making a win xp directory available on the Linux machine rather than the other way around). However, using the Win XP PC to ping the Linux box just results in a time-out. Does Win XP maybe having problems connecting to Linux (I vaguely remember reading something about this a while back), or might it just be a configuration thing? Eventual goal is for me to be able to use SSH to connect to the Linux box from my win XP machine. Cheers |
andrew_mercer (3328) | ||
| 179002 | 2003-09-29 15:14:00 | First things first. If it isnt pinging it, then you shouldnt bother trying to setup samba or ssh. XP can ping any OS fine, Linux, BSD etc. You may have a firewall enabled on your Linux box, do you know if you do? The XP PC probably cant connect to shares from your MDK box if you're firewall is blocking that too. If you're going to be using SSH, try PuTTY for your client on your XP m/c. Google for it.. Its a great app :-) Post back if you know anything about a firewall. Cheers Chill. |
Chilling_Silently (228) | ||
| 179003 | 2003-09-30 02:01:00 | Thanks. I do have shorewall enabled, and the security setting are set to the recommended setting for a server. * The firewall is set to allow SSH connections on port 22 so in theory should work (but in practice doesn't). * I didn't realise that firewall settings would actually prevent pinging a machine. Is there a service that I need to enable on configure to get through the firewall? I'll take a closer look at the firewall settings when I get back home this evening - though not really too sure what I should be looking for. Maybe if I temporarily set it to its lowest settings just to see. Agreed that PuTTY is the way to go. Am already using this to connect to other Linux accounts external to my network plus use it at work. Cheers |
andrew_mercer (3328) | ||
| 179004 | 2003-09-30 03:16:00 | Are you pinging by IP address number or by name? It might be a name resolution problem in the Windows. Obviously the network is working. :D Some people argue for disabling ICMP responses (such as ping) to reduce the risks of various attacks, but I'd be surprised if it was disabled by default. Try using the Linux box to ping itself. |
Graham L (2) | ||
| 179005 | 2003-09-30 03:30:00 | Graham> Just out of curiosity, when you ping localhost, does it use lo, or eth0? |
Chilling_Silently (228) | ||
| 179006 | 2003-09-30 03:38:00 | A ping of localhost is intended as a test of the TCP/IP software ... it doesn't actually go near a real interface. The lo interface (loopback) is just software. That's why people who try to test their ethernet cards with it are going to get wet -- they are facing the wind. :D I don't think that even a ping of the host's own IP address gets out to the card. (All the diagnostics for cards I have used have wanted another card, from the same manufacturer, also running the diagnostics for a proper test.) But a ping won't ping unless the service is active. :D |
Graham L (2) | ||
| 179007 | 2003-09-30 04:22:00 | I thought so, but thanks for clearing that up for me :-) | Chilling_Silently (228) | ||
| 179008 | 2003-09-30 07:09:00 | If its blocking anything it will be listed in the syslog. Open /var/log/syslog in a text editor as root and have a look near the bottom. If you need to configure the firewall I suggest using firestarter (http://firestarter.sourceforge.net/) instead. They have a MDK9.1 rpm available. It also includes a nice firewall monitor. I found shorewall to be a real PITA to configure. When you run the firestarter setup wizard for it, tell it to disable ICMP filtering for pings to work. |
bmason (508) | ||
| 179009 | 2003-09-30 07:15:00 | When looking at log files, it's best to use the tail command. Life is too short to use editors to look at enormous files. tail -20 /var/log/whatever works nicely ... the default is 10 lines, but 20 is more useful. I suppose tac /var/log/blah | less would work too. :D | Graham L (2) | ||
| 179010 | 2003-09-30 07:42:00 | Hi Andrew, The reason you can't ping the linux box is as you surmised due to the Shorewall. It is designed to drop ICMP requests so you can't see it ;) If you go to the Shorewall (http://www.shorewall.net) site under configuration there is a section for ping management and how to enable ICMP 8 for a specific IP address. HTH :) |
Gorela (901) | ||
| 1 2 | |||||