console external IP
Posted: Thu Jan 04, 2024 1:43 pm
Hello!
First of all - happy New Year!
I'm looking to create some "kill script" if for some reason (not important what reason) VPN fails and torrent starts to use my provider's external IP instead of the VPN IP.
My setup is split - I have deluged running on a separate Linux host and a few thin clients as UI for ease of use. I have set up split tunnel VPN so only external traffic for deluged is routed to VPN - local traffic is still local.
So the best way to determine if the external IP is a VPNs or not is to ask Deluge for an external address. In the Windows thin client I can see easily it in the status bar, but is there any way to get it from the console?
I have played with deluge-console but unfortunately, I can't get it to show external IP.
To be honest I couldn't find any informative documentation about deluge-console, only basic help similar to Linux man pages where I can't see anything of particular interest.
As it won't be specific enough I don't consider checking for the tun interface if it's up and connected, there are too many other things in the setup that can fail at some point.
Any ideas or help on how to get the current external IP from deluged?
Thanks & best regards!
First of all - happy New Year!

I'm looking to create some "kill script" if for some reason (not important what reason) VPN fails and torrent starts to use my provider's external IP instead of the VPN IP.
My setup is split - I have deluged running on a separate Linux host and a few thin clients as UI for ease of use. I have set up split tunnel VPN so only external traffic for deluged is routed to VPN - local traffic is still local.
So the best way to determine if the external IP is a VPNs or not is to ask Deluge for an external address. In the Windows thin client I can see easily it in the status bar, but is there any way to get it from the console?
I have played with deluge-console but unfortunately, I can't get it to show external IP.
To be honest I couldn't find any informative documentation about deluge-console, only basic help similar to Linux man pages where I can't see anything of particular interest.
As it won't be specific enough I don't consider checking for the tun interface if it's up and connected, there are too many other things in the setup that can fail at some point.
Any ideas or help on how to get the current external IP from deluged?
Thanks & best regards!