Fortigate Rules Plex Media Server

Tl;dr: If publishing your Plex Server behind a Fortigate running FortiOS 6.0.2 and you want to use a second static IP address for your server, you have to create the VIP and NOT use port forwarding. After you create the VIP, then you can set your IPv4 Policy to allow TCP32400 to. I opened the same ports on the Fortigate I used for my previous router. I have created a virtual IP group 'PC server' with the 4 virtual IPs and created a IP4 policy called port forwarding. Incoming interface is WAN 1 which is connected to the cable modem, outgoing interface is 'internal' which is LAN port 1 and connected to an access point.

For years I was dedicated to my craft of buying records of vinyl, ripping the songs to WAV and Djing alongside my digital collection of music compiled over years from various sources. More recently, I've found myself almost entirely converted to the use of Spotify! However, some of my more obscure soundcloud downloads and vinyl rips are missing from Spotify and so an Azure based Plex server, and the Plex app on my laptop and phone are the perfect solution.

Fortigate rules plex media server free

I followed the steps from this video https://youtu.be/ylklaOXz8Fc with a few tweaks along the way.

Virtual Machine

Fortigate Rules Plex Media Server Login

  1. Download Plex Media Server from https://www.plex.tv/media-server-downloads/. In this tutorial, I will use a Linux VM and so downloaded the Linux version of Plex.
  2. Create a resource group. Mine is called 'Plex'.
  3. Inside 'Plex' RG, create a storage account. Mine is called 'alexplex'.
  4. Once created, inside your storage account e.g. 'alexplex', click File shares (under File Service) and add a File share. Mine is called 'plex' and I set the Quota as 1024.
  5. Inside 'Plex' RG, create a virtual network. Mine is called 'plex-vnet'.
  6. Inside 'Plex' RG, create a Linux virtual machine. I used the most recent Ubuntu Server OS image available on the Azure Marketplace. I used a B1s VM and mine is called 'plex-LVM1'.
  7. Link the previously created storage to the VM.
  8. Click on Network Security Group, and add an inbound rule for 1001 port.
  9. Validate and Deploy VM. Once deployed, copy the public IP address for the VM.
Plex

PuTTy

  1. As I'm using a Linux VM, I am going to use PuTTy. Download PuTTy from https://www.ssh.com/ssh/putty/linux/
  2. Open PuTTy and paste your VM's IP address into the Host Name field.
  3. Click the plus next to SSH on the left panel, then click Tunnels.
  4. Enter 8888 into the Source port field and localhost:32400 in Destination field.
  5. Click Session on the left panel, save this PuTTy configuration, and then click Open.
  6. Enter your password to log in to the VM.
  7. Enter the following commands:

Plex

PlexFortigate rules plex media server download
  1. Open a browser window and type http://localhost:8888/web into the address bar.
  2. Log in with your Plex account and go through the steps to setup the Plex Server.
  3. When at the main Plex homescreen and ready to add media, return to the Azure Portal.
  4. Find your File share e.g. 'plex' and click Connect.
  5. Copy the command for Linux.
  6. Open PuTTy and run this command to mount your file share to a directory on the VM.
  7. Return to Plex, and click to Add Library. Browse for Media Folder and select the folder on your file share.

Fortigate Rules Plex Media Server Free

Azure Storage Explorer

Fortigate Rules Plex Media Server

  1. Open Azure Storage Explorer. You may need to install this if it is not installed on your local machine.
  2. Add your Azure account and sign in
  3. Find your File share e.g. 'plex' and start to add your media from your local machine to the File share
  4. Open Plex and see your files begin to show :)