I'm having trouble seting-up iptables on Ubuntu 20.04.
Does anyone know why this doesn't work?
# iptables -A INPUT -m set -–match-set cf src -p tcp -m multiport –dports http,https -j ACCEPT
iptables v1.8.4 (legacy): unknown option "set"
Try `iptables -h' or 'iptables --help' for more information.
My cf
has the cloudflare ip's:
for x in $(curl https://www.cloudflare.com/ips-v4); do ipset add cf $x; done
uname -a
Linux server.example.com 5.4.0-80-generic #90-Ubuntu SMP Fri Jul 9 22:49:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux