[SOLVED] Mageia PCs don't reply to pings

[SOLVED] Mageia PCs don't reply to pings

Postby Parckwart » Mar 26th, '14, 21:03

I have two PCs with Mageia 4 installed. Both don't reply to pinging. Actually I can't connect to them in any way because I can't SSH them aswell. However my router detects them...
Last edited by Parckwart on Mar 27th, '14, 09:13, edited 1 time in total.
Parckwart
 
Posts: 11
Joined: Oct 27th, '13, 10:12

Re: Mageia PCs don't reply to pings

Postby doktor5000 » Mar 26th, '14, 22:48

Check if ICMP (echo request - ping) is enabled in the firewall, the same for ssh - https://doc.mageia.org/mcc/4/en/content ... ewall.html
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Mageia PCs don't reply to pings

Postby jiml8 » Mar 27th, '14, 03:02

Also, of course, make sure ssh daemon is running.
jiml8
 
Posts: 1254
Joined: Jul 7th, '13, 18:09

Re: Mageia PCs don't reply to pings

Postby wobo » Mar 27th, '14, 07:04

I confirm not receiving pings nor sending pings with my laptop, not even with my gateway (router).
Pinging my router with my desktop works ok.

Both machines are MGA4, laptop is a new installation, desktop is an upgrade from MGA3. Which points to a change in settings (I never touched these settings before).
wobo
---
And a new day will dawn for those who stand long
And the forests will echo with laughter
(Stairway to Heaven, Led Zeppelin)
User avatar
wobo
 
Posts: 1649
Joined: Mar 22nd, '11, 17:13

Re: Mageia PCs don't reply to pings

Postby Parckwart » Mar 27th, '14, 09:13

Enabling in firewall settings worked.
Parckwart
 
Posts: 11
Joined: Oct 27th, '13, 10:12

Re: [SOLVED] Mageia PCs don't reply to pings

Postby wobo » Mar 27th, '14, 10:08

Not here :(
Checking firewall settings was the first I tried before I wrote my forum post.
wobo
---
And a new day will dawn for those who stand long
And the forests will echo with laughter
(Stairway to Heaven, Led Zeppelin)
User avatar
wobo
 
Posts: 1649
Joined: Mar 22nd, '11, 17:13

Re: [SOLVED] Mageia PCs don't reply to pings

Postby nero » Mar 27th, '14, 11:44

wobo wrote:Not here :(
Checking firewall settings was the first I tried before I wrote my forum post.


run that in a console and post result , so we can see your fw setup:

sudo iptables -L -n
If a pc is not enought put a decent video card in a 8 core / 16 gb ram server.
User avatar
nero
 
Posts: 19
Joined: Mar 12th, '14, 21:48

Re: [SOLVED] Mageia PCs don't reply to pings

Postby wobo » Mar 27th, '14, 13:22

I disabled firewall in total
Code: Select all
[root@marvin-1 wobo]# iptables -L -n
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
wobo
---
And a new day will dawn for those who stand long
And the forests will echo with laughter
(Stairway to Heaven, Led Zeppelin)
User avatar
wobo
 
Posts: 1649
Joined: Mar 22nd, '11, 17:13

Re: [SOLVED] Mageia PCs don't reply to pings

Postby nero » Mar 27th, '14, 13:25

uhmm so if it's not a fw problem there should be some problem in the network , the source and the destination of the ping are in the same segment ?
If a pc is not enought put a decent video card in a 8 core / 16 gb ram server.
User avatar
nero
 
Posts: 19
Joined: Mar 12th, '14, 21:48

Re: [SOLVED] Mageia PCs don't reply to pings

Postby wobo » Mar 27th, '14, 13:30

All 3 devices (desktop, laptop, router) are in the same net segment - the usual home net.
wobo
---
And a new day will dawn for those who stand long
And the forests will echo with laughter
(Stairway to Heaven, Led Zeppelin)
User avatar
wobo
 
Posts: 1649
Joined: Mar 22nd, '11, 17:13

Re: [SOLVED] Mageia PCs don't reply to pings

Postby ITA84 » Mar 27th, '14, 17:45

This is only for ping responding, but do you have any custom net configuration options in /etc/sysctl.conf or /etc/sysctl.d/?
ITA84
 
Posts: 199
Joined: Mar 5th, '13, 18:15

Re: [SOLVED] Mageia PCs don't reply to pings

Postby wobo » Mar 27th, '14, 17:48

No, as long as it works I tend to leave all of those untouched.
wobo
---
And a new day will dawn for those who stand long
And the forests will echo with laughter
(Stairway to Heaven, Led Zeppelin)
User avatar
wobo
 
Posts: 1649
Joined: Mar 22nd, '11, 17:13

Re: [SOLVED] Mageia PCs don't reply to pings

Postby ghmitch » Mar 31st, '14, 03:16

Aside from firewall:

If /proc/sys/net/ipv4/icmp_echo_ignore_all is set to "1", that will inhibit pings.

If /etc/sysctl.conf contains "net.ipv4.icmp_echo_ignore_all = 1", that will inhibit pings.

And it looks like SELinux can also interfere with pings.
ghmitch
 
Posts: 325
Joined: Mar 30th, '11, 03:05
Location: Eureka California USA

Re: [SOLVED] Mageia PCs don't reply to pings

Postby wobo » Mar 31st, '14, 09:54

ghmitch wrote:If /etc/sysctl.conf contains "net.ipv4.icmp_echo_ignore_all = 1", that will inhibit pings.

Thanks, this was the culprit.
Leaves the question of who and when and why this was set to "1" - it used to be "0" until MGA3 (as I said, I never ever touched this kind of settings).
wobo
---
And a new day will dawn for those who stand long
And the forests will echo with laughter
(Stairway to Heaven, Led Zeppelin)
User avatar
wobo
 
Posts: 1649
Joined: Mar 22nd, '11, 17:13

Re: [SOLVED] Mageia PCs don't reply to pings

Postby doktor5000 » Mar 31st, '14, 21:12

Hmmm, draknetcenter says that this settings is defined by the chosen security policy (msec)
https://doc.mageia.org/mcc/4/en/content ... ml#d4e1165

But either this is buggy, or something else is involved. I've ticked that box to disable ICMP, then quit, and then rerun draknetcenter, unticked the box and quit. No change in /etc/sysctl.conf and also the settings there do not reflect the settings from draknetcenter.

On further testing, draknetcenter writes it's settings to /etc/sysctl.d/51-drakx.conf
And by default /etc/sysctl.conf is ignored in Mageia 3 and 4: https://bugs.mageia.org/show_bug.cgi?id=12066
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Mageia PCs don't reply to pings

Postby wobo » Mar 31st, '14, 21:40

doktor5000 wrote:And by default /etc/sysctl.conf is ignored in Mageia 3 and 4: https://bugs.mageia.org/show_bug.cgi?id=12066

Hmm, after I changed that setting (from "1" to "0") the machine does serve ping replies, this does not look "ignored".

Or something totally different happened at the same time ....
wobo
---
And a new day will dawn for those who stand long
And the forests will echo with laughter
(Stairway to Heaven, Led Zeppelin)
User avatar
wobo
 
Posts: 1649
Joined: Mar 22nd, '11, 17:13


Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest