Hello,
I created a proxy.sh file in the /etc/profile.d/ directory containing:
export http_proxy = http: // address: port
export https_proxy = https: // address: port
I can now install packages but the terminals cannot connect to the internet. Maybe you need to do a port forwarding like here
https://forum.openwrt.org/t/configuration-of-proxy-on-new-openwrt-router/31269/31?page=2