How to add a Firewall Rule for the vFunction Server installation
Overview of the Issue
This issue occurs in the following circumstances:
- The vFunction Server VM has a firewall enabled and it is preventing the vFunction Docker Containers from communicating with one another
Solution
The following steps can be used to resolve this issue:
- Run
ifconfig -a | grep -A7 'vfunction'
to see the inet address of vfunction. The [IPADDRESS] in the next step is the inet address of vfunction where the last .1 digit is replaced with .0. For example if the inet address of vFunction is 172.18.0.1 then [IPADDRESS] in the next step is 172.18.0.0 - Run
sudo firewall-cmd --permanent --zone=public --add-rich-rule='rule family=ipv4 source address=[IPADDRESS]/16 accept'
. For example:
firewall-cmd --permanent --zone=public --add-rich-rule='rule family=ipv4 source address=172.18.0.0/16 accept'
- Run
sudo firewall-cmd --reload
to reload the firewall - Run
bash [install dir]/opt/vfunction/server-installation/upgrade.sh
to restart the vFunction Server