I'm trying to do a script in Bash to add some firewall rules.
The variable I'm passing isn't working, I guess I'm doing the substitution wrong.
firewall-cmd --add-rich-rule='rule family="ipv4" source address="$IP/32" port port=10000 protocol=tcp accept'
Returns
Error: INVALID_ADDR: $IP/32
What's wrong here, and how do I fix it?