LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-20-2015, 10:29 AM   #1
English_Man
Member
 
Registered: Feb 2004
Location: Stockholm SWEDEN
Distribution: Ubuntu server 15.10
Posts: 60

Rep: Reputation: 15
[SOLVED] Allow Plex Media Server traffic to bypass VPN connection


I looked around and couldn't find any similar posts. My apologies if this has been asked before.

I am running a simple plex media server on a Kubuntu 15.10 machine.

Everything works fine, including remote access.

However when I activate my VPN (its included in my Broadband package) remote access stops working.

The VPN that I have setup is a simple PPTP connection.

It works fine, no problems at all except for the plex server issue.

Is there anyway, that the traffic to and from this program is routed around the VPN?

The plex website says the following about the ports it uses;

Quote:
The most important port to make sure your firewall allows is the main TCP port the Plex Media Server uses for communication:

TCP: 32400 (for access to the Plex Media Server) [required]

The following ports are also used for different services:

UDP: 1900 (for access to the Plex DLNA Server)
TCP: 3005 (for controlling Plex Home Theater via Plex Companion)
UDP: 5353 (for older Bonjour/Avahi network discovery)
TCP: 8324 (for controlling Plex for Roku via Plex Companion)
UDP: 32410, 32412, 32413, 32414 (for current GDM network discovery)
TCP: 32469 (for access to the Plex DLNA Server)
Any help in getting this to work would be greatly appreciated.

Thanks in advance.

Last edited by English_Man; 01-02-2016 at 10:50 PM. Reason: Fixed my problem, see comment below
 
Old 12-29-2015, 04:48 AM   #2
English_Man
Member
 
Registered: Feb 2004
Location: Stockholm SWEDEN
Distribution: Ubuntu server 15.10
Posts: 60

Original Poster
Rep: Reputation: 15
Would it help matters if I used openvpn instead of PPTP?

I was hoping there would be a magic iptables rule I could use to divert the plex traffic around the vpn.
 
Old 01-02-2016, 08:46 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
Just some ideas off the top of my head since this has sat there for a while.

In general, a vpn isn't meant to be broken to allow this. It's suppose to prevent this but I've seen it done many times.

I forget what it takes to bypass a vpn but I get the feeling that you might be able to set up an alias network outside of the vpn for plex. I do know that there are ways to bypass a vpn for ip addresses. You wouldn't want to change or try to test for media or protocol types.

Cisco may allow you to use a split tunnel.


Another idea may be to see this. http://www.cyberciti.biz/tips/config...x-systems.html

Not much help but at least an answer.
 
Old 01-02-2016, 10:49 PM   #4
English_Man
Member
 
Registered: Feb 2004
Location: Stockholm SWEDEN
Distribution: Ubuntu server 15.10
Posts: 60

Original Poster
Rep: Reputation: 15
I have actually managed to fix this using a virtual machine.

I use my physical machine with a full VPN for all my day-to-day needs and a virtual install of ubuntu on VirtualBox that's running a plex server.

VirtualBox have a nice easy way of sharing folders/drives with a virtual machine.

I configured it with a bridged connection back to my nic so it bypasses the VPN and allows remote connections to the plex media server.

Its working like a dream and hardly impacts the system at-all.

Thanks for you input anyway.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to install plex media server on slackware 64 kaneh Slackware 2 09-15-2013 06:17 AM
Plex Media Server on Slackware64 Gee Man Slackware 1 10-01-2012 06:12 PM
LXer: Plex Media Server + Roku = Awesome LXer Syndicated Linux News 0 08-27-2012 12:30 PM
LXer: Plex Media Server + Roku = Awesome LXer Syndicated Linux News 0 08-13-2012 05:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration