<?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/"
	>

<channel>
	<title>FreeBSD14.1 | Linuxでサーバー構築</title>
	<atom:link href="https://korodes.com/category/bsd14-1/feed/" rel="self" type="application/rss+xml" />
	<link>https://korodes.com</link>
	<description></description>
	<lastBuildDate>Wed, 12 Mar 2025 07:00:22 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://korodes.com/wp-content/uploads/2020/01/cropped-profile-32x32.jpg</url>
	<title>FreeBSD14.1 | Linuxでサーバー構築</title>
	<link>https://korodes.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>FreeBSD14.1 : Jail インストール</title>
		<link>https://korodes.com/freebsd14-1_jail/</link>
		
		<dc:creator><![CDATA[nuy]]></dc:creator>
		<pubDate>Wed, 24 Jul 2024 00:54:43 +0000</pubDate>
				<category><![CDATA[FreeBSD14.1]]></category>
		<guid isPermaLink="false">https://korodes.com/?p=26974</guid>

					<description><![CDATA[Jailとは

FreeBSD環境上に仮想のFreeBSD環境を複数構築することが出来るしくみである。
jailはchrootを発展させたもので、ホスト環上(jailerと呼ぶ)に構築したjail環境(prisonerと呼ぶ)は、ホスト環境とは別に動作するFreeBSDマシンとして振舞う。
prisonerからはjailerおよび並列する別のprisonerに直接アタッチすることが出来ない。

jailの特徴
・エミュレーションではないため、高速に動作する
・prisonerごとにjailerとは別のIPアドレスを振ることができる
・jailerとprisonerで同一のファイルシステムが利用されるため、UID/GIDの割り当てに注意する必要がある

今回は、jailer(FreeBSD14.1)内に2つのprisoner（prisoner1、prisoner2）を構築する]]></description>
		
		
		
			</item>
		<item>
		<title>FreeBSD14.1 : Postfix ClamAV + Amavis + SpamassAssinでウイルス・スパム対策</title>
		<link>https://korodes.com/bsd14-1_08/</link>
		
		<dc:creator><![CDATA[nuy]]></dc:creator>
		<pubDate>Fri, 07 Jun 2024 00:42:49 +0000</pubDate>
				<category><![CDATA[FreeBSD14.1]]></category>
		<guid isPermaLink="false">https://korodes.com/?p=26099</guid>

					<description><![CDATA[FreeBSD 14 にClamAVをインストールし、Postfixに対しAmavisで連携させます。
ClamAVはアンチウイルスソフトウェアです。
Postfixをすでに実装しているという前提で進めます。

1. ClamAV

1.1 インストール

# cd /usr/ports/security/clamav
# make install clean

各々オプションはとりあえずデフォルトでインストールします
2. Amavis

ClamAVとPostfixを連携させるAmavisをインストールします

2.1 インストール

# cd /usr/ports/security/amavisd-new
# make config

オプション設定は以下のようにしました
3. SpamAssassinでスパム対策

3.1 SpamAssassinインストール

Amavisをインストールした際、オプションでspamassassinを選択しなかった場合下記要領でインストールする
]]></description>
		
		
		
			</item>
		<item>
		<title>FreeBSD14.1 : Mailサーバー(Postfix,Dovecot)構築と SSL/TLS</title>
		<link>https://korodes.com/bsd14-1_07/</link>
		
		<dc:creator><![CDATA[nuy]]></dc:creator>
		<pubDate>Thu, 06 Jun 2024 06:03:11 +0000</pubDate>
				<category><![CDATA[FreeBSD14.1]]></category>
		<guid isPermaLink="false">https://korodes.com/?p=26090</guid>

					<description><![CDATA[1. メールサーバー用証明書の取得

メールサーバーをSSL/TLS化するためメールサーバー用の証明書を取得します。
WEBサーバーをSSL化したときに利用したcertbotを使用します。
一度web サーバーを止めて下記コマンド
2. 事前準備

2.1 Portsnapのアップデート

先にPorts Collectionを更新しておきます

# portmaster -a[i]

2.2 procmailインストール

メールの振り分けをprocmailで行います
5.ユーザ用メールディレクトリ作成

①既存ユーザ用メールディレクトリ作成(既存ユーザーはhuongとする)
6. Procmail設定

件名に"finance”が含まれているメールを破棄する設定をします。
7.ファイアウォール設定

ipfirewall(ipfw)で下記ポートを許可する

• 995番ポート： (POP3S)
• 993番ポート：(IMAPS)
• 25番ポート：(SMTP)
• 587番ポート：(SMTP)
• 465番ポート： (SMTPS)]]></description>
		
		
		
			</item>
		<item>
		<title>FreeBSD14.1 : WEBサーバー(Apache2) , MySQL8インストール</title>
		<link>https://korodes.com/bsd14-1_05/</link>
		
		<dc:creator><![CDATA[nuy]]></dc:creator>
		<pubDate>Wed, 05 Jun 2024 07:34:57 +0000</pubDate>
				<category><![CDATA[FreeBSD14.1]]></category>
		<guid isPermaLink="false">https://korodes.com/?p=26070</guid>

					<description><![CDATA[1. Apache2

1.1 インストール

# cd /usr/ports/www/apache24
# make config

たくさんのオプションがありますが、デフォルトのまま進めます
1.2 apache24 - 初期設定

①extra/httpd-default.conf　編集
1.4 バーチャルホストの設定

ドキュメントルート :　/usr/local/www/apache24/data/bsd.korodes.com/
ドメイン :　bsd.korodes.com
としてバーチャルホストを設定します
2. MySQLインストール

PHPをインストールする前にMySQLをインストールしておきます。
3. apache24 - PHP 8.0

3.1 PHPインストール

# cd /usr/ports/lang/php83
# make config

スレッドセーフに動作させるには「ZTS」のオプションが必須になります。
あとは、デフォルトのまま]]></description>
		
		
		
			</item>
		<item>
		<title>FreeBSD14.1 : FTPサーバ , Sambaでファイルサーバー</title>
		<link>https://korodes.com/bsd14-1_04/</link>
		
		<dc:creator><![CDATA[nuy]]></dc:creator>
		<pubDate>Wed, 05 Jun 2024 02:12:38 +0000</pubDate>
				<category><![CDATA[FreeBSD14.1]]></category>
		<guid isPermaLink="false">https://korodes.com/?p=26062</guid>

					<description><![CDATA[1. FTPサーバ(Vsftpd)

1.1 事前準備

①秘密鍵作成
1.2  vsftpdインストール

1.1 vsftpdインストール

# cd /usr/ports/ftp/vsftpd
# make BATCH=yes WITH_VSFTPD_SSL=yes install clean

1.2 vsftpd設定ファイル編集
2. Sambaでファイルサーバー

WindowsやMacのファイル共有を実現するため、Sambaを使いファイルサーバーを構築する

2.1 Sambaのインストール

# cd /usr/ports/net/samba413/
# make

ADS,AD_DCのアクティブ・ディレクトリ関係は、今回は使わないので外す。
LDAPもアカウント管理をLDAPで行わないので外す。]]></description>
		
		
		
			</item>
		<item>
		<title>FreeBSD14.1 : 初期設定(Vimインストール,SSH接続のセキュリティ対策,ファイアウォール,NTPサーバー)</title>
		<link>https://korodes.com/bsd14-1_03/</link>
		
		<dc:creator><![CDATA[nuy]]></dc:creator>
		<pubDate>Tue, 04 Jun 2024 07:19:16 +0000</pubDate>
				<category><![CDATA[FreeBSD14.1]]></category>
		<guid isPermaLink="false">https://korodes.com/?p=26047</guid>

					<description><![CDATA[公開鍵暗号方式を用いた認証によるSSH接続

 公開鍵、秘密鍵ペアの作成

OpenSSH 使って Linux サーバに接続するユーザの公開鍵と秘密鍵のペアを作成します。
鍵ペアの作成は ssh-keygen をを使います。
公開鍵と秘密鍵のペアの作成はリモートログインするユーザ権限で実行します。
作成先・ファイル名を指定しなければ、 /home/(ユーザ名)/.ssh/ に id_ed25519, id_eed25519.pub が作成される。 途中、鍵用のパスワードも入力する。]]></description>
		
		
		
			</item>
		<item>
		<title>FreeBSD14.1 : 初期設定 (バイナリーの更新,PackagesとPorts Collectionの更新)</title>
		<link>https://korodes.com/bsd14-1_02/</link>
		
		<dc:creator><![CDATA[nuy]]></dc:creator>
		<pubDate>Tue, 04 Jun 2024 06:04:57 +0000</pubDate>
				<category><![CDATA[FreeBSD14.1]]></category>
		<guid isPermaLink="false">https://korodes.com/?p=26041</guid>

					<description><![CDATA[FreeBSDのインストールが終わり、これからサーバーの構築を始めますがコンソール画面では何かと作業がしにくいので、TeraTerm等を使用しWindowsから操作するためSSH接続の設定をとりあえず変更します。
FreeBSDのコンソール画面で下記コマンドを入力
# vi /etc/ssh/sshd_config
61行目
#PasswordAuthentication no →　PasswordAuthentication yes に変更し、下記コマンドで設定を反映させる
# service sshd restart
これでWindowsのTeraTermからSSH接続できます(TeraTermでの設定は他のOSの初期設定を参照してください)]]></description>
		
		
		
			</item>
		<item>
		<title>FreeBSD14.1 : OS インストール</title>
		<link>https://korodes.com/bsd14-1_01/</link>
		
		<dc:creator><![CDATA[nuy]]></dc:creator>
		<pubDate>Tue, 04 Jun 2024 06:02:15 +0000</pubDate>
				<category><![CDATA[FreeBSD14.1]]></category>
		<guid isPermaLink="false">https://korodes.com/?p=26038</guid>

					<description><![CDATA[FreeBSDとは

FreeBSD（フリービーエスディー）は、UNIXライクなオープンソースのOSソフトウェア。特にネットワークOSとしての稼動実績はLinux系を上回り、高い負荷にも安定したパフォーマンスを維持します。

FreeBSD（フリービーエスディー）は実用性を重視し堅牢で頑丈な設計を施されている点から、大手企業・サービスのFTP、WWW、電子メールサーバなどの運用に適しています。

今回は2023 年 11 月 14 日にリリースされたFreeBSD14.0をインストールし、サーバーの構築を行います。

特徴
高い負荷にも耐えられる高速・高性能なマルチプラットフォーム
大手企業にも多々の採用実績
アクセス制限によりセキュリティ対策を適用できるネットワーク
小規模から大規模までのサーバの運用が可能
商用から個人用途まで33,000を超える専用ソフトウェア]]></description>
		
		
		
			</item>
		<item>
		<title>FreeBSD14.1 : WebサーバーSSL化、Webminインストール</title>
		<link>https://korodes.com/bsd14-1_06/</link>
		
		<dc:creator><![CDATA[nuy]]></dc:creator>
		<pubDate>Thu, 06 Jun 2024 02:49:25 +0000</pubDate>
				<category><![CDATA[FreeBSD14.1]]></category>
		<guid isPermaLink="false">https://korodes.com/?p=26083</guid>

					<description><![CDATA[1. Webサーバー(Apache)SSL化

portsでは更にFreeBSDの定期ジョブ設定による更新が行える。
certbotをpkgでインストールする。webrootモードで更新したいのでapache用のプラグインも入れる。

1.1 Let's Encrypt 用 Certbot ツールのインストール

以下のコマンドを実行して、CertbotパッケージとApache HTTPプラグインをインストールします
2. Webminインストール

Webmin(うぇぶみん)は、LinuxなどのUnix系オペレーティングシステム (OS) を設定できるウェブブラウザベースのツールである。 ユーザーやディスク使用上限、サービス、設定ファイル等といったOS内部設定の変更を多数行え、ApacheやPHP、MySQLなどといった多くのオープンソースのアプリケーションの変更や制御を行える。

Webminは主にPerlで構築されており、独自のプロセス、そしてウェブサーバとして動作する。 初期設定では10000番のTCPポートで通信する。]]></description>
		
		
		
			</item>
	</channel>
</rss>
