

To add a forwarding rule, copy the following command (which spans over two lines in this guide) as one long line and run it in the Terminal: echo "rdr pass inet proto tcp from any to any port xxxxx -> 127.0.0.1 port 32400" | sudo pfctl -ef - (replace xxxxx with the port number you were assigned).Enable IP forwarding by opening a Terminal, and run this command:.Under General, select Run with highest privileges.In the Program/script field, click on browse and add the plex.bat that you previously created, then click Next.Select Start a program, then click on Next.Click on the Windows icon and type taskschd.msc and then hit enter.Open Notepad and paste the netsh command into it.

These steps will start the forwarding rule when you log in to Windows. Netsh interface portproxy add v4tov4 listenport=xxxxx listenaddress=0.0.0.0 connectport=32400 connectaddress=127.0.0.1 Type the following (replace xxxxx with the port number you were assigned), then hit Enter:.Type cmd, then click Run as administrator.Enter a name, for example "Plex port XXXXX", then click Finish.Check the boxes next to Private and Public, then click Next.Select Allow the connection, then click Next.Enter the port number you were assigned, then click Next.Under the Actions column, click on New Rule.Check the box next to Manually specify public port and enter the port number you were assigned, then click Apply.Click on Settings > Remote Access and enable Remote Access.In the Mullvad app click on the gear icon > Preferences and enable Local network sharing.Open the Mullvad app and reconnect to a VPN server.You will need this number (12345) for later. Click on Add port to add a port for using with Plex. The new port tag under "Active ports" includes the country, city and the port number (for example se-sto-12345).Click on Select a key and select No key (only OpenVPN), or if you are using WireGuard protocol then select the WireGuard key that you are using.Click on Select a city under "Port forwarding" and select the city that you connect to with Mullvad.Click on Manage ports and WireGuard keys.Log in to your Mullvad account on our website.
