Quantcast
Channel: OpenVPN Support Forum
Viewing all articles
Browse latest Browse all 260

Off Topic, Related • Re: Tunnelling openvpn server out from behind cgnat.

$
0
0
update on use of ngrok (paid version - for static FQDN)

1) register an account with ngrok and note of the auth token

2) create new TCP address (cloud edge > tcp addresses > new tcp addresses) and note the address (ex : 1.tcp.ap.ngrok.io:random-port) -- make sure your account is entitled for Reserved TCP Addresses. minimum plan - devcelopment 8$/yr

3) install agent for linux, ensure that you're on root to avoid any problems (sudo su)

Code:

wget https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-arm64.tgztar -xvzf ./ngrok-v3-stable-linux-arm64.tgz -C /usr/local/binngrok config add-authtoken (from #1)
4) edit ngrok file and add the following (note the proper use of indents) and save
nano /root/.config/ngrok/ngrok.yml

Code:

version: "2"authtoken: auth-token from #1tunnels:    default:        proto: tcp        addr: 443        remote_addr: fqdn and port from #2
5) run the following to allow ngrok to run as a service automatically
ngrok service install --config /root/.config/ngrok/ngrok.yml
ngrok service start
ngrok update

Statistics: Posted by edmoncu — Sun Aug 25, 2024 2:54 pm



Viewing all articles
Browse latest Browse all 260

Trending Articles