<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>tkoshima.net &#187; Linux</title>
	<atom:link href="http://tkoshima.net/wp/archives/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://tkoshima.net/wp</link>
	<description></description>
	<lastBuildDate>Mon, 30 Aug 2010 13:22:18 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://tkoshima.net/wp/archives/category/linux/feed" />
		<item>
		<title>SSLの名前ベースのバーチャルホスト</title>
		<link>http://tkoshima.net/wp/archives/1016</link>
		<comments>http://tkoshima.net/wp/archives/1016#comments</comments>
		<pubDate>Thu, 19 Aug 2010 13:56:50 +0000</pubDate>
		<dc:creator>tkoshima</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://tkoshima.net/wp/?p=1016</guid>
		<description><![CDATA[たまたま、探しものしてて見つけたので、いつかのためにメモ
SSL通信の場合は、IPアドレス１個で、ネームベースのバーチャルホストは基本的には使えんわけですが。
目ん玉おやじのグローバルサインのワイルドカードオプションとか &#8230; <a href="http://tkoshima.net/wp/archives/1016">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>たまたま、探しものしてて見つけたので、いつかのためにメモ</p>
<p>SSL通信の場合は、IPアドレス１個で、ネームベースのバーチャルホストは基本的には使えんわけですが。<br />
目ん玉おやじのグローバルサインのワイルドカードオプションとかであれば、Apacheの起動時にワーニングも出ますが一応できそうかな。あとは、昔Delegate使ってむりやりやったことあったな。</p>
<p>んで、SNI（Server Name Indication）ってのがあって、これを使うとIP１個で、ネームベースのバーチャルホストができそうです、携帯はまだダメな機種が多そうですが、PC向けは結構イケそうです。<br />
ですが、Apacheが「2.2.12」以降対応なので、CentOS5の素のApacheだと未対応です、がっかし。</p>
]]></content:encoded>
			<wfw:commentRss>http://tkoshima.net/wp/archives/1016/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://tkoshima.net/wp/archives/1016" />
	</item>
		<item>
		<title>mod_rpaf</title>
		<link>http://tkoshima.net/wp/archives/1012</link>
		<comments>http://tkoshima.net/wp/archives/1012#comments</comments>
		<pubDate>Thu, 19 Aug 2010 13:29:01 +0000</pubDate>
		<dc:creator>tkoshima</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://tkoshima.net/wp/?p=1012</guid>
		<description><![CDATA[リバースプロキシ先のアクセスログが全部リバースプロキシのIPになるのでどうにかならんけと言われて、どうにかなるだろうと調べたのでメモ。
ApacheなりPoundなりでリバースプロキシした時、バックエンド側で、実IPを参 &#8230; <a href="http://tkoshima.net/wp/archives/1012">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>リバースプロキシ先のアクセスログが全部リバースプロキシのIPになるのでどうにかならんけと言われて、どうにかなるだろうと調べたのでメモ。<br />
ApacheなりPoundなりでリバースプロキシした時、バックエンド側で、実IPを参照して、ログ解析とかIP制限とかできるように。</p>
<p><a href="http://stderr.net/apache/rpaf/">mod_rpaf</a>というのがあるのでこれを使用。<br />
ちなみにリバースプロキシでなく、バックエンドのWebサーバ(Apache)にインストールします。仕組みとしては、設定したプロキシサーバからのアクセスの場合は、X-Forwarded-For をリモートIPに上書きしてくれるモジュールです。</p>
<p>httpd-develは必要なのでインストール</p>
<pre>
yum install httpd-devel
</pre>
<p>ダウンロードして解凍</p>
<pre>
wget http://stderr.net/apache/rpaf/download/mod_rpaf-0.6.tar.gz
tar xvzf mod_rpaf-0.6.tar.gz
cd mod_rpaf-0.6
</pre>
<p>Makefileにapxsのパスをいれる</p>
<pre>
vi Makefile
>APXS2=/usr/sbin/apxs （編集）
</pre>
<p>コンパイルとインストール</p>
<pre>
make rpaf-2.0
make install-2.0
</pre>
<p>設定ファイル作成</p>
<pre>
/etc/httpd/conf.d/mod_rpaf.conf （新規作成）

LoadModule rpaf_module modules/mod_rpaf-2.0.so
RPAFenable On
RPAFsethostname On
RPAFproxy_ips <プロキシサーバのIPアドレス>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://tkoshima.net/wp/archives/1012/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://tkoshima.net/wp/archives/1012" />
	</item>
		<item>
		<title>PostfixでSMTP Authクライアント</title>
		<link>http://tkoshima.net/wp/archives/984</link>
		<comments>http://tkoshima.net/wp/archives/984#comments</comments>
		<pubDate>Mon, 28 Jun 2010 11:53:45 +0000</pubDate>
		<dc:creator>tkoshima</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://tkoshima.net/wp/?p=984</guid>
		<description><![CDATA[家サーバで、ダイナミックのIPだと、最近はOP25Bでメール送信ができなくなるので、PostfixでSMTP Authして上位（ISP）サーバへ送信する設定をしてみる。
/etc/postfix/main.cf

rel &#8230; <a href="http://tkoshima.net/wp/archives/984">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>家サーバで、ダイナミックのIPだと、最近はOP25Bでメール送信ができなくなるので、PostfixでSMTP Authして上位（ISP）サーバへ送信する設定をしてみる。</p>
<p>/etc/postfix/main.cf</p>
<pre>
relayhost = [smtp.example.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/relay_password
smtp_sasl_security_options = noanonymous
</pre>
<p>/etc/postfix/relay_passwordを作成</p>
<pre>
smtp.example.com:587  Username:Password
</pre>
<p>relay_password.dbを作成</p>
<pre>
cd /etc/postfix/
postmap relay_password
</pre>
<p>＜参考＞<br />
<a href="http://www.maruko2.com/mw/Postfix_%E3%81%A7%E3%83%A1%E3%83%BC%E3%83%AB%E3%83%AA%E3%83%AC%E3%83%BC%E3%81%AE%E8%A8%AD%E5%AE%9A_%28SMTP_%E3%82%AF%E3%83%A9%E3%82%A4%E3%82%A2%E3%83%B3%E3%83%88_%2B_SMTP_Auth%29">Postfix でメールリレーの設定 (SMTP クライアント + SMTP Auth)</a>(maruko2 Note.)</p>
]]></content:encoded>
			<wfw:commentRss>http://tkoshima.net/wp/archives/984/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://tkoshima.net/wp/archives/984" />
	</item>
		<item>
		<title>Atom330 で CentOS （ギ蟹）</title>
		<link>http://tkoshima.net/wp/archives/951</link>
		<comments>http://tkoshima.net/wp/archives/951#comments</comments>
		<pubDate>Tue, 25 May 2010 14:34:28 +0000</pubDate>
		<dc:creator>tkoshima</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://tkoshima.net/wp/?p=951</guid>
		<description><![CDATA[Atom330のX27Dが安くなってきたので、サーバにでもしようかと買ってみた。



Shuttle ベアーボーンケース ブラック X27D

	メーカー：Shuttle INC.
	参考価格：￥ 17,780



 &#8230; <a href="http://tkoshima.net/wp/archives/951">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Atom330のX27Dが安くなってきたので、サーバにでもしようかと買ってみた。</p>
<table border="0">
<tr>
<td><img src="http://ecx.images-amazon.com/images/I/31opq8Bm5bL._SL160_.jpg" width="160" height="107"></td>
<td><a href="http://www.amazon.co.jp/exec/obidos/ASIN/B001JIFXGI/tkoshims151xr-22/ref=nosim">Shuttle ベアーボーンケース ブラック X27D</a></p>
<div align="right">
	メーカー：Shuttle INC.<br />
	参考価格：￥ 17,780
</div>
</td>
</tr>
</table>
<p>で、買う前からある程度は調べてあったのですが、CentOSでギ蟹「Realtek 8111C」は問題があるらしく、自動で「r8169」がロードされてしまうがこれじゃちゃんと繋がらないらしい、おまけに「8111C」のモジュールは入ってない様子。で、先人の方々はというと、RealTekのサイトの<a href="http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=4&#038;PNid=13&#038;PFid=5&#038;Level=5&#038;Conn=4&#038;DownTypeID=3&#038;GetDown=false#2">Software: Drivers &#038; Utilities</a>あたりからドライバをダウンロードしてインストールする例が多いみたい。<br />
でも、これって、カーネルアップデートしたらダメじゃんってことで、他に策はないかと調べてたら、<br />
<a href="http://wiki.centos.org/AdditionalResources/HardwareList/RealTekRTL8111b?action=show&#038;redirect=HardwareList%2FRealTekRTL8111b">Realtek RTL8111B / RTL8168B NIC</a><br />
ってのがありました。</p>
<p>DKMS (Dynamic Kernel Module Support) って仕組みがあるらしく、これに乗っかればカーネルがアップデートされても起動時に新しく組み込んでくれるものらしい。</p>
<p>作業としては、以下のパッケージをインストールしてあればOKです。設定もないので楽チンです。</p>
<pre>
Base
  binutils gcc glibc-devel glibc-headers kernel-headers kernel-devel make
RPMForge
  dkms dkms-r8168
</pre>
<p>例</p>
<pre>
DVDよりインストール
rpm -ihv gcc-4.1.2-48.el5.i386.rpm  glibc-devel-2.5-49.i386.rpm glibc-headers-2.5-49.i386.rpm kernel-headers-2.6.18-194.el5.i386.rpm kernel-devel-2.6.18-194.el5.i686.rpm cpp-4.1.2-48.el5.i386.rpm  libgomp-4.4.0-6.el5.i386.rpm

他のマシンでRPMForgeからファイルをとってきてCDなりUSBなどで持ってきてインストールします。（LANがつながらないので）
yum install yum-utils
yumdownloader dkms-r8168
yumdownloader dkms.noarch
rpm -ihv dkms-r8168 dkms.noarch
</pre>
<p>　<br />
　<br />
ちなみに、X27DでOpenVZ(CentOS5)+CentOS5のゲストを作成する予定</p>
]]></content:encoded>
			<wfw:commentRss>http://tkoshima.net/wp/archives/951/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://tkoshima.net/wp/archives/951" />
	</item>
		<item>
		<title>CentOS 5.5 リリース</title>
		<link>http://tkoshima.net/wp/archives/942</link>
		<comments>http://tkoshima.net/wp/archives/942#comments</comments>
		<pubDate>Sun, 16 May 2010 13:46:33 +0000</pubDate>
		<dc:creator>tkoshima</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://tkoshima.net/wp/?p=942</guid>
		<description><![CDATA[リリースされました。とりあえす、リリースノートも読まずに「yum update」だー(^^)/

Linux xxxx 2.6.18-194.3.1.el5 #1 SMP Thu May 13 13:09:10 EDT  &#8230; <a href="http://tkoshima.net/wp/archives/942">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>リリースされました。とりあえす、リリースノートも読まずに「yum update」だー(^^)/</p>
<pre>
Linux xxxx 2.6.18-194.3.1.el5 #1 SMP Thu May 13 13:09:10 EDT 2010 i686 i686 i386 GNU/Linux
</pre>
<p>ということで、このサーバは生還しました(笑)</p>
<p><a href="http://lists.centos.org/pipermail/centos-announce/2010-May/016638.html">[CentOS-announce] Release for CentOS-5.5 i386 and x86_64</a><br />
<a href="http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.5">リリースノート</a></p>
<p>x86_64 ってDVD、2枚なん？、と思ってRHELのほうみたらこっちは1枚ですね。CD8枚はもう焼く気はないけど、DVD1枚なら焼いてもいいかと思うけど2枚あるとヤだなぁ、まぁ、最近はnetinstallか、VMならISOマウントだし、たぶん焼かないだろうけど。（それ以前にi386しか使ってないね(笑)）</p>
<p>RHEL5.5でも同じなんでしょうが（確認してなかった）、sambaとPostgreSQLとかは別パッケージで新しいバージョンが使えるようになってる様子（samba3xとpostgresql84)</p>
<pre>
Name       : samba3x
Arch       : i386
Version    : 3.3.8
Release    : 0.51.el5
Size       : 4.2 M
Repo       : base
Summary    : Server and Client software to interoperate with Windows machines
URL        : http://www.samba.org/
License    : GPLv3+ and LGPLv3+
</pre>
<pre>
Name       : samba
Arch       : i386
Version    : 3.0.33
Release    : 3.28.el5
Size       : 16 M
Repo       : base
Summary    : Samba SMB サーバー
URL        : http://www.samba.org/
License    : GNU GPL Version 2
</pre>
<pre>
Name       : postgresql84
Arch       : i386
Version    : 8.4.2
Release    : 5.el5
Size       : 3.3 M
Repo       : base
Summary    : PostgreSQL client programs
URL        : http://www.postgresql.org/
License    : MIT
</pre>
<pre>
Name       : postgresql
Arch       : i386
Version    : 8.1.18
Release    : 2.el5_4.1
Size       : 11 M
Repo       : installed
Summary    : PostgreSQL のクライアントプログラムとライブラリ
URL        : http://www.postgresql.org/
License    : BSD
</pre>
]]></content:encoded>
			<wfw:commentRss>http://tkoshima.net/wp/archives/942/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://tkoshima.net/wp/archives/942" />
	</item>
		<item>
		<title>PRIMERGY RX300,RX200 にCentOSインストール（ちょっとハマり）</title>
		<link>http://tkoshima.net/wp/archives/904</link>
		<comments>http://tkoshima.net/wp/archives/904#comments</comments>
		<pubDate>Mon, 15 Mar 2010 03:50:56 +0000</pubDate>
		<dc:creator>tkoshima</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://tkoshima.net/wp/?p=904</guid>
		<description><![CDATA[RX300,RX200(無印）、もう5年前ぐらいの機種ですが余ってきたので、CentOSをインストールしてみようとしてちょっとハマったのでメモ
素性としては、CPUはXeon 2.4GHz で、64ビットでもなく、当然V &#8230; <a href="http://tkoshima.net/wp/archives/904">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>RX300,RX200(無印）、もう5年前ぐらいの機種ですが余ってきたので、CentOSをインストールしてみようとしてちょっとハマったのでメモ</p>
<p>素性としては、CPUはXeon 2.4GHz で、64ビットでもなく、当然VTも使用できず、おまけにRAIDがI2O(Adaptec-2010S)なので、VMware(ESXi)も使えず、普通にWindowsかLinuxで使うくらいかなと、Windows2003（無印）の機械なのでWindowsで使ってもいいのですがあまり使い道もないので、Linuxにしてみる。</p>
<p>◆RX200<br />
CentOS5のインストーラーのバグなのかI2O(i2o_block)のRAIDのドライバがインストーラーで検出できなくインストール時のディスクが見えないので、</p>
<pre>
Boot: linux noprobe
</pre>
<p>で、デバイスの検出しないで起動して、</p>
<pre>
i2o_block
e1000
</pre>
<p>を読み込ませてインストール</p>
<p>あとは、普通にインストール、「readahead_early」が悪さをするという人もいるようなので必要であれば停止</p>
<p>◆RX300<br />
こっちがかなり曲者で、linux noprobeすると、画面が固まって（キーボードがきかない？）しまい進まず、noprobeでないと進むが、当然I2Oのドライバがないのでインストールできず・・・・ということで、いい加減面倒になったので、RX300をKnoppixで起動して、RX200でインストールしたサーバのdumpを無理やりrestoreして、initrdのあたりの修正とgrubをインストールして起動して解決、わっはっは！<br />
、もう最初からインストールすることはないだろう(笑)</p>
<p>＃RX300のオンボードLANはBroadcomなのでtg3です。</p>
]]></content:encoded>
			<wfw:commentRss>http://tkoshima.net/wp/archives/904/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://tkoshima.net/wp/archives/904" />
	</item>
		<item>
		<title>BlueQuartz → BlueOnyx</title>
		<link>http://tkoshima.net/wp/archives/881</link>
		<comments>http://tkoshima.net/wp/archives/881#comments</comments>
		<pubDate>Thu, 25 Feb 2010 01:02:53 +0000</pubDate>
		<dc:creator>tkoshima</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://tkoshima.net/wp/?p=881</guid>
		<description><![CDATA[BlueQuartzってどうなったんだろ？とふと思い出して調べたらなくなっちゃったみたい？、代わりにBlueOnyxってのが引き継いでいる様子。（たぶん）
CentOS5ベースで動作するようなので、いろいろと便利そう・・ &#8230; <a href="http://tkoshima.net/wp/archives/881">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>BlueQuartzってどうなったんだろ？とふと思い出して調べたらなくなっちゃったみたい？、代わりにBlueOnyxってのが引き継いでいる様子。（たぶん）<br />
CentOS5ベースで動作するようなので、いろいろと便利そう・・・かも<br />
VMwareにいれてみたところ、メールサーバはSendmail、MySQLは使えるがPostgreSQLは無さそう。逆にTomcatは使えるみたい。<br />
ディスクはLVMで切られる仕様（tarからインストールの方法を見ると、/homeが分かれてればいいのかな）</p>
<p>OpenVZ,Virtuozzoのテンプレートもあるみたいですが、こちらは有償なのかな、昔BlueQuartzをOpenVZ上のCentOSで動かそうとしたとき、CCEだったかが起動できなくて挫折したような覚えがあるけど、どうだったかなぁ。</p>
<p><a href="http://www.blueonyx.it/">BlueOnyx</a></p>
<p>関係ないけど、昔、ブラックオニキスってゲームあったね(^^)</p>
]]></content:encoded>
			<wfw:commentRss>http://tkoshima.net/wp/archives/881/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://tkoshima.net/wp/archives/881" />
	</item>
		<item>
		<title>Weave Server をたててみる</title>
		<link>http://tkoshima.net/wp/archives/872</link>
		<comments>http://tkoshima.net/wp/archives/872#comments</comments>
		<pubDate>Mon, 08 Feb 2010 14:32:54 +0000</pubDate>
		<dc:creator>tkoshima</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mozilla]]></category>

		<guid isPermaLink="false">http://tkoshima.net/wp/?p=872</guid>
		<description><![CDATA[Firefoxの設定同期機能のAdd-OnのWeave Syncのサーバを自前で立てみるメモ。
使ってみようと思った動機は、会社と家でBookmarkが共有できたらいいかと思い使おうと思って調べると、Weave Sync &#8230; <a href="http://tkoshima.net/wp/archives/872">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Firefoxの設定同期機能のAdd-OnのWeave Syncのサーバを自前で立てみるメモ。<br />
使ってみようと思った動機は、会社と家でBookmarkが共有できたらいいかと思い使おうと思って調べると、Weave SyncはMozillaのサーバにデータが置かれるので、Mozillaのサーバも信頼してないわけではないのだけど、やっぱり外に出すのはちょっと。。と思ったので。ちなみにパスワードはRoboformに入れてるので、Firefoxには登録してない状態なのでBookMarkだけ同期できればいい。</p>
<p>んで、<br />
<a href="https://wiki.mozilla.org/Labs/Weave/Sync/1.0/Setup">Labs/Weave/Sync/1.0/Setup</a>(mozilla wiki)が本物？なのかもしれないですが、ここにも書いてありますが、<a href="http://tobyelliott.wordpress.com/2009/09/11/weave-minimal-server/">Weave Minimal Server</a>がオススメらしいのでこちらを使用してみる。</p>
<p>このページの中の「tarball is here. 」のところからtarballを落としてきて展開。READMEを読みながら進めます。</p>
<p>◆必要なパッケージ<br />
PHPが5.2.0以下(たとえばCentOS5とか）だとPECLのJSONのパッケージが入ってないとダメだったかも。<br />
個人的には、RPM派なので、パッケージでいれました。（<a href="https://fedoraproject.org/wiki/EPEL">epel</a>にパッケージあるはず)</p>
<pre>
yum install php-pecl-json
か、
yum install php-pear
pecl install json
かなたぶん、
</pre>
<p>◆/weaveにtarballを展開したフォルダをAlias 設定する。</p>
<pre>Alias /weave /var/www/html/hoge/weave/index.php</pre>
<p>＃サイトは、SSLにするなり、クライアント証明書認証にするなりセキュリティはあったほうが良し</p>
<p>◆Alias設定したアドレスにアクセスする</p>
<pre>https://ServerAddress/weave/1.0/blah/info/collection</pre>
<p>blah ってユーザでパスワードはなんでもいいので適当にいれてログイン失敗すると、「weave_db」のSQLiteのファイルができる。<br />
（tarball展開したフォルダはApacheで書き込みできないとダメかも）</p>
<p>◆ユーザの追加<br />
「create_user」スクリプトを動かしてユーザ作成します。</p>
<pre>
cd /var/www/html/hoge/weave/
/usr/bin/php create_user
(c)reate, (d)elete or change (p)assword: c
Please enter username: test
Please enter password: ****
test created
</pre>
<p>◆Firefoxから接続<br />
Weave Sync アドオンの設定から「Use a custom server」を選択して、「Server URL」「User Name」「Password」を入力して接続します。</p>
<p>＜参考URL＞<br />
<a href="http://www.forest.impress.co.jp/docs/news/20100129_345729.html">Mozilla、「Firefox」の設定を複数PCで同期する拡張機能「Weave Sync」v1.0を公開</a>(窓の杜)<br />
<a href="http://do-gugan.com/~furuta/archives/2010/01/firefox_weave.html">FireFox Weaveの自前サーバーを立てる</a>(道具眼日誌：古田-私的記録)<br />
<a href="http://tobyelliott.wordpress.com/2009/09/11/weave-minimal-server/">Weave Minimal Server</a>(Weave Minimal Server)</p>
]]></content:encoded>
			<wfw:commentRss>http://tkoshima.net/wp/archives/872/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://tkoshima.net/wp/archives/872" />
	</item>
		<item>
		<title>vsftpd で FTPS (FTP Over SSL/TLS)</title>
		<link>http://tkoshima.net/wp/archives/867</link>
		<comments>http://tkoshima.net/wp/archives/867#comments</comments>
		<pubDate>Sun, 07 Feb 2010 09:44:38 +0000</pubDate>
		<dc:creator>tkoshima</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://tkoshima.net/wp/?p=867</guid>
		<description><![CDATA[巷ではガンブラー(Gumblar)がはやっているようなので、FTPサーバのセキュリティを考えてみる。
まぁ、FTPSにしろ、SFTP,SCPにしても、クライアントソフトからID,パスワードを抜かれる場合もあるので、あんま &#8230; <a href="http://tkoshima.net/wp/archives/867">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>巷ではガンブラー(Gumblar)がはやっているようなので、FTPサーバのセキュリティを考えてみる。<br />
まぁ、FTPSにしろ、SFTP,SCPにしても、クライアントソフトからID,パスワードを抜かれる場合もあるので、あんまり意味はないような気もするけど、FTPって脆弱だよねと考える機会になるといいかな？<br />
で、</p>
<p>◆FTPS<br />
今回のvsftpdでもそうだけど、オレオレ証明書でいいのであれば実装はいたって簡単。<br />
しかし、重大な課題として、一般的な環境のクライアントがNAPT（普通のNATでも同じか）環境の場合、（暗号化されない通常の）FTPは対応してますが、パケットが暗号化されたFTPSになると、データポートのIPや番号のやりとりの際にNAPTルータが判断できないので、変換がうまくできず繋がらない状態になることがあげられます。（ログインだけできて、ファイル一覧が出ないとかファイル転送ができない）、なので、個人的な感じでは、あまり使われることはないのかなぁ。または、ルータでFTPSにどうにかして対応できるのがでてくるのかなぁ。</p>
<p>◆SFTP,SCP<br />
SSHが基本なので、シェルでログインできないようにとか、ファイル転送のみにするとか、chrootしたいとか面倒そう。<br />
rsshを使用してファイル転送だけにしたり、chrootできるようなのですが、chrootのやり方がスマートでないというか、昔のFTPサーバでやってたような面倒なやり方なので。。現状は×かな。<br />
今後、そいうのを作ってくれるいい人に期待です(笑)</p>
<p>◆クライアント<br />
<a href="http://winscp.net/">WinSCP</a>か<a href="http://filezilla-project.org/">FileZilla</a>あたりがどちらも対応しててフリーなので便利かな。（個人的にはWinSCPを使用）</p>
<p>◆vsftpdでFTPSの対応<br />
サーバ証明書作成</p>
<pre>
cd /etc/pki/tls/certs
make vsftpd.pem
</pre>
<p>/etc/vsftpd/vsftpd.conf に以下を追記</p>
<pre>
#FTPS
ssl_enable=YES
force_local_data_ssl=NO
force_local_logins_ssl=NO
rsa_cert_file=/etc/pki/tls/certs/vsftpd.pem
</pre>
<p>「force_local_logins_ssl」と「force_local_data_ssl」は、SSL通信を必須にするかどうか、暗号化しないFTPでも繋ぐ場合は、NOです。</p>
<p>サーバ証明書の有効期限が1年(365日)なので延ばしておきたい場合<br />
/etc/pki/tls/certs/Makefile</p>
<pre>
#/usr/bin/openssl req $(UTF8) -newkey rsa:1024 -keyout $$PEM1 -nodes -x509 -days 365 -out $$PEM2 -set_serial $(SERIAL) ; \
/usr/bin/openssl req $(UTF8) -newkey rsa:1024 -keyout $$PEM1 -nodes -x509 -days 3650 -out $$PEM2 -set_serial $(SERIAL) ; \
</pre>
]]></content:encoded>
			<wfw:commentRss>http://tkoshima.net/wp/archives/867/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://tkoshima.net/wp/archives/867" />
	</item>
		<item>
		<title>CentOS5 で iSCSI Target (その２）</title>
		<link>http://tkoshima.net/wp/archives/812</link>
		<comments>http://tkoshima.net/wp/archives/812#comments</comments>
		<pubDate>Thu, 14 Jan 2010 14:33:55 +0000</pubDate>
		<dc:creator>tkoshima</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://tkoshima.net/wp/?p=812</guid>
		<description><![CDATA[昔、CentOS5 で iSCSI Tagetで、iSCSI Enterprise Target(IET)をインストールしてみましたが、そもそも標準のパッケージscsi-target-utils → Linux targ &#8230; <a href="http://tkoshima.net/wp/archives/812">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>昔、<a href="http://tkoshima.net/wp/archives/324">CentOS5 で iSCSI Taget</a>で、<a href="http://iscsitarget.sourceforge.net/">iSCSI Enterprise Target(IET)</a>をインストールしてみましたが、そもそも標準のパッケージscsi-target-utils → <a href="http://stgt.berlios.de/">Linux target framework (tgt)</a>もあるので、今回はそっちを使ってみるの巻。</p>
<p><a href="http://www.openfiler.com/">Openfiler</a>とか<a href="http://www.freenas.org/">FreeNAS</a>とかでもいいのですが、今回は、サーバ機で、メーカーさんのハード監視ツールとか一応いれておきたかったので、RHELクローンのCentOSで構築。</p>
<p>iSCSIターゲットのインストール</p>
<pre>yum install scsi-target-utils</pre>
<p>マシン起動時に開始するように設定</p>
<pre>chkconfig tgtd on</pre>
<p>基本はtgtadmコマンドで操作します。</p>
<pre>
新しいターゲットを作成します。(lun 0ができる）
tgtadm --lld iscsi --op new --mode target --tid 0 --targetname iqn.2010-01.com.example.iscsi:tgtd
確認
tgtadm --lld iscsi --op show --mode target

LUN 1の作成
tgtadm --lld iscsi --op new --mode logicalunit --tid 0 --lun 1 --backing-store /dev/sda3

アクセスできるイニシエータのアドレスを登録
tgtadm --lld iscsi --op bind --mode=target --tid=0 --initiator-address=ALL
tgtadm --lld iscsi --op bind --mode target --tid 0 --initiator-address 192.168.1.0/24

イニシエータアドレスの削除
tgtadm --lld iscsi --op unbind --mode target --tid 1 --initiator-address 192.168.1.0
</pre>
<p>上のコマンドは、再起動してしまうと消えるので、マシン起動時に作成する<br />
/etc/tgt/targets.conf</p>
<pre>
&lt;target iqn.2010-01.com.example.iscsi:tgtd&gt;
        # List of files to export as LUNs
        backing-store /dev/sda3

        # Authentication :
        # if no "incominguser" is specified, it is not used
        #incominguser backup secretpass12

        # Access control :
        # defaults to ALL if no "initiator-address" is specified
        #initiator-address 192.168.1.2
&lt;/target&gt;
</pre>
<p>参考URL<br />
<a href="http://www.mazn.net/blog/2009/03/20/199.html">iSCSIを使ってみる@CenOS5.2 (ターゲット) + Windows XP (イニシエータ)</a> (Mazn.net)<br />
<a href="http://www.atmarkit.co.jp/flinux/special/drbd01/drbd01c.html">DRBD＋iSCSI夢の共演（前編）</a>(@IT)</p>
]]></content:encoded>
			<wfw:commentRss>http://tkoshima.net/wp/archives/812/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://tkoshima.net/wp/archives/812" />
	</item>
	</channel>
</rss>
