Jump to content


Photo

Option to set IP as external

IP external

  • Please log in to reply
40 replies to this topic

#21 daschef OFFLINE  

daschef

    Advanced Member

  • Members
  • 45 posts
  • Local time: 02:13 PM

Posted 06 October 2018 - 06:24 AM

again:

 

- my net here is 172.16.128.0/24

- i want to accomplish that 172.16.128.254 is OUTSIDE the local net for emby, so bandwith throttling occurs

- setting the local net in emby to 172.16.128.0/25 does not help, 172.16.128.254 is still treated as internal ip



#22 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138124 posts
  • Local time: 08:13 AM

Posted 06 October 2018 - 10:29 AM

Did you try /24 as suggested here?



#23 daschef OFFLINE  

daschef

    Advanced Member

  • Members
  • 45 posts
  • Local time: 02:13 PM

Posted 06 October 2018 - 01:25 PM

sure, but in /24 172.16.128.254 is included ....



#24 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138124 posts
  • Local time: 08:13 AM

Posted 06 October 2018 - 03:57 PM

So why not use /24?



#25 daschef OFFLINE  

daschef

    Advanced Member

  • Members
  • 45 posts
  • Local time: 02:13 PM

Posted 06 October 2018 - 04:13 PM

because with /24 172.16.128.254 is internal and i don't want this



#26 cayars OFFLINE  

cayars

    Advanced Member

  • Alpha Testers
  • 2945 posts
  • Local time: 08:13 AM

Posted 07 October 2018 - 12:22 AM

@Luke I haven't tested this but with the info he has shown from his logs it appears Emby isn't calculated internal vs external correctly.

 

If he has set 172.16.128.0/25 then the ONLY IPs that should be considered local are:

172.16.128.1 - 172.16.128.126

 

The IPs he is using for VPN are above .127

so they should be "external" if he has set 172.16.128.0/25

 

it would be considered local if that field was blank or set to 172.16.128.0/24



#27 daschef OFFLINE  

daschef

    Advanced Member

  • Members
  • 45 posts
  • Local time: 02:13 PM

Posted 07 October 2018 - 06:41 AM

new test:

 

5bb9e2af5848f_2018100712_39_51Erweitert.

 

even if i set the local net to only 2 IPs, 172.16.128.254 is still local for emby



#28 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 15746 posts
  • Local time: 05:13 AM
  • LocationWashington State

Posted 07 October 2018 - 05:24 PM

Sorry with my test I added two LAN IP addresses and all others LAN addresses were redirect to external access HTTPS.  I only tested 4 other devices with local addresses not listed in server setting and all were redirected.

 

So to me it would appear to be something with your system/network setup. 

 

5bba783be25c3_LAN.jpg

 

Also test "192.168.151.0/25" and manually assigning a system ip to 192.168.151.254 and it was considered external and redirected to HTTPS.

 

Tested on Windows beta server.


Edited by Happy2Play, 07 October 2018 - 05:35 PM.


#29 sfatula OFFLINE  

sfatula

    Advanced Member

  • Members
  • 387 posts
  • Local time: 07:13 AM
  • LocationCalera, OK

Posted 07 October 2018 - 05:39 PM

Anything in private address space we do assume local, yes.

 

 

Not for me... I have LAN networks settings set to:

 

192.168.3.0/255.255.255.0

 

On my openvpn via my router, I get IPs in 10.8.0.0/255.255.255.0 and they are treated as external just fine. Streaming bitrate limits are applied. All works well. 


Edited by sfatula, 07 October 2018 - 06:27 PM.


#30 daschef OFFLINE  

daschef

    Advanced Member

  • Members
  • 45 posts
  • Local time: 02:13 PM

Posted 07 October 2018 - 06:18 PM

@Happy2Play: the problem is bandwith throttling, not https redirection



#31 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 15746 posts
  • Local time: 05:13 AM
  • LocationWashington State

Posted 07 October 2018 - 06:25 PM

Right, my test just proves the ip is being treated as external.  The redirect only happens on external so the setting is working and treating .254 as a external network device.
 
And my "Internet streaming bitrate limit (Mbps):" applies to the local machine.


Edited by Happy2Play, 07 October 2018 - 06:28 PM.


#32 daschef OFFLINE  

daschef

    Advanced Member

  • Members
  • 45 posts
  • Local time: 02:13 PM

Posted 08 October 2018 - 05:52 AM

are you sure that the bitrate limitation applies?



#33 cayars OFFLINE  

cayars

    Advanced Member

  • Alpha Testers
  • 2945 posts
  • Local time: 08:13 AM

Posted 08 October 2018 - 06:00 AM

Right, my test just proves the ip is being treated as external.  The redirect only happens on external so the setting is working and treating .254 as a external network device.
 
And my "Internet streaming bitrate limit (Mbps):" applies to the local machine.

Not really the same test.

Try one like he mentioned with a /25

So for example enter 192.168.3.0/25 in the setting then try connecting with an ip such as 192.168.3.200 and see if it's external like it should be.

 

@daschef, just curious but after changing the network settings are you restarting Emby?  No idea if that's needed but may not be a bad thing to do.



#34 daschef OFFLINE  

daschef

    Advanced Member

  • Members
  • 45 posts
  • Local time: 02:13 PM

Posted 08 October 2018 - 06:09 AM

i restarted several times .... curious thing



#35 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 15746 posts
  • Local time: 05:13 AM
  • LocationWashington State

Posted 08 October 2018 - 08:05 AM

Not really the same test.

Try one like he mentioned with a /25

So for example enter 192.168.3.0/25 in the setting then try connecting with an ip such as 192.168.3.200 and see if it's external like it should be.

 

@daschef, just curious but after changing the network settings are you restarting Emby?  No idea if that's needed but may not be a bad thing to do.

 

How is post 28 and 31 not the exact same test?



#36 cayars OFFLINE  

cayars

    Advanced Member

  • Alpha Testers
  • 2945 posts
  • Local time: 08:13 AM

Posted 08 October 2018 - 08:23 AM

How is post 28 and 31 not the exact same test?

Does look like the same test!

 

OK so I just tested this for the first time (for this thread) using:

192.168.100.1/26

192.168.100.1/25

192.168.100.1/24

 

I used two test client of:

192.168.100.100

192.168.100.200

 

They were found external when they should have been and internal when they should have been!

I tested this on Version 3.6.0.53 beta

 

So at least on the beta it works fine!



#37 daschef OFFLINE  

daschef

    Advanced Member

  • Members
  • 45 posts
  • Local time: 02:13 PM

Posted 08 October 2018 - 08:44 AM

i have the latest beta ...

 

can it be that https redirection and bandwith throttling use different methods to detect external ips?



#38 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 15746 posts
  • Local time: 05:13 AM
  • LocationWashington State

Posted 08 October 2018 - 08:52 AM

i have the latest beta ...

 

can it be that https redirection and bandwith throttling use different methods to detect external ips?

 

I just tested disabling secure connections and set LAN Networks to 192.168.151.0/25 and logged in from a system with 192.168.151.254 as a ip address and the external connection required me to enter my password and media was restricted to my set "Internet streaming bitrate limit (Mbps): 3".



#39 cayars OFFLINE  

cayars

    Advanced Member

  • Alpha Testers
  • 2945 posts
  • Local time: 08:13 AM

Posted 08 October 2018 - 09:57 AM

I just tested disabling secure connections and set LAN Networks to 192.168.151.0/25 and logged in from a system with 192.168.151.254 as a ip address and the external connection required me to enter my password and media was restricted to my set "Internet streaming bitrate limit (Mbps): 3".

Same with my test as I used 2Mb rate and it applied during transcode when I viewed a movie.  From internal IP space it direct played.

 

@daschef, you may want to post screen shots of your settings as it seems like something isn't set correct.



#40 sfatula OFFLINE  

sfatula

    Advanced Member

  • Members
  • 387 posts
  • Local time: 07:13 AM
  • LocationCalera, OK

Posted 08 October 2018 - 12:01 PM

Mine too as noted. Definitely applied the bitrate limit. This is with a Linux server, xubuntu.







Also tagged with one or more of these keywords: IP, external

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users