Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] WARNING: Failed to get firewall packets in new iptables version #3280

Open
yuxisun1217 opened this issue Dec 24, 2024 · 0 comments
Open
Assignees

Comments

@yuxisun1217
Copy link

Describe the bug: A clear and concise description of what the bug is.

After provisioning VM on Azure, see WARNING log in waagent.log:

WARNING ExtHandler ExtHandler Failed to get firewall packets: 'iptables -w -t security -L OUTPUT --zero OUTPUT -nxv' failed: 2 (iptables v1.8.11 (nf_tables): Illegal option `--numeric' with this command
Try `iptables -h' or 'iptables --help' for more information.)

If removing '-n' and '-x', only run "iptables -w -t security -L OUTPUT --zero OUTPUT -v", this command works well:

# iptables -w -t security -L OUTPUT --zero OUTPUT -v
Chain OUTPUT (policy ACCEPT 3040 packets, 422K bytes)
 pkts bytes target     prot opt in     out     source               destination        
    0     0 ACCEPT     tcp  --  any    any     anywhere             168.63.129.16        tcp dpt:domain
17000 4324K ACCEPT     tcp  --  any    any     anywhere             168.63.129.16        owner UID match root
    0     0 DROP       tcp  --  any    any     anywhere             168.63.129.16        ctstate INVALID,NEW
Zeroing chain `OUTPUT'

No such issue in RHEL-9.

Distro and WALinuxAgent details (please complete the following information):
RHEL-10
WALinuxAgent-2.9.1.1
Python: 3.12.8
Goal state agent: 2.9.1.1
iptables-nft-1.8.11-6

@narrieta narrieta self-assigned this Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants