Web proxy Squid 的访问许可设置
7月20日
讀畢需時 1 分鐘
记录在AWS EC2上搭建的Web proxy Squid添加/更新访问限制的步骤。
向EC2所附加的安全组添加规则
以管理员权限启动PowerShell

从PowerShell访问EC2
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\> ssh -i "webproxy-server.pem" ec2-user@XXX.XXX.XXX.XXX
更新squid.conf
[ec2-user@ip-XXX-XXX-XXX-XXX ~]$ sudo vi /etc/squid/squid.conf
在设置访问限制的项目中添加/更新IP
acl myacl src XXX.XXX.XXX.XXX/32 YYY.YYY.YYY.YYY/32
重启squid服务
[ec2-user@ip-XXX-XXX-XXX-XXX ~]$ sudo systemctl restart squid
完成



留言