Ubuntu 14.04 获取 ping:sendmsg:操作不允许

Ubuntu 14.04 获取 ping:sendmsg:操作不允许

这个问题显然超出了我的能力范围,Ubuntu 无法访问任何网络,但不知何故,使用虚拟盒的虚拟机都可以访问互联网。我尝试进行以下更改,但正如您所见,这没有成功。我很困惑我的盒子出了什么问题。任何帮助都非常感谢。

carl@carl-Latitude-E6410:~$ sudo ip6tables -P INPUT ACCEPT
carl@carl-Latitude-E6410:~$ sudo ip6tables -P OUTPUT ACCEPT
carl@carl-Latitude-E6410:~$ sudo ip6tables -P FORWARD ACCEPT
carl@carl-Latitude-E6410:~$ 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
carl@carl-Latitude-E6410:~$ sudo iptables -P INPUT ACCEPT
carl@carl-Latitude-E6410:~$ sudo iptables -P OUTPUT ACCEPT
carl@carl-Latitude-E6410:~$ sudo iptables -P FORWARD ACCEPT
carl@carl-Latitude-E6410:~$ sudo service iptables restart
iptables: unrecognized service
carl@carl-Latitude-E6410:~$ 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

答案1

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

尝试iptables --flush删除所有 iptables 规则

相关内容