質問するログイン新規登録

質問編集履歴

2

変更

2017/08/31 03:59

投稿

atr6781
atr6781

スコア13

title CHANGED
File without changes
body CHANGED
@@ -1,8 +1,48 @@
1
1
  複数のIPアドレスを得ようとした時にするのは、Squidで複数ipアドレスの設定をするというので自分が調べたことによると、
2
2
  http://www.iwaking.com/20091201/113/[リンク内容](http://www.iwaking.com/20091201/113/)
3
- このブログに書いてある通りにしてみたのですが、これらを打ってsquidの再起動コマンドなどを打つと、stop,start共にfailedとなりました。
3
+
4
4
  あと、海外のもので紹介されてたこちらも
5
5
  https://adamscheller.com/systems-administration/squid-multiple-ips-configuration/[リンク内容](https://adamscheller.com/systems-administration/squid-multiple-ips-configuration/)
6
- 参照したのすが、うくいきませんでした。
6
+ 上のものを参照して自分confに色々なコードを追加してみました。
7
7
 
8
+ まず
9
+
10
+ http_port 3128
11
+ http_port 3129
12
+ http_port 3130
13
+
14
+ acl port1 myport 3128
15
+ acl port2 myport 3129
16
+ acl port3 myport 3130
17
+
18
+ tcp_outgoing_address x.x.x.1 port1
19
+ tcp_outgoing_address x.x.x.2 port2
20
+ tcp_outgoing_address x.x.x.3 port3
21
+ これを追加した時は何もエラーは出なかったですが、指定したアドレスに接続できなかったので違うと思いました
22
+
23
+ 次に
24
+
25
+ acl ip1 myip 172.200.300.45
26
+ tcp_outgoing_address 172.200.300.45 ip1
27
+
28
+ acl ip2 myip 1.2.3.5
29
+ tcp_outgoing_address 1.2.3.5 ip2
30
+
8
- の方法は間違っいるのでしょうか?
31
+ れを試しみたのですが。
32
+ service squid restart
33
+ Stopping squid: [FAILED]
34
+ Starting squid: [FAILED]
35
+ 2017/08/31 12:54:24| Processing Configuration File: /etc/squid/squid.conf (depth
36
+ 0)
37
+ 2017/08/31 12:54:24| Processing: acl manager proto cache_object
38
+
39
+ ~~
40
+
41
+ 2017/08/31 12:54:24| Processing: acl ip1 myip 172.200.300.45
42
+ 2017/08/31 12:54:24| aclIpParseIpData: Bad host/IP: '172.200.300.45' in '172.200
43
+ .300.45', flags=0 : (-2) Name or service not known
44
+ FATAL: Bungled squid.conf line 33: acl ip1 myip 172.200.300.45
45
+ Squid Cache (Version 3.1.23): Terminated abnormally.
46
+ CPU Usage: 0.006 seconds = 0.002 user + 0.004 sys
47
+
48
+ となったなのでこれは打った文がおかしいとわかったのですが、これは打つコードがそもそも全然違うものなのですかね?

1

修正

2017/08/31 03:59

投稿

atr6781
atr6781

スコア13

title CHANGED
File without changes
body CHANGED
@@ -1,5 +1,8 @@
1
1
  複数のIPアドレスを得ようとした時にするのは、Squidで複数ipアドレスの設定をするというので自分が調べたことによると、
2
- http://www.iwaking.com/20091201/113/
2
+ http://www.iwaking.com/20091201/113/[リンク内容](http://www.iwaking.com/20091201/113/)
3
3
  このブログに書いてある通りにしてみたのですが、これらを打ってsquidの再起動コマンドなどを打つと、stop,start共にfailedとなりました。
4
+ あと、海外のもので紹介されてたこちらも
5
+ https://adamscheller.com/systems-administration/squid-multiple-ips-configuration/[リンク内容](https://adamscheller.com/systems-administration/squid-multiple-ips-configuration/)
6
+ 参照したのですが、うまくいきませんでした。
4
7
 
5
8
  この方法は間違っているのでしょうか?