複数のIPアドレスを得ようとした時にするのは、Squidで複数ipアドレスの設定をするというので自分が調べたことによると、
http://www.iwaking.com/20091201/113/[リンク内容](http://www.iwaking.com/20091201/113/)
あと、海外のもので紹介されてたこちらも
https://adamscheller.com/systems-administration/squid-multiple-ips-configuration/[リンク内容](https://adamscheller.com/systems-administration/squid-multiple-ips-configuration/)
上のものを参照して自分でconfに色々なコードを追加してみました。
まず
http_port 3128
http_port 3129
http_port 3130
acl port1 myport 3128
acl port2 myport 3129
acl port3 myport 3130
tcp_outgoing_address x.x.x.1 port1
tcp_outgoing_address x.x.x.2 port2
tcp_outgoing_address x.x.x.3 port3
これを追加した時は何もエラーは出なかったですが、指定したアドレスに接続できなかったので違うと思いました
次に
acl ip1 myip 172.200.300.45
tcp_outgoing_address 172.200.300.45 ip1
acl ip2 myip 1.2.3.5
tcp_outgoing_address 1.2.3.5 ip2
これを試してみたのですが。
service squid restart
Stopping squid: [FAILED]
Starting squid: [FAILED]
2017/08/31 12:54:24| Processing Configuration File: /etc/squid/squid.conf (depth
0)
2017/08/31 12:54:24| Processing: acl manager proto cache_object
~~
2017/08/31 12:54:24| Processing: acl ip1 myip 172.200.300.45
2017/08/31 12:54:24| aclIpParseIpData: Bad host/IP: '172.200.300.45' in '172.200
.300.45', flags=0 : (-2) Name or service not known
FATAL: Bungled squid.conf line 33: acl ip1 myip 172.200.300.45
Squid Cache (Version 3.1.23): Terminated abnormally.
CPU Usage: 0.006 seconds = 0.002 user + 0.004 sys
となったなのでこれは打った文がおかしいとわかったのですが、これは打つコードがそもそも全然違うものなのですかね?
回答1件
あなたの回答
tips
プレビュー