I need config a proxy


Recommended Posts

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.

Link to comment
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?

Link to comment
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 ....

Link to comment
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 by jmztaylor
Link to comment
  • 1 year later...
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!

 

  • Like 2
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.