Score:1

iptables v1.8.7 (nf_tables): unknown option "--tcp-flags"

ao flag
# iptables -A INPUT -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 1300                   
iptables v1.8.7 (nf_tables): unknown option "--tcp-flags"
Try `iptables -h' or 'iptables --help' for more information.

I get this error while adding iptable commands. Any ideas? my OS: Operating System: Ubuntu 22.04.2 LTS
Kernel: Linux 5.19.0-35-generic Architecture: x86-64

ru flag
what distro is it, ```hostnamectl```, I pasted the exact command on Ubuntu 22.04.2 LTS with iptables v1.8.7 and works normally
namaiiee avatar
ao flag
Operating System: Ubuntu 22.04.2 LTS Kernel: Linux 5.19.0-35-generic Architecture: x86-64
Score:1
ao flag

I finally resolve the problem. I needed sudo access.
sudo iptables -A INPUT -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 1300

Score:0
kz flag

One possible solution is to use --syn:

iptables -A INPUT -p tcp --syn -j TCPMSS --set-mss 1300

Alternatively, you could try upgrading your version of iptables to a newer release that supports the --tcp-flags option:

iptables --version
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.