天天看點

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規則.