To ensure that traffic from the client is routed through the OpenVPN server’s IP address (helps masks the the client IP address), you need to enable IP forwarding on the OpenVPN server. Uncomment the line, net.ipv4.ip_forward=1 , on /etc/sysctl.conf to enable packet forwarding for IPv4

OpenVPNにてNATの設定をしても、VPN経由でアクセス出来ない … # 0 だとIPv4でパケットの転送がされない # net.ipv4.ip_forward=0 net.ipv4.ip_forward=1 念のためiptablesとopenvpnを再起動することで接続できるようになりました。 OpenVPN no longer working - Networking - Spiceworks Dec 14, 2019 OpenVPN Server and Client Installation and Configuration Jan 07, 2015

echo 1 > /proc/sys/net/ipv4/ip_forward. Next, we'll need to make this permanent so that this setting persists after a server reboot. Open the sysctl configuration file using nano or your favorite text editor. nano /etc/sysctl.conf. Near the top of the sysctl file, you will see: /etc/openvpn/server.conf.

OpenVPN no longer working - Networking - Spiceworks Dec 14, 2019

HowTo: Setup an OpenVPN Server - Flomain Networking

HowTo: Setup an OpenVPN Server - Flomain Networking Apr 08, 2019 OpenVPN Server with port forwarding | | What The Server can check for this by using the below command and looking for “net.ipv4.ip_forward = 0” and change to “net.ipv4.ip_forward = 1” nano / etc / sysctl.conf Or alternatively use the below command to add it to end of file if not enabled/commented out. echo 'net.ipv4.ip_forward = 1' >> / etc / sysctl.conf How to set up an OpenVPN server - TechRepublic Vincent Danen shows you how to set up OpenVPN and takes you through some of the tricky configuration steps to get you up and running quickly. net.ipv4.ip_forward = 1.