Looking for step by step instructions for how to portforward a PIA VPN on OPNsense

Howdy,

I have a media server on my home network that I use for movies and such. I currently have all traffic on this media server go through a interface on OPNsense that is just a PIA VPN. At this time I have not port forwarded this VPN and my download speeds are suffering (2-3mb/s max) I hear port forwarding will likely fix this. However I have no idea how to do this on my OPNsense box. Would some be able to provide ne detailed instructions on how to do this?

There should be an alias already named “pia_[country]_port”, assuming you have

"portForward": true

In your PIAWireguard.json file.

Then just create a NAT rule with destination WAN_PIAWG Address, port “pia_[the country you’re using]_port” and redirect to the server IP/port

Easiest way by far is to leverage this awesome script that automates everything; creates the connection, the port forwarding, and the aliases. You have to paste your variables into the script on first run, but it’s easy peasy downstream after that.