Airwu Posted May 25, 2022 Share Posted May 25, 2022 I using unraid 6.10, My server need config a proxy to access Internet. I want to install community.applications, but it not use proxy. I tried to add proxy config to /boot/config/go and /config/plugins/community.applications/proxy.cfg, but it not work. How can I do? Quote Link to comment
Airwu Posted May 25, 2022 Author Share Posted May 25, 2022 I said I has add a proxy config to /config/plugins/community.applications/proxy.cfg, but it not work. Quote Link to comment
Squid Posted May 25, 2022 Share Posted May 25, 2022 You also need to configure add the appropriate lines to /config/go on the flash drive: http_proxy=http://xxx:xxx https_proxy=http://xxx:xxx /usr/local/sbin/emhttp & (change accordingly) Those two lines allow Unraid itself access to the internet via a proxy. The proxy.cfg file is only used by Community Applications, as it does things differently. Quote Link to comment
Airwu Posted May 25, 2022 Author Share Posted May 25, 2022 3 minutes ago, Squid said: You also need to configure add the appropriate lines to /config/go on the flash drive: http_proxy=http://xxx:xxx https_proxy=http://xxx:xxx /usr/local/sbin/emhttp & (change accordingly) Those two lines allow Unraid itself access to the internet via a proxy. The proxy.cfg file is only used by Community Applications, as it does things differently. Is there a way can take effect without rebooting? Quote Link to comment
Squid Posted May 25, 2022 Share Posted May 25, 2022 You should be able to enter the two lines at a command prompt and it'll work. Quote Link to comment
Airwu Posted May 25, 2022 Author Share Posted May 25, 2022 Quote root@Tower:~# cat /boot/config/go #!/bin/bash # Start the Management Utility http_proxy=http://10.x.x.x:8080 https_proxy=http://10.x.x.x:8080 http_proxy=http://10.x.x.x:8080 HTTPS_PROXY=http://10.x.x.x:8080 /usr/local/sbin/emhttp & #/usr/local/sbin/emhttp & echo "export http_proxy=\"http://10.x.x.x:8080\"" >> /root/.bash_profile echo "export https_proxy=\"http://10.x.x.x:8080\"" >> /root/.bash_profile Quote root@Tower:~# cat /boot/config/plugins/community.applications/proxy.cfg port=8080 tunnel=1 proxy=http://10.x.x.x I edited, and restarted. But it not work .... Quote Link to comment
jmztaylor Posted May 25, 2022 Share Posted May 25, 2022 (edited) 10 minutes ago, Airwu said: I edited, and restarted. But it not work .... The go file contents should be exactly like this with each option on new lines #!/bin/bash http_proxy=http://10.x.x.x:8080 https_proxy=http://10.x.x.x:8080 echo "export http_proxy=\"http://10.x.x.x:8080\"" >> /root/.bash_profile echo "export https_proxy=\"http://10.x.x.x:8080\"" >> /root/.bash_profile # Start the Management Utility /usr/local/sbin/emhttp & Edited May 25, 2022 by jmztaylor Quote Link to comment
Airwu Posted May 25, 2022 Author Share Posted May 25, 2022 It not work too. I can curl "https://raw.githubusercontent.com/Squidly271/community.applications/master/plugins/community.applications.plg", but gui install failed. Quote plugin: installing: https://raw.githubusercontent.com/Squidly271/community.applications/master/plugins/community.applications.plg plugin: downloading https://raw.githubusercontent.com/Squidly271/community.applications/master/plugins/community.applications.plg plugin: downloading: https://raw.githubusercontent.com/Squidly271/community.applications/master/plugins/community.applications.plg ... failed (SSL verification failure) plugin: https://raw.githubusercontent.com/Squidly271/community.applications/master/plugins/community.applications.plg download failure (SSL verification failure) Quote Link to comment
Airwu Posted May 26, 2022 Author Share Posted May 26, 2022 Any body can help me? Quote Link to comment
julzilla Posted July 27, 2023 Share Posted July 27, 2023 On 5/26/2022 at 11:20 AM, Airwu said: Any body can help me? Follow my instructions below: if you want to miniplate just the user account make follow file below in ~/ cd ~/ vi .wgetrc for all systems users make a file here: cd /etc/ vi wgetrc in the file you need to put the follow: use_proxy = on http_proxy = http://x.x.x.x:xxxx/ https_proxy = http://x.x.x.x:xxxx/ ftp_proxy = http://x.x.x.x:xxxx/ wait = 10 make sure to also have the proxy set in /boot/config/on #!/bin/bash http_proxy=http://x.x.x.x:xxxx https_proxy=http://x.x.x.x:xxxx echo "export http_proxy=\"http://x.x.x.x:xxxx\"" >> /root/.bash_profile echo "export https_proxy=\"http://x.x.x.x:xxxx\"" >> /root/.bash_profile /usr/local/sbin/emhttp & Hope this helps! 2 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.