So I recently figured out that my server was directly exposed to the internet (thank you to the person that changed my server name to alert me).
So, I’ve disabled remote access in the server settings and I’ve blocked the inbound firewall NAT rule. I now see that traffic is trying to go from my server leaving on port 32400 to places all around the world (sg, mx, ie, various us ISP (verizon, mycingular, etc). What could be causing this?
@depasseg said:
So I recently figured out that my server was directly exposed to the internet (thank you to the person that changed my server name to alert me).
So, I’ve disabled remote access in the server settings and I’ve blocked the inbound firewall NAT rule. I now see that traffic is trying to go from my server leaving on port 32400 to places all around the world (sg, mx, ie, various us ISP (verizon, mycingular, etc). What could be causing this?
the remote access for plex, and the port to get data.
@starbetrayer said:
the remote access for plex, and the port to get data.
Which would make sense if remote access was enabled and allowed through the firewall. But remote access is disabled and both inbound and outbound port 32400 traffic is blocked at the firewall.
@starbetrayer said:
the remote access for plex, and the port to get data.
Which would make sense if remote access was enabled and allowed through the firewall. But remote access is disabled and both inbound and outbound port 32400 traffic is blocked at the firewall.
plex goes to get metadata through port 32400 as well.
It looks like metadata is retrieved using https from random high number ports on the server to port 443 at google, amazon and linode. I don’t think it’s looking in singapore, mexico, ireland and ATT wireless phones for metadata.
Just commenting on the first post - there were some FreeNAS plugin releases that had an incorrect Preferences,xml released which had a preset MachineIdentifier and also had the setting disableRemoteSecurity set to 1. This problem goes back a couple of years and did get reported in the forums for 12 months or so after that - so may be you had a bad download for the Plex Media Server install on the freenas and picked up some old faulty install file
This jail has been running for a long time (over a year), but was updated in ~Jan. The original problem I believe was due to me setting disableRemoteSecurity to 1 a little while ago to do some troubleshooting and forgetting to switch it back. (there is a checkbox in the jail setup which makes this easy). So it was 0 for a long time, and is now set back to 0.
Is there a way to get a new machine identifier? I’ve tried reclaiming the server with my credentials, but that doesn’t seem to help.
I’ve also reset my password and forced devices to re-authenticate. And I also noticed a bunch of unknown devices which I’ve deleted.
I’ve even rolled back the server snapshot state to before I made the change (and was accessible). And somehow the connections keep getting established.
It’s almost like my server checks in with Plex, and gets a list of clients to go talk to, and reaches out to them. over and over.
And I’m in the process of setting up a new jail. I’m afraid to move anything from one to the other (in terms of settings). Is there a safe way to capture the “watched” history to migrate that without possibly bringing this issue with me?
I believe with disableRemoteSecurity set correctly then all remote attempts will need to authenticate and connections will bounce.
Why not also change your public port so port forward that to local port 32400 and enter the new public port in the manually specify public port field ?
May 23, 2016 17:41:59 [0x80e227400] DEBUG - HTTP requesting POST https://plex.tv/servers.xml?auth_token=xxxxxxxxxxxxxxxxxxxx
May 23, 2016 17:41:59 [0x80c914c00] DEBUG - PubSubManager: Time to connect to 45.33.73.209 was 61 ms.
May 23, 2016 17:41:59 [0x80c914c00] DEBUG - PubSubManager: Time to connect to 45.79.198.112 was 110 ms.
May 23, 2016 17:41:59 [0x80c914c00] DEBUG - PubSubManager: Time to connect to 45.79.11.43 was 165 ms.
May 23, 2016 17:41:59 [0x80c914c00] DEBUG - PubSubManager: Time to connect to 109.237.24.233 was 182 ms.
May 23, 2016 17:41:59 [0x80c914c00] DEBUG - PubSubManager: Time to connect to 173.255.253.36 was 182 ms.
May 23, 2016 17:41:59 [0x80c914c00] DEBUG - PubSubManager: Time to connect to 82.94.168.14 was 235 ms.
May 23, 2016 17:41:59 [0x80c914c00] DEBUG - PubSubManager: Time to connect to 104.214.144.122 was 380 ms.
May 23, 2016 17:41:59 [0x80c914c00] DEBUG - PubSubManager: Time to connect to 139.162.7.93 was 525 ms.
May 23, 2016 17:41:59 [0x80c914c00] DEBUG - PubSubManager: Updating best ping time for 45.33.73.209 to 61 ms.
The above messages are normal. Plex maintains several pubsub servers around the world and PMS will test all of them to determine the best server to connect to. This is for the relay feature.
Also keep in mind that turning off remote access in PMS does not remove the port forwarding in your router if you set one up manually. It would still be possible for someone to try to connect to your network and if port forwarding is still enabled, the requests would still get to your computer.
And yes, my tool is for Windows. No you will not lose watched status by changing the machine identifier. My tool will not help with this in any way.
@MovieFan.Plex said:
The above messages are normal. Plex maintains several pubsub servers around the world and PMS will test all of them to determine the best server to connect to. This is for the relay feature.
Also keep in mind that turning off remote access in PMS does not remove the port forwarding in your router if you set one up manually. It would still be possible for someone to try to connect to your network and if port forwarding is still enabled, the requests would still get to your computer.
And yes, my tool is for Windows. No you will not lose watched status by changing the machine identifier. My tool will not help with this in any way.
Thank you for the pubsub clarification. And the tip on remote access vs port-forwarding. I did realize that, but appreciate the tip.
Port forwarding is disabled on my router and I have changed the external port (just in case something else was allowing the traffic into my network), and I still saw connections on port 32400 on my PMS. Which would lead me to think that either something got loaded on the machine and was initiating outbound or some sort of configuration is coming from Plex to my server saying “hey, go talk to these clients”
In the past 12 hours, I’ve slowly seen a reduction in outbound attempts. Maybe it’s because I’m blocking outbound traffic coming from my PMS with a source port of 32400 and that is slowly clearing things up.
@MovieFan.Plex said:
The above messages are normal. Plex maintains several pubsub servers around the world and PMS will test all of them to determine the best server to connect to. This is for the relay feature.
Also keep in mind that turning off remote access in PMS does not remove the port forwarding in your router if you set one up manually. It would still be possible for someone to try to connect to your network and if port forwarding is still enabled, the requests would still get to your computer.
And yes, my tool is for Windows. No you will not lose watched status by changing the machine identifier. My tool will not help with this in any way.
Thank you for the pubsub clarification. And the tip on remote access vs port-forwarding. I did realize that, but appreciate the tip.
Port forwarding is disabled on my router and I have changed the external port (just in case something else was allowing the traffic into my network), and I still saw connections on port 32400 on my PMS. Which would lead me to think that either something got loaded on the machine and was initiating outbound or some sort of configuration is coming from Plex to my server saying “hey, go talk to these clients”
In the past 12 hours, I’ve slowly seen a reduction in outbound attempts. Maybe it’s because I’m blocking outbound traffic coming from my PMS with a source port of 32400 and that is slowly clearing things up.
The Plex Media Server.log with Debug Logging enabled will show all requests coming in from external IP Addresses and they would be challenged to authenticate. If there are no logged Request entries from external IP Addresses then these communications are not related to external requests coming in
You did say earlier that the requests are bounced - so is there nothing in the logs relating to that?
I appreciate the guidance, but I just didn’t have the time to go through each line of the log file and compare it to the connections I was seeing (I did see in plexWatchWeb, that I had a bunch of “local” connections from non-local addresses as well as usernames that I don’t know). The removal of the manual NAT rule as well removal of all “web devices”, and forced relogin with new password and PIN have improved things. For peace of mind, though, I just ended up configuring a new jail.