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