Debian 8、ping 127.0.0.1 が動作しない

Debian 8、ping 127.0.0.1 が動作しない

私のDebian 8では、 `uname -a'は以下を提供します:

Linux uname 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux

試験を終えた

route -n以下を提供します。

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.0.2        0.0.0.0         UG    1024   0        0 eth0
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0

他のネットワーク機能は大丈夫です。

どのようping 127.0.0.1に出勤できますか?これは次の!loルールのようですが、iptablesこれを修正して変更を続行する方法がわかりません。

3591 2197K ACCEPT     all  --  !lo    any     anywhere             anywhere            

行は次のとおりです -A INPUT ! -i lo -j ACCEPT/etc/iptables.up.rules

削除しますか!

ベストアンサー1

いいえ、Jesseはデフォルトでブロックしませんでした。

ping -c 4 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.050 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.056 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.054 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.044 ms

--- 127.0.0.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.044/0.051/0.056/0.004 ms

ディスプレイiptables -Lcat /etc/hosts cat /etc/hostname

おすすめ記事