I've setup Open VPN server on a Linux machine in Azure IP (10.0.3.4) and the client is a window machine.
My VPN Client is able to connect to the VPN also I'm able to ssh to the VPN server.
I've created another machine in a different subnet (10.0.1.5). From my VPN Server i.e. after sshing into the VPN Server, I can ping 10.0.1.5. However, my clients cannot ping the same and machines in a different subnet.
So Far,
- I've enabled IP Forwarding in the NIC card from AZ Portal.
echo 1 /proc/sys/net/ipv4/ip_forwardenabled in VPN Server.sudo iptables -t nat -A POSTROUTING -s 172.27.232.0/24 -d 10.0.0.0/16 -j MASQUERADE
Also regarding step 3 I've doubts. After connecting to VPN I get below IP address. However, my VPN's subnet CIDR block is 10.0.3.0/24 so from where I'm getting IP 172.27.232.2?
I'm missing some basics here. Appreciate your response.
Referred This Questtion but I don't understand where to add the route? I cannot find server.conf file to make changes. I'm on openvpn 2.7.1.101. I used the Open VPN Image to set up the VPN server.
