I'm trying to install openvpn in my amazon ec2 instance. I tried the following site for my setup.
In my client side I run the following command :
sudo openvpn --proto tcp-client --remote x.x.x.x.x.x. --port 80 --dev tun1 --secret ovpn.key --redirect-gateway def1 --ifconfig 10.4.0.2 10.4.0.1 --daemon
And also the following commands:
sudo mv /etc/resolv.conf /etc/resolv.conf.save
echo "nameserver $Of-My-Ec2-Machine-IP" | sudo tee /etc/resolv.conf
But once I run this command. And I tried to connect to my internet from the client side. But it fails.
And also doing :
sudo /etc/init.d/openvpn status
Doesn't give any output.
Where I'm making the mistake?
Thanks in advance.