标签:proxy net machine ase 微信 代理 nes public file
环境说明
项目整体需部署Zabbix监控并配置微信报警,而Zabbix Server并不能访问外网,故运维小哥找了台能访问外网的服务器做Suqid代理,Zabbix Server服务器通过代理服务器访问外网。
操作说明
[root@squid ~]# echo "1" >/proc/sys/net/ipv4/ip_forward
[root@squid ~]# yum -y install squid
[root@squid ~]# vim /etc/squid/squid.conf
# 配置文件中将deny修改为allow;
# 配置本地ip;
[root@squid ~]# systemctl start squid
[root@squid ~]# systemctl enable squid
[root@zabbix-server ~]# tail -2 /etc/profile
export http_proxy=http://192.168.10.15:3128 export https_proxy=http://192.168.10.15:3128
[root@zabbix-server ~]# curl http://www.baidu.com
[root@zabbix-server ~]# curl https://www.baidu.com
Could not determine this machines public hostname. Please configure one or set ‘visible_hostname‘
在配置文件/etc/squid/squid.conf中添加如下行,重启即可;
visible_hostname squid.packet-pushers.net
标签:proxy net machine ase 微信 代理 nes public file
原文地址:https://www.cnblogs.com/kazihuo/p/9962415.html