Fortigate Rules Plex Media Server

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.

  1. Fortigate Rules Plex Media Server
  2. Fortigate Rules Plex Media Server Free
  3. Fortigate Rules Plex Media Server Download

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

Plex Media Server is a desktop app and the backend server for the Plex media streaming service, designed for streaming movies, TV shows, music, and photo collections to over the Internet and on.

  • Next-generation firewalls (NGFWs) filter network traffic to protect an organization from internal and external threats. Along with maintaining features of stateful firewalls such as packet filtering, IPsec and SSL VPN support, network monitoring, and IP mapping features, NGFWs possess deeper content inspection capabilities.
  • Go to FortiView Policies and select the now view. You can see traffic flowing through all three security policies. Right-click on the Admin policy and select Drill Down to Details. View the Sources tab to confirm that this policy is being used exclusively by SysAdminPC.

Virtual Machine

  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.
Fortigate Rules Plex Media ServerFortigate rules plex media server free

Fortigate Rules Plex Media Server

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

Fortigate Rules Plex Media Server Free

  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.

Azure Storage Explorer

Fortigate Rules Plex Media Server Download

  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 :)