(22)
https://zenn.dev/zuzuzu/articles/squid_setting
sudo apt update
sudo apt install squid
sudo nl -b a /etc/squid/squid.conf | grep -Pv "^ *?[0-9]+\t *?#|^ *?[0-9]+\t *?$"
# http_access denyの上に追加
sudo vim /etc/squid/squid.conf
acl allowed_ip src 192.168.137.63
http_access allow allowed_ip
http_access deny all
sudo systemctl enable squid
sudo systemctl restart squid
sudo systemctl status squid
squidデフォルトポート -> 3128
sudo tail -f /var/log/squid/access.log
(12)
apt update
apt install squid
nl -b a /etc/squid/squid.conf | grep -Pv "^ *?[0-9]+\t *?#|^ *?[0-9]+\t *?$"
# http_access denyの上に追加
acl allowed_ip src 192.168.137.63
http_access allow allowed_ip
http_access deny all
systemctl enable squid
systemctl restart squid
systemctl status squid
squidデフォルトポート -> 3128
tail -f /var/log/squid/access.log
(RL9)
dnf install epel-release -y
dnf install squid -y
nl -b a /etc/squid/squid.conf | grep -Pv "^ *?[0-9]+\t *?#|^ *?[0-9]+\t *?$"
# http_access denyの上に追加
acl allowed_ip src 192.168.137.63
http_access allow allowed_ip
http_access deny all
systemctl enable squid
systemctl restart squid
systemctl status squid
squidデフォルトポート -> 3128
tail -f /var/log/squid/access.log
- Windows Server
(2022)
タスクトレイのアイコンを右クリックして、メニューから「Open Squid Configuration」を選択します。
# http_access denyの上に追加
acl allowed_ip src 192.168.137.63
http_access allow allowed_ip
http_access deny all
サービス再起動