首页 > 其他 > 详细

Set proxy server on FreeBSD 12.1

时间:2020-04-06 10:06:23      阅读:83      评论:0      收藏:0      [点我收藏+]

Inside a controlled network, it is alittle harder to use FreeBSD.
The simple things become hard, such as install software by pkg.
So that is why I set a local proxy server on FreeBSD in China.

For csh or tcsh, set proxy in /etc/csh.cshrc:

setenv HTTP_PROXY socks5://127.0.0.1:1080
setenv HTTPS_PROXY socks5://127.0.0.1:1080

For sh, set proxy in /etc/profile:

export HTTP_PROXY socks5://127.0.0.1:1080
export HTTPS_PROXY socks5://127.0.0.1:1080

References:
Using FreeBSD inside a controlled network - A required HTTP Proxy and No FTP
Configure proxy

Set proxy server on FreeBSD 12.1

原文:https://www.cnblogs.com/freedom-try/p/12640190.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!