Hello.
Back to OpenSuse Tumbleweed. (i was using DebianTesting).
I installed from Yast software management the “Proton-vpn” (Official proton vpn client) 4.15.02-2" package from OpenSuse repo.
It works.
But when i select port forwarding, i don’t see the random choose used port number. So how do i know what port ProtonVPN uses to be open? (normally-in debiantesting- the gui gives portnumber and button to copy to clipboard)
Then, i don’t see in firewall a option to add a portnumber.
Is their a more easy way, that ProtonVPN used forward portnumber is automatically accepted by openSuse firewall? Because the portnumber ProtonVPN gives is different each time it log in to VPN server.
By the way, the “Unneeded package” option in yast software management is awesome to delete unneded packages that are installed after fresh install)
Update:
I have the portnumber show up in proton-vpn gui now.
I can copy it to for example transmission network settings to give right portnumber. But transmission say portnumber (ip4 only)still closed.
I add to firewall “home” zone transmission + wireguard (wireguard is used by protonvpn)
I use Windscribe which also offers port-forwarding with varying port numbers. openSUSE firewalld will block the forwarded port unless you allow it.
I use Fish as my shell and created functions/aliases: one to create a firewalld rule allowing the port and the other to remove the port rule when finished.
Isn’t it possible that the vpn app can be excluded from firewall, so that the forwarded portnumber can make open port? I think it’s not that easy, the vpn app is just a configuration gui, the actual work is done by wireguard here (but i already add wireguard to firewall zone home.)
VPN forward port is still blocked.
I cannot imagine that i am the first one using tumbleweed, who want his torrent client(transmission) behind a vpn with forwarded portnumber
It is a bit of extra work, everytime i want to use the forwarded port from protonVPN.
But the transmission app still show that the ipv4 port is closed.
I go disable the firewall on opensuse. My router is a uptodate openwrt, and i go trust the firewall of that device (that has no forwarded ports). So that the applications on opensuse can use the forwarded port on protonvpn that runs on opensuse.
It is too much struggle with opensuse firwall to make it work properly with proton-vpn app it’s random forwarded ports.
My home server uses a gluetun container to manage ProtonVPN. Gluetun has the ability to pass ProtonVPN’s random open port as an environment variable, which you can then pass to a script for managing firewalls and so on.
I checked ProtonVPN’s support page and see that the official client saves the forwarded port to /run/user/$UID/Proton/VPN/forwarded_port, so you could presumably use that to create a script for updating the firewall rules automatically whenever ProtonVPN is connected. You would still need to configure Transmission manually each time the port changes.
I use qBittorrent (specifically a qbittorrent-nox container) which has an API for automatic port configuration that works really well with gluetun. Whenever gluetun gets a new port from ProtonVPN, it updates the setting in qBittrorrent through the API.
I don’t know if Transmission has a similar feature or not, but I would check its documentation.
i did my best, but it didn’t work properly with fedora 45 rpm’s. (so i use the outdated “proton-vpn” from opensuse repo now)
The differences between Fedora and OpenSuse is too big to let it work properly.
Good news is, i contact Proton VPN, and talk to them and tell them it is time to add a openSuse repo for uptodate protonVPN gui and cli, with the beta functions like stealth and smart (auto) protocol. The proton vpn gnome gui.
They made a ticket to the technical Linux staff of ProtonVPN. So let’s hope Proton.me realize it is time to add their Europe made VPN to a Europe made Linux distribution (with enterprise powers).
AAH, just find out the firewall is not that difficult to configure.
You have to do it when using ProtonVPN port forwarding.
And the port number need to be changed everytime ProtonVPN reconnects (because the portnumber is random).
Goto “Yast Firewall” configuration gui.
At: Startup: it shows “Reload” and “Starts on boot”
Interfaces:
Device= Identity name of network device , see network settings for used name (where cable is plugged in, or wifi device)
Zone= I use Home (if nothing their, click custom and add.)
Zones:
Click the zone you choose at Interfaces and then click “Ports”.
Add the used Proton VPN forwarded portnumber at “TCP ports” and “UDP ports”
Then click “Accept”.
And your Proton VPN port is forwarded in the firewall.
I just discover today, yesterday i was too much focussed on the zones and preconfigured apps (that’s why i choose zone Home, it is just basic services on home network, but now with Proton VPN port extra)
About proton gui app on OpenSuse: Just use the “Proton-vpn” application in opensuse repo. It isa bit outdated, but it is the most stable way to use if you want easy switching between countries. ProtonVPN Linux tech team is informed about no repo for OpenSuse. Hope they will pick it up.
Duh…even with the solution before this message, it can happen that the firewall is blocking. Like i experience now. Reconfigure same way, restart firewall, restart opensuse, but still the configured portnumber is blocked.
So most stable solution for me, disable the damn firewall.
Re: ‘Just use the “Proton-vpn” application in opensuse repo. It is a bit outdated…’
Maybe you’re not into Flatpaks, but you’ll find the Flatpak version is constantly updated. I don’t use port forwarding, so am unable to comment on that, sorry.
This is what I do and it works for me. No, you’re not the only one who port forwards changing variable (ephemeral) port numbers.
How are you checking if the port is open?
The port will be opened only when the app using the forwarded port is running and configured to use the port, otherwise, the port will be closed. Firewalld will not leave a forwarded port open when it’s not in use by a client.
Using flatpak a vpn client is more limited then using package install in distro.
Killswitch, securecore, netshield , system network integration (often) have more limitations because it runs in flatpak sandbox.
I do use flatpak: for signal app and Kodi beta.
I check port forward with Transmission torrent client (preferences, network, listening port, test port)
When i let transmission download a torrent and portnumber from protonVPN is configured in firewall and transmission, then after starting download the port stay closed for transmission. I also add transmission-client in the firewall group i use (home).
Still, port is blocked by firewall.
That’s great that Transmission is working despite the the port apparently being closed.
Just out of curiosity, how often do you use ProtonVPN on a daily basis? Is it mostly just for filesharing?
Because if it is and you aren’t too averse to using containers, running gluetun and qbittorrent-nox in Docker is really nice. I can leave qbittorrent running 24/7 and gluetun automatically updates port forwarding whenever the port changes. I’ve never had to manually configure port forwarding.
Because qbittorrent can only connect to the Internet via gluetun, it’s a natural killswitch. And because gluetun acts as a separate network interface, it’s effectively a split tunnel, so I can run only qbittorent on the VPN 24/7 and turn ProtonVPN on and off for the rest of the system through the official client.
It’s a tiny bit of extra overhead on your system because it essentially means leaving qbittorrent+gluetun running 24/7, but if you are already leaving Transmission seeding in the background, it’d be about the same. And you can always run docker compose stop to stop them if you need to.
I always use protonVPN. (not on playstation, because i want low ping)
Protonvpn has netshield, that blocksadvertisements but most important, it blocks trackers. (and normal phone apps are full of that.).
I use proton vpn on notebook, toughbook, macbook, 2 desktops and on both (android and /e/os) phones.
The portforwarding in firewall is only necessary when i use torrent traffic. So i don’t care to configure the right port in opensuse firewall when i want to use torrent. Because i need to add the portnumber also in transmission(torrent cvlient), because protonvpn use random port numbers at every start of a connection.
By the way, sorry i was complaining about the firewall, it was the portchecker in transmission that make a weird issue.
I do hope Proton will make a opensuse tumbleweed rpm repo for uptodate protonvpn (with beta functions) Like vlc has, nice opensuse repos (no codec limitations)
About transmission.
It is the perfect torrent client when using the firewall @ opensuse.
In firewall you can add at your used zone the service: transmission-client
Then you don’t need to forward ports in firewall. So the perfect option when using protonVPN with random forwarded ports. (in transmission i choose pick random port at start).
It all works fine, also with killswitch on at protonvpn. without the need to reconfigure the firewall and transmission portforwards