Tunnelling openvpn server out from behind cgnat.
Posted: Tue Aug 11, 2020 1:17 pm
Here's how i did mine.
1. i setup an esxi box
setup openvpnas
1. create an openvpnas account online (so that i can activate my deployment)
2. deployed openvpnas vmware appliance onto it
3. setup openvpnas from the appliance
4. activate your openvpnas deployment and configure openvpn (from the mgt) to use only TCP 443
5. add accounts as needed
5. test web/admin and client connection using internal IP (and specify it to use only TCP port 443)
setup ngrok on top of openvpnas appliance
1. download winscp and putty off your windows
2. download ngrok linux zipped binary in windows
3. winscp onto the openvpnas appliance using root creds to upload the zip file
4. ssh using putty onto the openpnas appliance and install unzip/zip using
sudo apt install unzip
sudo apt-get install zip
5. unzip the ngrok zipped file
7. on your windows pc, register a ngrok account and take note the part where it says 'connect to your account'
8. going back to ssh, type that command (as you see on the previous step 7)
./ngrok authtoken ....
9. update the automatically generated ngrok.yml file by adding the region of your choice (in my case i used region: ap)
10. run ngrok using the command
./ngrok http 443
even after doing that... i was able to connect only to my web interface (and /admin).
i was able to add the connection to the client fine and authenticate fine
however, i was unable to connect onto my openvpnas server when actually connecting.
it says "there was an error attempting to connect to the selected server"
i need help on that though as i am running out of ideas.
1. i setup an esxi box
setup openvpnas
1. create an openvpnas account online (so that i can activate my deployment)
2. deployed openvpnas vmware appliance onto it
3. setup openvpnas from the appliance
4. activate your openvpnas deployment and configure openvpn (from the mgt) to use only TCP 443
5. add accounts as needed
5. test web/admin and client connection using internal IP (and specify it to use only TCP port 443)
setup ngrok on top of openvpnas appliance
1. download winscp and putty off your windows
2. download ngrok linux zipped binary in windows
3. winscp onto the openvpnas appliance using root creds to upload the zip file
4. ssh using putty onto the openpnas appliance and install unzip/zip using
sudo apt install unzip
sudo apt-get install zip
5. unzip the ngrok zipped file
7. on your windows pc, register a ngrok account and take note the part where it says 'connect to your account'
8. going back to ssh, type that command (as you see on the previous step 7)
./ngrok authtoken ....
9. update the automatically generated ngrok.yml file by adding the region of your choice (in my case i used region: ap)
10. run ngrok using the command
./ngrok http 443
even after doing that... i was able to connect only to my web interface (and /admin).
i was able to add the connection to the client fine and authenticate fine
however, i was unable to connect onto my openvpnas server when actually connecting.
it says "there was an error attempting to connect to the selected server"
i need help on that though as i am running out of ideas.