バックアップサーバ構築 ~BoxBakupサーバ設定②~ [BoxBakup]
今回は、前回に続いてサーバ側のSSLの設定とクライアントアカウントの設定です。
このへんから少し迷いだしました。 ということで、
BoxBackupのマニュアルに助けを求めました。...はじめっから見ろよ
Linuxテスト用サーバwalleとDLNAサーバchipのアカウントを設定してみます。
これでサーバ側の設定は完了です。
Ubuntuでは、apt-getでインストールしているとサーバ起動時に自動で
boxbackup起動するようになっています。 次は、クライアントの設定です。
SSL関連の設定
各サーバとの通信にはSSLを利用するために、その設定が必要です。このへんから少し迷いだしました。 ということで、
BoxBackupのマニュアルに助けを求めました。...はじめっから見ろよ
Set up a Certificate Authority
サーバ証明書の生成です。$ cd /etc/boxbackup [enter]
$ sudo bbstored-certs ca init [enter]
Generating RSA private key, 2048 bit long modulus
 :
Signature ok
subject=/CN=Backup system server root
Getting Private key
$ sudo bbstored-certs ca init [enter]
Generating RSA private key, 2048 bit long modulus
 :
Signature ok
subject=/CN=Backup system server root
Getting Private key
Sign a server certificate
署名です。
$ sudo bbstored-certs ca sign-server bbstored/pinocchio-csr.pem [enter]
This certificate is for backup server
   pinocchio
Signing the wrong certificate compromises the security of your backup system.
Would you like to sign this certificate? (type 'yes' to confirm)
yes [enter]
Signature ok
subject=/CN=pinocchio
Getting CA Private Key
Certificate signed.
Install the files
   ca/servers/pinocchio-cert.pem
   ca/roots/clientCA.pem
on the server.
★update 2009.12.30
以下を追加しました。
証明書をbbstoredにコピーします。
This certificate is for backup server
   pinocchio
Signing the wrong certificate compromises the security of your backup system.
Would you like to sign this certificate? (type 'yes' to confirm)
yes [enter]
Signature ok
subject=/CN=pinocchio
Getting CA Private Key
Certificate signed.
Install the files
   ca/servers/pinocchio-cert.pem
   ca/roots/clientCA.pem
on the server.
$ sudo cp ca/servers/pinocchio-cert.pem bbstored [enter]
$ sudoca/roots/clientCA.pem bbstored [enter]
★
続いて、クライアントのアカウントの設定です。$ sudoca/roots/clientCA.pem bbstored [enter]
クライアントアカウントの設定
バックアップするサーバ、PCを設定するようです。Linuxテスト用サーバwalleとDLNAサーバchipのアカウントを設定してみます。
$ sudo bbstoreaccounts -c /etc/boxbackup/bbstored.conf create 1000 0 2048M 20000MB [enter]
NOTICE: Account 0x00001000 created.
$ sudo bbstoreaccounts -c /etc/boxbackup/bbstored.conf create 1001 0 2048M 20000MB [enter]
NOTICE: Account 0x00001000 created.
1000及び1001がそれぞれ、walleとchipのアカウント番号です。NOTICE: Account 0x00001000 created.
$ sudo bbstoreaccounts -c /etc/boxbackup/bbstored.conf create 1001 0 2048M 20000MB [enter]
NOTICE: Account 0x00001000 created.
これでサーバ側の設定は完了です。
BoxBackupサーバの起動
ではさっそく起動してみましょう。
$ sudo /etc/init.d/boxbackup-server start [enter]
Starting boxbackup-server: bbstored.
一応よそさう。念のため、ログを確認してみます。Starting boxbackup-server: bbstored.
/var/log/syslog
..Box Backup Store Server v0.11rc2+2502, (c) Ben Summers ..
..Starting daemon, version: 0.11rc2+2502
..Using configuration file: /etc/boxbackup/bbstored.conf
なんとかよそさうです。..Starting daemon, version: 0.11rc2+2502
..Using configuration file: /etc/boxbackup/bbstored.conf
Ubuntuでは、apt-getでインストールしているとサーバ起動時に自動で
boxbackup起動するようになっています。 次は、クライアントの設定です。
コメント 0