Juniper SRX root パスワードとホスト名を設定する

ファイアウォール(UTM)

作業環境

  • 型番:SRX100H2
  • バージョン:12.1X44-D45

root パスワードの設定

root パスワードの設定は、以下のコマンドを実行して対話的に設定します。

  • set system root-authentication plain-text-password
[edit]
root# set system root-authentication plain-text-password
New password:
Retype new password:

設定したパスワードはコンフィグ上では暗号化されて表示されます。

root> show configuration | display set | match root
set system root-authentication encrypted-password "$1$xeVYrSDn$r3BMhDVdRuyqb8WEhLEae0"

root パスワードは以下の 2 つを満たしている必要があります。

  • 6 文字以上であること
  • 大文字、小文字、数字、特殊文字のうち 2 つ以上を使用していること

暗号化済みのパスワードを使用して設定する場合は以下の様にコマンド1行で設定可能です。

root# set system root-authentication encrypted-password "$1$xeVYrSDn$r3BMhDVdRuyqb8WEhLEae0"

root での SSH/TELNET ログインを拒否する

以下設定を行うと root でのSSH/TELNET ログインを拒否することができます。

  • set system services ssh root-login deny
[edit]
root# set system services ssh root-login deny

ホスト名の設定

  • set system host-name <ホスト名>
[edit]
root# set system host-name SRX

[edit]
root# commit
commit complete

[edit]
root@SRX#

ホスト名設定後、上のようにプロンプトにホスト名が表示されます。

参考資料

Protect Network Security by Configuring the Root Password | Junos OS | Juniper Networks
Configure the root password on your Juniper Networks device to help prevent unauthorized users from making changes to your network. The root user (also referred...
Configure the Hostname of a Device in a Configuration Group | Junos OS | Juniper Networks
The hostname of a device running Junos OS device is its identification. A network device must have its identity established to be accessible on the network. Tha...

―――――――――――――

タイトルとURLをコピーしました