トップ 新規 編集 差分 一覧 ソース 検索 ヘルプ PDF RSS ログイン

rcconf

FreeBSD rc.conf

[FreeBSD]

  • ホスト名
hostname="hoge.example.jp"
  • セキュアな設定
sshd_enable="YES"
syslogd_flags="-4 -ss -vv"
sendmail_enable="NONE"
kern_securelevel="1"
kern_securelevel_enable="YES"
inetd_enable="NO"
  • ルーターの場合
gateway_enable="YES"
  • ルーティングデーモン
router_enable="YES"
  • ntpサーバー
xntpd_enable="YES"
xntpd_flags="-p /var/run/ntpd.pid -c /etc/ntpd.conf"
  • static route
    • /etc/rc.network
 case ${defaultrouter} in
       [Nn][Oo] | '')
               ;;
       *)
               static_routes="default ${static_routes}"
               route_default="default ${defaultrouter}"
               ;;
       esac
      
       if [ -n "${static_routes}" ]; then
               for i in ${static_routes}; do
                       eval route_args=\$route_${i}
                       route add ${route_args}
               done
       fi

最終更新時間:2008年04月03日 02時27分04秒