ansred
March 20, 2021, 10:56am
1
Using OpenWRT router - I need to show the forwarded port available when connected as OpenVPN client
Greetings
I have following router
root@GL-MT1300:~# cat /etc/os-release
NAME="OpenWrt"
VERSION="19.07.4"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="OpenWrt 19.07.4"
VERSION_ID="19.07.4"
HOME_URL="https://openwrt.org/"
BUG_URL="https://bugs.openwrt.org/"
SUPPORT_URL="https://forum.openwrt.org/"
BUILD_ID="r11208-ce6496d796"
OPENWRT_BOARD="ramips/mt7621"
Details:
I have it connected via PIA VPN as client without issues and I can see the IP from PIA working.
root@GL-MT1300:~# curl ifconfig.io
154.3.40.125
Request:
I need to show the forwarded port available when connected as OpenVPN client
Can someone help please what command I can use in order to view the available port?
Extra details:
PIA VPN - https://www.privateinternetaccess.com/pages/client-support/#eighth
OpenWRT Router: https://www.gl-inet.com/products/gl-mt1300/
ansred
March 20, 2021, 12:25pm
3
I meant to show which port PIA offered.
Usually, they offer forwarded ports to specific servers when you connect to.
I can do that using their software.
Like this
I am trying to find this port using SSH on the openwrt router.
You want, in openwrt, display/discover what ports have been opened by/in PIA?
krazeh
March 20, 2021, 12:54pm
5
PIA doesn't automatically open a forwarded port. If you want to do it outside the app you have to get an auth token, then submit a request through their API. This needs repeating every 15 minutes to keep the port open.
They have scripts available on pia-foss/manual-connections: Scripts for manual connections to Private Internet Access (github.com) but I'm not sure if they'll need adapting for OpenWRT.
1 Like
ansred
March 20, 2021, 12:55pm
6
Yes, I can do with this docker container, but not familiar with openwrt how to do so or if it's showing the logs while the VPN is connected.
Port-forwarding
VPN client in a thin Docker container for multiple VPN providers, written in Go, and using OpenVPN, DNS over TLS, with a few proxy servers built-in.