天天看点

linux ping不允许的操作,Ubuntu 14.04获得ping:sendmsg:不允许操作

显然,问题出在我的联盟之外,Ubuntu无法访问任何网络,但不知何故,我使用虚拟机的虚拟机都可以访问互联网.我试图进行以下更改,但您可以这样做不成功.我很困惑我的盒子上有什么问题.任何帮助赞赏.

[email protected]:~$sudo ip6tables -P INPUT ACCEPT

[email protected]:~$sudo ip6tables -P OUTPUT ACCEPT

[email protected]:~$sudo ip6tables -P FORWARD ACCEPT

[email protected]:~$ping 8.8.8.8

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

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

^C

--- 8.8.8.8 ping statistics ---

2 packets transmitted, 0 received, 100% packet loss, time 1008ms

[email protected]:~$sudo iptables -P INPUT ACCEPT

[email protected]:~$sudo iptables -P OUTPUT ACCEPT

[email protected]:~$sudo iptables -P FORWARD ACCEPT

[email protected]:~$sudo service iptables restart

iptables: unrecognized service

[email protected]:~$ping 8.8.8.8

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

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

^C

--- 8.8.8.8 ping statistics ---

2 packets transmitted, 0 received, 100% packet loss, time 1008ms

IPtables有时会变得有点……不稳定,并且有许多规则不会被删除或被遗忘.

尝试iptables –flush删除所有的iptables规则.