Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Linux Kodi proxy is bypassed by local server, need to include in proxy !
#1
Hi !

I am not a dev but can monkey type, so I set up a cloud squid server, with Kodi> System> Internet> Proxy settings with default http, port 3128, username, password and Server IP.

I am on AlexElec.tv, which is a Coreelec fork ( Kodi 18, AE3.3.5-S9xxx-Dual), but this should not matter.

Things work fine as expected. My streaming is blocked if the proxy creds are missing, and streaming from addons like YouTube plugin, Pluto, Plex, PBS kids, and Weather work if creds are good.

The obvious issue is that the Kodi proxy bypasses local addresses ( default behavior I think.)

I do have a couple of streaming addons with locally installed servers, so these still stream regardless of proxy settings, e.g., TVlink Server at localhost:2020 along with its TVlink PVR client.

Is there a way for me to go into some file settings and make sure these local servers also pass traffic through the proxy ?

Will these settings be specific for such locally installed servers, or apply to all local addresses/traffic ?
Reply
#2
might be best to go down to the os level instead of expecting this from kodi, the iptables method comes to mind - https://docs.diladele.com/tutorials/poli...outer.html
Reply
#3
(2023-05-02, 17:13)jepsizofye Wrote: might be best to go down to the os level instead of expecting this from kodi, the iptables method comes to mind - https://docs.diladele.com/tutorials/poli...outer.html
Hey @jepsizofye !

Thanks again.

Is there a specific direct solution in iptables or Entware connman ( Coreelec network manager) to set up the proxy thru for local server traffic or for all local traffic ?

There might be a solution in Kodi guisettings.xml config where the Kodi proxy settings reside.

But whatever works 😺
Reply
#4
iptables should exist in coreelec and its forks (alex) already

as far any managers or graphical interfaces im not familiar with any

you can take a look at this post for 1 example - https://discourse.coreelec.org/t/iptable...king/16841

entware being from dd-wrt it should have any and all mechanisms for routing - since its a router os
Reply
#5
@jepsizofye

This talks about missing modules so out of my league.

Anyway I will look around myself and wait for more insights here ...I faintly recall a 1-2 line solution from online, some proxy redirect involving localhost, but cannot find it anymore.

Also I want a generic solution that will apply to any device without knowing any IP address ranges.
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi proxy is bypassed by local server, need to include in proxy !0