I'm relatively new to using the command line so I'm understandably nervous about fiddling around with IP tables and accidentally doing something wrong which consequently opens up vulnerabilities in the firewall.
So, I thought I would ask here if my command usage was correct before actually trying to add this ip whitelisting rule via ssh.
iptables -I INPUT -p tcp -m multiport --dports http,https -s 18.104.22.168/24 22.214.171.124/24 126.96.36.199/21 188.8.131.52/20 184.108.40.206/22 220.127.116.11/18 18.104.22.168/18 22.214.171.124/20 126.96.36.199/20 -j ACCEPT
Is this usage correct? Not quite sure if it's possible to add all those IPs at once or if I have to add them manually one by one..