6

Some time ago I added below rule for local port forwarding

firewall-cmd --permanent --add-forward-port=port=80:proto=tcp:toport=3000

How can I remove this rule now?

2 Answers2

8

You can remove it just as it was added:

# firewall-cmd --permanent --remove-forward-port=port=80:proto=tcp:toport=3000
# firewall-cmd --reload
guzzijason
  • 1,430
1

Instead of reloading you can also change runtime settings and then make it permanent

# firewall-cmd --permanent --remove-forward-port=port=80:proto=tcp:toport=3000
# firewall-cmd --runtime-to-permanent
Nur
  • 406