Squid Proxy

Squidの設定

Config

$ sudo vim /etc/squid3/squid.conf
# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
### ここにプロキシサーバ接続許可ネットワークを記述 ###
                :
                :
# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet  #コメント解除
http_access allow localhost

# And finally deny all other access to this proxy
http_access deny all
$ sudo service squid3 restart

ポート開放

$ sudo ufw allow 3128

動作確認

# Ubuntu
$ sudo netstat -lpn | grep squid
# OSX
$ lsof -i :3128