質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

Q&A

2回答

1119閲覧

Squid.confの設定に関して

shimpei

総合スコア13

Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

0グッド

0クリップ

投稿2017/10/30 00:50

Linux素人なので、教えて下さい。

顧客のWindows2012R2サーバにOffice2016をインストールするのですが、
顧客環境上、Linuxサーバを経由してライセンス認証をしなければなりません。

そのために、事前にLinuxサーバのSquid.confに「activation.sls.microsoft.com」を許可するよう設定しなければならないのですが、どう設定していいかわかりません。

どこに記述すればいいか教えて頂けないでしょうか?
また、今回の件の説明がされている様なWebサイトがあれば教えて頂けないでしょうか?

現在のSquid.confの内容は以下になります。ここにどう設定すればいいかお手数ですが、ご教授下さい。
よろしくお願い致します。

Linux

1# 2# Recommended minimum configuration: 3# 4acl manager proto cache_object 5acl localhost src 127.0.0.1/32 ::1 6acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1 7 8# Example rule allowing access from your local networks. 9# Adapt to list your (internal) IP networks from where browsing 10# should be allowed 11#acl localnet src 10.0.0.0/8 # RFC1918 possible internal network 12#acl localnet src 172.16.0.0/12 # RFC1918 possible internal network 13#acl localnet src 192.168.0.0/16 # RFC1918 possible internal network 14acl localnet src fc00::/7 # RFC 4193 local private network range 15acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines 16acl localnet src 172.23.80.0/23 17acl no_cache_acl src all 18no_cache deny no_cache_acl 19 20acl SSL_ports port 443 21acl Safe_ports port 8443 22acl Safe_ports port 80 # http 23#acl Safe_ports port 21 # ftp 24acl Safe_ports port 443 # https 25#acl Safe_ports port 70 # gopher 26#acl Safe_ports port 210 # wais 27#acl Safe_ports port 1025-65535 # unregistered ports 28#acl Safe_ports port 280 # http-mgmt 29#acl Safe_ports port 488 # gss-http 30#acl Safe_ports port 591 # filemaker 31#acl Safe_ports port 777 # multiling http 32acl CONNECT method CONNECT 33 34# 35# Recommended minimum Access Permission configuration: 36# 37# Only allow cachemgr access from localhost 38http_access allow manager localhost 39http_access deny manager 40 41# Deny requests to certain unsafe ports 42http_access deny !Safe_ports 43 44# Deny CONNECT to other than secure SSL ports 45http_access deny CONNECT !SSL_ports 46 47# We strongly recommend the following be uncommented to protect innocent 48# web applications running on the proxy server who think the only 49# one who can access services on "localhost" is a local user 50#http_access deny to_localhost 51 52# 53# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS 54# 55 56# Example rule allowing access from your local networks. 57# Adapt localnet in the ACL section to list your (internal) IP networks 58# from where browsing should be allowed 59#http_access allow localnet 60http_access allow localhost 61 62# And finally deny all other access to this proxy 63acl whitelist dstdomain .amazonaws.com aws.amazon.com .windowsupdate.microsoft.com .update.microsoft.com .windowsupdate.com download.microsoft.com wustat.windows.com ntservicepack.microsoft.com .trendmicro.co.jp .trendmicro.com ftp.riken.jp .redhat.com repo.mysql.com 64http_access allow whitelist 65http_access deny all 66 67# Squid normally listens to port 3128 68#http_port 3128 69http_port 8443 70 71# We recommend you to use at least the following line. 72hierarchy_stoplist cgi-bin ? 73 74# Uncomment and adjust the following to add a disk cache directory. 75#cache_dir ufs /var/spool/squid 100 16 256 76 77# Leave coredumps in the first cache dir 78coredump_dir /var/spool/squid 79 80# Add any of your own refresh_pattern entries above these. 81refresh_pattern ^ftp: 1440 20% 10080 82refresh_pattern ^gopher: 1440 0% 1440 83refresh_pattern -i (/cgi-bin/|?) 0 0% 0 84refresh_pattern .

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

以下の行に追加すれば良いとも居ますよ。

acl whitelist dstdomain .amazonaws.com aws.amazon.com .windowsupdate.microsoft.com .update.microsoft.com .windowsupdate.com download.microsoft.com wustat.windows.com ntservicepack.microsoft.com .trendmicro.co.jp .trendmicro.com ftp.riken.jp .redhat.com repo.mysql.com

あとは、社内(LAN内)のPCのProxy設定を行えば通信できるはずです。

投稿2018/01/07 09:17

退会済みユーザー

退会済みユーザー

総合スコア0

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

試せていませんが、acl の部分に接続を可能とするホストやドメインをセットするような形になるかと思います。ご提示のsquid.conf ですと、このあたりではないでしょうか?

acl whitelist dstdomain .amazonaws.com aws.amazon.com .windowsupdate.microsoft.com .update.microsoft.com .windowsupdate.com download.microsoft.com wustat.windows.com ntservicepack.microsoft.com .trendmicro.co.jp .trendmicro.com ftp.riken.jp .redhat.com repo.mysql.com

質問者様の直接の回答になるとは限りませんが、teratailでも下記の質問/回答がありました。
squid.confでwhitelistに書いたドメインだけのアクセスを許可したい

下記、古い記事ですが参考になるかと。
squid で特定のサイトのみアクセスを許可する
squidで接続先制限をしたい!!!

アクセス制御はデリケートですので、最低限は内容を理解していないとセキュリティホールになり得ます。Linux素人などと言わず、注意し、責任をもって設定するようにしたいです。

投稿2017/10/30 01:38

編集2017/10/30 01:39
dodox86

総合スコア9183

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問