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 22.214.171.124/24 126.96.36.199/24 188.8.131.52/21 184.108.40.206/20 220.127.116.11/22 18.104.22.168/18 22.214.171.124/18 126.96.36.199/20 188.8.131.52/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..