Linux Proxy 设置
Linux Proxy 设置
Terminal 全局 http proxy (只在当前Session生效)
启用
1 | export http_proxy="http://<ip address>:<port>" |
禁用
1 | unset http_proxy |
Proxychains
安装 (预先手动配置Terminal proxy)
Debian
1
apt install proxychains
RHEL9
x86_64
1
dnf install https://dl.fedoraproject.org/pub/epel/9/Everything/aarch64/Packages/p/proxychains-ng-4.17-1.el9.x86_64.rpm
ARM64
1
dnf install https://dl.fedoraproject.org/pub/epel/9/Everything/aarch64/Packages/p/proxychains-ng-4.17-1.el9.aarch64.rpm
配置
- 编辑 /etc/proxychains.conf
- 找到quiet_mode,去掉前面的#
1
2# Quiet mode (no output from library)
quiet_mode - 滚动到最下,注释原有的sock4
1
2
3
4
5[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
#socks4 127.0.0.1 9050 - 增加要使用的代理
1
2[ProxyList]
http 192.168.1.147 58080
使用
- 在要连接网络的命令或者脚本名之前加上proxychains即可
1
2proxychains apt update
proxychains apt install ipmitool
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 FrankTest!
评论
