linux ping不允许的操作,linux – ping:sendmsg:不允许操作(有时)

在运行Haproxy的Ubuntu 14.04上,在服务haproxy重新加载之后,Haproxy突然报告其背后的所有服务器.

经过一番挖掘后,我注意到ping无法正常工作,有时它能够成功ping通,然后几秒钟后我们得到错误ping:sendmsg:不允许操作.

它也无法解析subdomain.domain.com.

iptables -L没有显示任何规则. iptables –flush没有帮助.

有任何想法吗?

root@some-test:~# ping 107.1.1.1

PING 107.1.1.1 (107.1.1.1) 56(84) bytes of data.

64 bytes from 107.1.1.1: icmp_seq=1 ttl=63 time=0.425 ms

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

64 bytes from 107.1.1.1: icmp_seq=6 ttl=63 time=0.390 ms

64 bytes from 107.1.1.1: icmp_seq=7 ttl=63 time=0.533 ms

64 bytes from 107.1.1.1: icmp_seq=8 ttl=63 time=0.357 ms

64 bytes from 107.1.1.1: icmp_seq=9 ttl=63 time=0.343 ms

64 bytes from 107.1.1.1: icmp_seq=10 ttl=63 time=0.380 ms

64 bytes from 107.1.1.1: icmp_seq=11 ttl=63 time=0.398 ms

64 bytes from 107.1.1.1: icmp_seq=12 ttl=63 time=0.423 ms

64 bytes from 107.1.1.1: icmp_seq=13 ttl=63 time=0.293 ms

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

64 bytes from 107.1.1.1: icmp_seq=16 ttl=63 time=0.371 ms

64 bytes from 107.1.1.1: icmp_seq=17 ttl=63 time=0.374 ms

64 bytes from 107.1.1.1: icmp_seq=18 ttl=63 time=0.305 ms

64 bytes from 107.1.1.1: icmp_seq=19 ttl=63 time=0.259 ms

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

64 bytes from 107.1.1.1: icmp_seq=24 ttl=63 time=0.370 ms

64 bytes from 107.1.1.1: icmp_seq=25 ttl=63 time=0.316 ms

64 bytes from 107.1.1.1: icmp_seq=26 ttl=63 time=0.412 ms

64 bytes from 107.1.1.1: icmp_seq=27 ttl=63 time=0.512 ms

64 bytes from 107.1.1.1: icmp_seq=28 ttl=63 time=0.375 ms

64 bytes from 107.1.1.1: icmp_seq=29 ttl=63 time=0.352 ms

64 bytes from 107.1.1.1: icmp_seq=30 ttl=63 time=0.331 ms

64 bytes from 107.1.1.1: icmp_seq=31 ttl=63 time=0.290 ms

64 bytes from 107.1.1.1: icmp_seq=32 ttl=63 time=0.353 ms

64 bytes from 107.1.1.1: icmp_seq=33 ttl=63 time=0.378 ms

64 bytes from 107.1.1.1: icmp_seq=34 ttl=63 time=0.523 ms

64 bytes from 107.1.1.1: icmp_seq=35 ttl=63 time=0.351 ms

64 bytes from 107.1.1.1: icmp_seq=36 ttl=63 time=0.302 ms

64 bytes from 107.1.1.1: icmp_seq=37 ttl=63 time=0.496 ms

64 bytes from 107.1.1.1: icmp_seq=38 ttl=63 time=0.377 ms

64 bytes from 107.1.1.1: icmp_seq=39 ttl=63 time=0.357 ms

64 bytes from 107.1.1.1: icmp_seq=40 ttl=63 time=0.396 ms

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

64 bytes from 107.1.1.1: icmp_seq=52 ttl=63 time=0.372 ms

64 bytes from 107.1.1.1: icmp_seq=53 ttl=63 time=0.412 ms

64 bytes from 107.1.1.1: icmp_seq=54 ttl=63 time=0.321 ms

64 bytes from 107.1.1.1: icmp_seq=55 ttl=63 time=0.366 ms

64 bytes from 107.1.1.1: icmp_seq=56 ttl=63 time=0.379 ms

64 bytes from 107.1.1.1: icmp_seq=57 ttl=63 time=0.395 ms

64 bytes from 107.1.1.1: icmp_seq=58 ttl=63 time=0.488 ms

64 bytes from 107.1.1.1: icmp_seq=59 ttl=63 time=0.513 ms

64 bytes from 107.1.1.1: icmp_seq=60 ttl=63 time=0.435 ms

^C

--- 107.1.1.1 ping statistics ---

60 packets transmitted,39 received,35% packet loss,time 59008ms

rtt min/avg/max/mdev = 0.259/0.385/0.533/0.067 ms

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值