If you want to add routing to Private Network like Pritunl Server, you can follow this step for OpenVPN CLI
Assume 192.168.10.0/24
are network we want to reach from OpenVPN Client
nano /etc/openvpn/server.conf
push route "192.168.10.0 255.255.255.0"
systemctl restart openvpn@server
Assume wg0
are interface to reach private segment network from OpenVPN Server & 10.8.0.0/24
are VPN Segment
sudo iptables -t nat -L --line-numbers
iptables -t nat -I POSTROUTING -o wg0 -s 10.8.0.0/24 -j MASQUERADE
iptables -t nat -D POSTROUTING -o wg0 -s 10.8.0.0/24 -j MASQUERADE
or you can use this
iptables -t nat -I POSTROUTING 1 -o wg0 -s 10.8.0.0/24 -j MASQUERADE
iptables -t nat -D POSTROUTING -o wg0 -s 10.8.0.0/24 -j MASQUERADE