View previous topic :: View next topic |
Author |
Message |
pmatos Veteran

Joined: 06 Jun 2003 Posts: 1246 Location: Eckental, Germany
|
Posted: Thu Feb 19, 2004 4:14 pm Post subject: Kernel seems to be blocking messages |
|
|
Hi all,
I have a server running 2.6.2-rc1-gentoo, and I was happily installing vpopmail and reading the vpopmail gentoo guide. Somehow (don't ask me why) every net connections seem to stop and get blocked. Now I cannot make any socket connection. For example:
Quote: | $ ping localhost
PING descartes.geniousdomain (127.0.0.1) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
... |
Any ideas on how to unblock the situation?
Cheers, _________________ Paulo Matos |
|
Back to top |
|
 |
l0st3d n00b


Joined: 03 Nov 2002 Posts: 42
|
Posted: Thu Feb 19, 2004 5:56 pm Post subject: |
|
|
ping is setuid root
ed@cobain perl $ ls -l `which ping`
-rwsr-xr-x 1 root root 32560 Oct 30 07:00 /bin/ping
have you tried running ping as root ??? as root try
# chmod 4755 `which ping`
that might fix it |
|
Back to top |
|
 |
pmatos Veteran

Joined: 06 Jun 2003 Posts: 1246 Location: Eckental, Germany
|
Posted: Thu Feb 19, 2004 7:31 pm Post subject: |
|
|
l0st3d wrote: | ping is setuid root
ed@cobain perl $ ls -l `which ping`
-rwsr-xr-x 1 root root 32560 Oct 30 07:00 /bin/ping
|
Same here!
l0st3d wrote: |
have you tried running ping as root ??? as root try
# chmod 4755 `which ping`
that might fix it |
I was running it as root, so I get the same thing.... Any ideas? The situation is that not only ping is being blocked but all socket connections... _________________ Paulo Matos |
|
Back to top |
|
 |
pmatos Veteran

Joined: 06 Jun 2003 Posts: 1246 Location: Eckental, Germany
|
Posted: Thu Feb 26, 2004 10:20 am Post subject: |
|
|
Got it, problem solved. IPTables problem...  _________________ Paulo Matos |
|
Back to top |
|
 |
bin-doph Guru


Joined: 23 May 2003 Posts: 302
|
Posted: Mon Nov 01, 2004 10:41 am Post subject: |
|
|
hi,
why aren't you a bit more specific in the solution of your problem? _________________ perl -e '$_=q;4a75737420616e6f74686572205065726c204861636b65720as;;for(s;s;s;s;s;s;s;s;s;s;s;s){s;(..)s?;qq qprint chr 0x$1 and \161 ssq;excess;}' |
|
Back to top |
|
 |
pmatos Veteran

Joined: 06 Jun 2003 Posts: 1246 Location: Eckental, Germany
|
Posted: Tue Nov 02, 2004 3:20 pm Post subject: |
|
|
bin-doph wrote: | hi,
why aren't you a bit more specific in the solution of your problem? |
My iptables config was incorrect. I advise you to forget iptables and use shorewall. _________________ Paulo Matos |
|
Back to top |
|
 |
Thrain Guru


Joined: 01 Sep 2003 Posts: 380
|
Posted: Mon Jan 10, 2005 1:22 pm Post subject: |
|
|
Same problem on my Linux box.
I never used iptables - And I don't actually use it.
I can't ping localhost, nor my eth address, nor the router address, nor anything else.
EDIT: And I can't ping my Linux box from here (Winxp pc):
The packets don't came.
Help please! _________________ Thrain
"...only astonishment knows..." |
|
Back to top |
|
 |
pmatos Veteran

Joined: 06 Jun 2003 Posts: 1246 Location: Eckental, Germany
|
Posted: Mon Jan 10, 2005 5:52 pm Post subject: |
|
|
Thrain wrote: | Same problem on my Linux box.
I never used iptables - And I don't actually use it.
I can't ping localhost, nor my eth address, nor the router address, nor anything else.
EDIT: And I can't ping my Linux box from here (Winxp pc):
The packets don't came.
Help please! |
Can you post /etc/hosts, ping replies, ifconfig reply? _________________ Paulo Matos |
|
Back to top |
|
 |
Thrain Guru


Joined: 01 Sep 2003 Posts: 380
|
Posted: Mon Jan 10, 2005 8:18 pm Post subject: |
|
|
pmatos wrote: |
Can you post /etc/hosts, ping replies, ifconfig reply? |
Code: |
/etc/hosts:
127.0.0.1 localhost
127.0.0.1 Arda.valinor.it Arda
10.0.0.12 Arda.valinor.it Arda
10.0.0.9 Angmar.valinor.it Angmar
# IPV6 versions of localhost and co
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
ping output:
# ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
ping: sendmsg: Operation not permitted.
ping: sendmsg: Operation not permitted.
ping: sendmsg: Operation not permitted.
ping: sendmsg: Operation not permitted.
ifconfig reply:
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:10:DC:D9:EF:3B
inet addr:10.0.0.12 Bcast:255.255.255.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:696053 errors:0 dropped:0 overruns:0 frame:0
TX packets:933632 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:151567461 (144.5 Mb) TX bytes:151046681 (144.0 Mb)
Interrupt:11 Base address:0x2e00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1260494 errors:0 dropped:0 overruns:0 frame:0
TX packets:1260494 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:281899222 (268.8 Mb) TX bytes:281899222 (268.8 Mb)
|
With a reboot all returned to work fine. But I don't want that this will happen again... _________________ Thrain
"...only astonishment knows..." |
|
Back to top |
|
 |
|