Use http/socks proxy on a different VLAN for all internet traffic

Hi guys. Just curious if there is an OS level setting to access internet if internet access is not possible via the default gateway i.e. using a web proxy? I am using nightly CoreELEC on a subnet/VLAN with no internet access itself and need to use a https/socks proxy to get updates and for TVHeadend. Does the Proxy setting in Kodi cover that? If so is it possible to set the proxy via SSH/CLI? The CoreELEC box is headless. Thanks

Search on Google for: linux proxy settings from command line

Examples:

export HTTP_PROXY=user:pass@my.proxy.server:8080
export HTTPS_PROXY=user:pass@my.proxy.server:8081