VMware Modern Apps Community
mdkf
Contributor
Contributor

Permanently enable IPv4 Forwarding

Short of setting a script to run at startup, is there a way to enable IPv4 forwarding that persists across reboots?  echo "1" > /proc/sys/net/ipv4/ip_forward works until rebooted. Thanks.

Reply
0 Kudos
1 Reply
gowatana
Leadership
Leadership

Hi,

Please try below command line.

root@photon01 [ ~ ]# echo 'net.ipv4.ip_forward = 1' > /etc/sysctl.d/ip_forward.conf

Reply
0 Kudos