西田利の日記

チャイパブは、右の「チャイパブの灯だ」、記事の内容で「xx年xx月xx日の日記」、先頭行のリンクだよ。PCで見てね。

プロキシサーバー

squidを使ってプロキシサーバーを立ち上げる。
ルーターの静的NAT設定で8080をサーバーに割り当てる。
外部からの接続試験のため c:\windows\system32\drivers\etc\hosts の内容を元に戻す。
など当たり前のことを忘れていて時間が経った。ほとんど一日かけて完了。e-mobileが無ければ試験する方法も無かった。
http://squid.robata.org/squid_nt.html 参考


http://www.acmeconsulting.it/SquidNT/
ここから
「2.7.STABLE8」の「Standard」を「squid-2.7.STABLE8-bin.zip」ダウンロード。
すべて展開して C:\squid フォルダーに保存する。
C:\squid\var\logs フォルダーを作る。
C:\squid\etc> copy squid.conf.default squid.conf
C:\squid\etc> copy mime.conf.default mime.conf


squid.confを編集

                                                                                                                • -

acl localnet src 192.168.1.0/16 # RFC1918 possible internal network


http_access deny allを
http_access allow allに変更


http_port 3128を
http_port 8080に変更


visible_hostname www.funatsudenshi.com

                                                                                                                • -


C:\squid\sbin> squid -z でキャッシュを作る。
C:\squid\sbin> squid -i でサービスを登録。


サービスを外すには C:\squid\sbin> squid -r