0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

proxmoxホスト側でsquidを動かす

Last updated at Posted at 2014-11-03

パッケージインストール

squid3インストール
apt-get install -y squid3

squidの設定

3128ポートがspiceproxyで既に使われているのでポート番号を変える。

/etc/squid3/squid.conf
- http_port 3128
+ http_port 13128
+ acl localnet src 192.168.11.0/24
+ http_access allow localnet

OpenVz側の設定

$HOME/.bashrc
PROXY="192.168.11.4:13128"
export http_proxy="http://$PROXY"
export https_proxy="https://$PROXY"
export ftp_proxy="ftp://$PROXY"

ログ

  • /var/log/squid3/access.log
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?