Page 2 of 2

Re: Openvpn Can Connect Through Proton Vpn Servers

Posted: Mon Nov 11, 2024 9:51 pm
by williwaw
wizard wrote: Mon Nov 11, 2024 9:24 pm

@Sofiya

What method and script are you usiing?

Thanks
wizard

Is this thread related to an earlier one where questions were posted about setting up vpn in bookworm which uses conman?

networkmanager is easy to work with if you have it.


Re: Openvpn Can Connect Through Proton Vpn Servers

Posted: Mon Nov 11, 2024 9:56 pm
by wizard

@williwaw

Is this thread related to an earlier one where questions were posted about setting up vpn in bookworm which uses conman?

Nope

wizard


Re: Openvpn Can Connect Through Proton Vpn Servers

Posted: Tue Nov 12, 2024 11:51 am
by Governor
wizard wrote: Mon Nov 11, 2024 3:41 pm

@Governor

Can you make it so the current proton connection will automatically close when choosing a new connection?

Try this:
VPN-CONNECT2a.sh.gz

wizard

Very nice indeed. Thanks!
:thumbup2:


Re: Openvpn Can Connect Through Proton Vpn Servers

Posted: Tue Nov 12, 2024 2:03 pm
by Trapster

For those who like to know where the vpn is connected to(from) without using a browser,
use this in a console:

Code: Select all

curl -s https://ipinfo.io/$(curl -s https://ipinfo.io/ip) | grep city | cut -c 10-

I also use this in conky.


Re: Openvpn Can Connect Through Proton Vpn Servers

Posted: Tue Nov 12, 2024 2:34 pm
by Sofiya

in Conky

Code: Select all

#=== VPN========================================================================================================================
${voffset 1}${offset 10}${font Arial:normal:size=10}${color #ab0d85}VPN ${color} ──────────────────────────────────────
${voffset 1}${offset 10}${font Roboto:pixelsize=12}${color #aaaaff}External ip:${offset 20}$color${execi 600 curl ifconfig.co 2>/dev/null | tail } \
${voffset 1}${offset 10}${color #aaaaff}Land:${offset 20}$color${execi 300 wget -qO- ipinfo.io 2> /dev/null | grep "country" | awk -F'"' '{print $4}'} \
${voffset 1}${offset 10}${color #aaaaff}Stad:${offset 20}$color${execi 300 wget -qO- ipinfo.io 2> /dev/null | grep "city" | awk -F'"' '{print $4}'} \
${voffset 1}${offset 10}${color #aaaaff}Regio:${offset 20}$color${execi 300 wget -qO- ipinfo.io 2> /dev/null | grep "region" | awk -F'"' '{print $4}'}

Re: Openvpn Can Connect Through Proton Vpn Servers

Posted: Tue Nov 12, 2024 11:51 pm
by spiritwild

works with vpngate https://www.vpngate.net/en/ as well I just modified this pet "sonny" posted

POST: viewtopic.php?t=11857

PET:download/file.php?id=24254 Free VPN for FossaPup64 / VPN on/off

hit and miss at times


Re: Openvpn Can Connect Through Proton Vpn Servers

Posted: Thu Nov 14, 2024 1:27 pm
by Governor
Trapster wrote: Tue Nov 12, 2024 2:03 pm

For those who like to know where the vpn is connected to(from) without using a browser,
use this in a console:

Code: Select all

curl -s https://ipinfo.io/$(curl -s https://ipinfo.io/ip) | grep city | cut -c 10-

I also use this in conky.

How can I use this is a script that I can click on in Rox or on the desktop?
Thanks.


Re: Openvpn Can Connect Through Proton Vpn Servers

Posted: Thu Nov 14, 2024 1:54 pm
by Trapster

Quick and dirty, something like this will work.

Code: Select all

#!/bin/bash

curl -s https://ipinfo.io/$(curl -s https://ipinfo.io/ip) | grep city | cut -c 10- > /tmp/city.txt

xmessage -center -bg orange -fg black -file /tmp/city.txt

Re: Openvpn Can Connect Through Proton Vpn Servers

Posted: Fri Nov 15, 2024 5:21 pm
by Governor
Trapster wrote: Thu Nov 14, 2024 1:54 pm

Quick and dirty, something like this will work.

Code: Select all

#!/bin/bash

curl -s https://ipinfo.io/$(curl -s https://ipinfo.io/ip) | grep city | cut -c 10- > /tmp/city.txt

xmessage -center -bg orange -fg black -file /tmp/city.txt

Ahh! Thank you. Works for me. :thumbup: