OsgiliathEnterprise / platform

Platform to deploy an entire IS with all its Mail servers, CRMs, engineering suite, ...
https://osgiliathenterprise.github.io/platform/reference/toc.html
GNU Lesser General Public License v3.0
4 stars 5 forks source link

virtualization-guest - remove rich rule with same input port before redeploying new VM #68

Closed Tcharl closed 3 years ago

Tcharl commented 4 years ago

Describe the Enhancement:

If a firewalld rich rule already exist, we're constrained to execute

sudo firewall-cmd --zone=public --remove-rich-rule='rule family="ipv4" forward-port port="oldport" protocol="tcp" to-port="22" to-addr="IP"'
sudo firewall-cmd --zone=public --remove-rich-rule='rule family="ipv4" forward-port port="oldport" protocol="tcp" to-port="22" to-addr="IP2"'
sudo firewall-cmd --runtime-to-permanent

Describe the Need:

Redeploying well when we change the hostname of a VM

Current Alternative

Command expressed before

Can We Help You Implement This?:

Anyone can help!