Sample Header Ad - 728x90

nftables anonymous subchains

1 vote
2 answers
49 views
Using ferm (the iptables generator) I can make anonymous chains like this:
saddr (1.2.3.4 2.3.4.5 3.4.5.6 4.5.6.7 5.6.7.8) @subchain {
  proto tcp dport (http https ssh) ACCEPT;
  proto udp dport domain ACCEPT;
}
Is it possible to do something similar with nftables? I tried this, but I'm not able to make it work.
ip saddr {1.2.3.4, 2.3.4.5, 3.4.5.6, 4.5.6.7, 5.6.7.8} jump {
  accept;
}
Asked by Cherrytopia (23 rep)
Jun 3, 2025, 11:50 AM
Last activity: Jun 4, 2025, 09:54 AM