質問編集履歴
2
変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,14 +2,94 @@
|
|
2
2
|
|
3
3
|
http://www.iwaking.com/20091201/113/[リンク内容](http://www.iwaking.com/20091201/113/)
|
4
4
|
|
5
|
-
|
5
|
+
|
6
6
|
|
7
7
|
あと、海外のもので紹介されてたこちらも
|
8
8
|
|
9
9
|
https://adamscheller.com/systems-administration/squid-multiple-ips-configuration/[リンク内容](https://adamscheller.com/systems-administration/squid-multiple-ips-configuration/)
|
10
10
|
|
11
|
-
参照し
|
11
|
+
上のものを参照して自分でconfに色々なコードを追加してみました。
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
+
まず
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
http_port 3128
|
20
|
+
|
21
|
+
http_port 3129
|
22
|
+
|
23
|
+
http_port 3130
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
acl port1 myport 3128
|
28
|
+
|
29
|
+
acl port2 myport 3129
|
30
|
+
|
31
|
+
acl port3 myport 3130
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
tcp_outgoing_address x.x.x.1 port1
|
36
|
+
|
37
|
+
tcp_outgoing_address x.x.x.2 port2
|
38
|
+
|
39
|
+
tcp_outgoing_address x.x.x.3 port3
|
40
|
+
|
41
|
+
これを追加した時は何もエラーは出なかったですが、指定したアドレスに接続できなかったので違うと思いました
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
次に
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
acl ip1 myip 172.200.300.45
|
50
|
+
|
51
|
+
tcp_outgoing_address 172.200.300.45 ip1
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
acl ip2 myip 1.2.3.5
|
56
|
+
|
57
|
+
tcp_outgoing_address 1.2.3.5 ip2
|
58
|
+
|
59
|
+
|
60
|
+
|
15
|
-
こ
|
61
|
+
これを試してみたのですが。
|
62
|
+
|
63
|
+
service squid restart
|
64
|
+
|
65
|
+
Stopping squid: [FAILED]
|
66
|
+
|
67
|
+
Starting squid: [FAILED]
|
68
|
+
|
69
|
+
2017/08/31 12:54:24| Processing Configuration File: /etc/squid/squid.conf (depth
|
70
|
+
|
71
|
+
0)
|
72
|
+
|
73
|
+
2017/08/31 12:54:24| Processing: acl manager proto cache_object
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
~~
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
2017/08/31 12:54:24| Processing: acl ip1 myip 172.200.300.45
|
82
|
+
|
83
|
+
2017/08/31 12:54:24| aclIpParseIpData: Bad host/IP: '172.200.300.45' in '172.200
|
84
|
+
|
85
|
+
.300.45', flags=0 : (-2) Name or service not known
|
86
|
+
|
87
|
+
FATAL: Bungled squid.conf line 33: acl ip1 myip 172.200.300.45
|
88
|
+
|
89
|
+
Squid Cache (Version 3.1.23): Terminated abnormally.
|
90
|
+
|
91
|
+
CPU Usage: 0.006 seconds = 0.002 user + 0.004 sys
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
となったなのでこれは打った文がおかしいとわかったのですが、これは打つコードがそもそも全然違うものなのですかね?
|
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,8 +1,14 @@
|
|
1
1
|
複数のIPアドレスを得ようとした時にするのは、Squidで複数ipアドレスの設定をするというので自分が調べたことによると、
|
2
2
|
|
3
|
-
http://www.iwaking.com/20091201/113/
|
3
|
+
http://www.iwaking.com/20091201/113/[リンク内容](http://www.iwaking.com/20091201/113/)
|
4
4
|
|
5
5
|
このブログに書いてある通りにしてみたのですが、これらを打ってsquidの再起動コマンドなどを打つと、stop,start共にfailedとなりました。
|
6
|
+
|
7
|
+
あと、海外のもので紹介されてたこちらも
|
8
|
+
|
9
|
+
https://adamscheller.com/systems-administration/squid-multiple-ips-configuration/[リンク内容](https://adamscheller.com/systems-administration/squid-multiple-ips-configuration/)
|
10
|
+
|
11
|
+
参照したのですが、うまくいきませんでした。
|
6
12
|
|
7
13
|
|
8
14
|
|