Hi,
I'm trying to set up OpenVPN on an Ubuntu machine in the cloud. I looked at https://www.cyberciti.biz/faq/install-c ... n-9-linux/ and did this:
sudo apt install net-tools
wget https://git.io/vpn -O openvpn-install.sh
bash openvpn-install.sh
Then in the prompts, I put the private IP of the Azure VM(which is 10.0.1.4), port 1194 (I opened this port in the firewall rules for the VM in Azure), then I choose Google DNS.
Then in /etc/openvpn/server/server.conf , I added this line: push "route 10.0.1.0 255.255.255.0"
Then after that, I generate a new vpn file and it connects which look fine:
2021-08-20 14:56:29 net_route_v4_add: X.X.X.X/32 via 10.0.2.2 dev [NULL] table 0 metric -1
2021-08-20 14:56:29 net_route_v4_add: 0.0.0.0/1 via 10.8.0.1 dev [NULL] table 0 metric -1
2021-08-20 14:56:29 net_route_v4_add: 128.0.0.0/1 via 10.8.0.1 dev [NULL] table 0 metric -1
Note: Public IP of my server has been replaced with X.X.X.X
Now after connecting, I try to reach a webservice on port 8000, by going to 10.0.1.4:8000, and I can see the startpage of the webservice, but when I click around on all buttons it hangs.
It does not hang if I go to the public IP of this webservice on my host (so without any vpn stuff), and I can use the webpage perfectly. But somehow, it hangs when I click around when I try to visit the internal IP of this page after connecting to the VPN. I am doing this test so make sure the VPN works as intended.
Anyone have any idea what I may be missing or doing wrong?
Thanks in advance!
Problems setting up OpenVPN
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.