



To start the OpenVPN service, run the command: systemctl -f start Then, enable it to start up at boot by running: systemctl -f enable Verify the service is active with: systemctl status output should respond that the OpenVPN service for the server is active (running). Finally, restart the service: systemctl restart rvice Step 6: Start OpenVPNġ. Add the following line at the top of the file: _forward = 1Ħ. Move on to routing all web traffic from the client to the server’s IP address by enabling IP forwarding. Reload firewalld for the changes to take place: firewall-cmd -reloadĤ. Next, permanently add the routing rule using the variable created above: firewall-cmd -permanent -direct -passthrough ipv4 -t nat -A POSTROUTING -s 10.8.0.0/24 -o $VAR -j MASQUERADEģ. However, you can create a variable under the name of your choice. In the command below, the variable is named VAR. Create a variable that represents the primary network interface used by your server. Once you have completed the steps above, move on to routing to your OpenVPN subnet.ġ.
