What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Solved [Terminal/Bash] retrieve vpn client's external ip?

Skillz

Occasional Visitor
Hi,

Some background info, I'm currently using Skynet with a modified (bigger/stricter) filter list.
I'm happy with my choice, except that it also blocks my vpn provider's external ip addresses.
The external vpn ip address changes every day, because I have a daily router reboot scheduled.

Does anyone know how I can retrieve the current external ip of my vpn client using terminal/bash?
(scripted whitelisting of the ip in Skynet is easy enough)

Thank you in advance!
 
It looks like /usr/sbin/gettunnelip.sh should be setting nvram var vpn_client<n>_rip.
 
Looks like I was too early with the solved tag and I'm running into an issue.

nvram get vpn_client<n>_rip is only set after I have checked out the vpn client tab.
running /usr/sbin/gettunnelip.sh (after a reboot) also doesn't seem to set vpn_client<n>_rip.
 
Looks like I was too early with the solved tag and I'm running into an issue.

nvram get vpn_client<n>_rip is only set after I have checked out the vpn client tab.
running /usr/sbin/gettunnelip.sh (after a reboot) also doesn't seem to set vpn_client<n>_rip.
What if you run
Code:
/usr/sbin/gettunnelip.sh 1
where "1" is the instance number. This assumes you're using OpenVPN.
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top