0
1

More than 1 year has passed since last update.

AWS プロクシサーバ(squid)構築

固定IPでコンソールに入らないといけないので、プロクシサーバを設定したときのメモ

前提条件:Elastic IPアドレスを割り当てたEC2インスタンス

squidインストール

インストール
yum install -y squid

自動起動有効
systemctl enable squid

設定ファイルに接続するIPを追加

vim /etc/squid/squid.conf

以下を追加
※http_access deny allより前に記載すること

acl myip src (接続するIPアドレス)/32
http_access allow myip

セキュリティグループに穴をあける。

AWS consoleのセキュリティグループのinboudにsquidのデフォルトポート:3128、接続元は自分のIPを設定する。

再起動

systemctl reload squid

あとは、ブラウザでプロクシ設定してアクセスする。

診断くんとかでIPチェックをおこなって問題なければ終わり。

以上です。

0
1
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
1