How to check Ipv4 Port Forwarding and to enable if required?
Ipv4 Port Forwarding is a requirement for Automation Suite to run. If disabled, see pods go into an unhealthy state.
- To check if Ipv4 Port forwarding is enabled, run the below command
- sysctl net.ipv4.ip_forward
- See the below returned. If Ipv4 forwarding is set to 1, it is enabled. If 0, it is disabled and it is required to
- To enable Ipv4 Forwarding, run the below command -
- sysctl -w net.ipv4.ip_forward=1
- Updating this way does not persist. Confirm with internal admin team, to make sure there are not any policies in place to disable Ipv4 Port Forwarding.
- Perform the below steps to make these settings persist,
- Run sudo nano /etc/sysctl.conf
- Update config file with below line and save file
- net.ipv4.ip_forward = 1
- As mentioned, this will make ipv4 port forwarding rules to persist, however confirm with internal team that there are no policies that contradict this policy, as this setting may get overridden.