ping: sendmsg: Operation not permitted
Olá,
Estou com um PC, duas placas de rede, eth0 para internet com IP dinamico, e eth1 com ip estático 192.168.0.254/24. Esta acontecendo uma coisa esquisita quando faco um ping para qualquer maquina da rede interna (exceto o proprio endereço do firewall):
PING 192.168.0.169 (192.168.0.169) 56(84) bytes of data.
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
--- 192.168.0.169 ping statistics ---
9 packets transmitted, 0 received, 100% packet loss, time 8015ms
Jah tirei o firewall (iptables -F, -X, -t nat -F, -t nat -X) e nda. Lembrando que pingo 127.0.0.1, 192.168.0.254 (end da eth1) e qualquer outro end da Internet normalmente ! Estou logado como root....
Alguem sabe o que é isso ?
Abraços,
ping: sendmsg: Operation not permitted
Realmente estranho!
Você checou as politicas padrões do firewall?
Mostra o que o comando "iptables -L" retorna!
ping: sendmsg: Operation not permitted
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- localnet/24 anywhere
ACCEPT tcp -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT udp -- anywhere anywhere udp spt:domain
ACCEPT udp -- anywhere anywhere udp dpt:bootpc
ACCEPT udp -- anywhere anywhere udp dpt:bootps
ACCEPT udp -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere icmp echo-request limit: avg 1/sec burst 5
ACCEPT icmp -- anywhere anywhere icmp echo-reply
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- localnet/24 anywhere
ACCEPT tcp -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere localnet/24
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ping: sendmsg: Operation not permitted
execute os comandos
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F
iptables -X
e tente fazer o ping novamente!
:D
ping: sendmsg: Operation not permitted
digite
ls -l $(which ping)
se não tiver SUID então somente como root vai poder usa-lo