From: Paulo Ricardo Bruck <pauloric@contatogs.com.br>
To: Linux Scoop <linuxscoop@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: cannot allow outbound ping traffic
Date: Tue, 3 May 2022 11:02:36 -0300 (BRT) [thread overview]
Message-ID: <1702744278.936.1651586556340.JavaMail.zimbra@contatogs.com.br> (raw)
In-Reply-To: <CAE-E4dTvSS6oG9aE5wWnhhQRmD1sqd2+CFYxRcCpKX9Ev64Duw@mail.gmail.com>
remember that is a pair. Output + Input...
You only let output as accept. What about input?
best regards
----- Mensagem original -----
De: "Linux Scoop" <linuxscoop@gmail.com>
Para: netfilter@vger.kernel.org
Enviadas: Terça-feira, 3 de maio de 2022 10:59:00
Assunto: cannot allow outbound ping traffic
Hello netfilter community,
I am running into a problem where I cannot ping other hosts if I have
nftables service turned on.
I have the following rule for outgoing traffic (basically allows all
outgoing traffic)
chain OUTBOUND {
type filter hook output priority 0; policy accept;
}
But I cannot ping any inside or outside IPs, eg.
[root@lxdvfs1a nftables]# ping -vv 172.29.28.1
ping: socket: Permission denied, attempting raw socket...
PING 172.29.28.1 (172.29.28.1) 56(84) bytes of data.
153 packets transmitted, 0 received, 100% packet loss, time 151999ms
If I turn off nftables service, I can ping any IPs normally.
[root@lxdvfs1a nftables]# ping 172.29.28.1
PING 172.29.28.1 (172.29.28.1) 56(84) bytes of data.
64 bytes from 172.29.28.1: icmp_seq=1 ttl=64 time=1.64 ms
64 bytes from 172.29.28.1: icmp_seq=2 ttl=64 time=0.446 ms
64 bytes from 172.29.28.1: icmp_seq=3 ttl=64 time=0.488 ms
I also tried adding the following to explicitly allow outgoing ping,
but it did not work either.
icmp type echo-request ct state new,established accept
Any insight/help would be appreciated.
Thanks,
Lihua Wang
Sysadmin at CUNY Graduate Center
--
Pau lo Ricardo Bruck consultor
tel 011 3596-4882
cel 98140-9184(TIM/Whats)
[ http://www.contatogs.com.br/ | http ] [ http://www.contatogs.com.br/ | s://www.contatoglobal.com.br ]
Domou arigatou gozaimasu
next prev parent reply other threads:[~2022-05-03 14:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAE-E4dSkxc9d4sCWAs6dC=NjH3x6NuEKxyv9O9N4fG0hSncydQ@mail.gmail.com>
2022-05-03 13:59 ` cannot allow outbound ping traffic Linux Scoop
2022-05-03 14:02 ` Paulo Ricardo Bruck [this message]
2022-05-03 14:28 ` Linux Scoop
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1702744278.936.1651586556340.JavaMail.zimbra@contatogs.com.br \
--to=pauloric@contatogs.com.br \
--cc=linuxscoop@gmail.com \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox