Settings of multiple IP address in Proxy server squid


I’m operating proxy server and using squid but I might need multiple IP operation so I’d like to leave a note for that. Multiple IP operation in squid has no information even if it’s in English, so I wrote them just in case for those might be stuck.

First, edit below

vi /etc/squid/squid.conf

And add to port listen

http_port 200.200.200.200:3128
http_port 200.200.200.201:3128

describe acl

acl ip1 myip 200.200.200.200/32
acl ip2 myip 200.200.200.201/32

outgoing address settings

tcp_outgoing_address 200.200.200.200 ip1
tcp_outgoing_address 200.200.200.201 ip2

and, changing dns server settings

dns_nameservers xxx.xxx.xxx.xxx

/etc/init.d/squid restart

That’s all. It’s easy if you know that.

Posted in Server | Leave a comment

PTY allocation request failed on channel 0 [ssh|CentOS]


The subject issue may occur in VPS such as OpenVZ and Xen.
The reason is vary but lots of case are happened in OpenVZ and Xen.

In my case, it happened in OpenVZ environment.
One day I saw my blog the error said “cannot access to the database.” and nothing display.
I thought mysqld dead so I logged in VPS.

PTY allocation request failed on channel 0


Just the error above showed and it’s horrible, I couldn’t do anything.
In my case, seems like happened in CentOS update.


Although I found a solution by referring to URL below,
http://www.asteriosk.gr/blog/2009/02/20/pty-allocation-request-failed-on-channel-0/

I could not establish ssh access, I contacted the customer support from hosting admin screen.
I use NYNOC hosting provider. It has admin screen called “HyperVM”. I was instructed to use “Fix Centos Dev” execution button.
On using the button, the access problem was resolved. I was beginning to feel that, perhaps the button was integrated into the admin screen because the problem frequently occurs. Anyhow I re-gain the ssh connection and tried to restart mysqld but it didn’t work.

I checked the log and it seems permission problem.

It showed that the file owner in /var/lib/mysql did not match /var/run/mysqld permission.

I really have no idea why but since I started using NYNOC, I have come across many unknown problems….:(

Posted in Server | 3 Comments

(日本語) ブログ始めましたので自己紹介から


はじめまして、iwakinです。

日本のクインテットというWEB企業で働いています。

性格

おとなしめ。妄想家。アラサー。負けず嫌い。WEB大好き。

Strength Finderの結果

回復志向

目標志向

未来志向

自己革新

慎重さ

要するに、問題を解決するのが大好きで目標に向かって突き進む妄想家で、自分に自信は有るが慎重な男。一部矛盾してますね、、、

※Strength Finderとは、自分の強みを180もの項目に答えることで見つけられるアンケート形式のテストです。以下の本を買うと受けることが出来ます。

http://www.amazon.co.jp/dp/4532149479/

好きなこと

アイスを食べること、読書、マンガ、テニス

好きな言葉

Nothing Ventured, Nothing Gained.

Only the paranoid survive.

名もなければ、財もない。無からはじめることなのだ。無に帰しても、悔やみはしない。自分の命を、使いたいように使うだけだ。 わらってくれてもいい。私ひとりの夢だ。私の夢を押し潰すことは、誰にもできはしない

生息地

東京周辺。さんしゃいんという建物の近く。便利なところです。

興味

今後のWEBの動向、世界における日本のポジション、お腹周りのダイエット。

その他

twitter始めました

http://twitter.com/iwaking

このブログはwordpressです。さすが良く出来てますね〜。

サーバーはアメリカ西海岸のVPSを利用しています。メモリが足りず増設中。

Posted in unclassified | Leave a comment